https://kotlinlang.org logo
Join SlackCommunities
Powered by
# tgbotapi
  • y

    y9san9

    08/21/2021, 5:29 PM
    K
  • o

    Ovsyannikov Alexey

    08/21/2021, 5:33 PM
    set the channel description: Telegram Bot API wrapper framework
  • y

    y9san9

    08/21/2021, 5:35 PM
    @Ovsyannikov Alexey Please provide a description with the first message and pin it 🙂
    👍 1
  • o

    Ovsyannikov Alexey

    08/21/2021, 5:57 PM
    Hello 😊 This channel is about tgbotapi - set of libraries (somebody even calls it
    framework
    🤔 ) which has been created as strongly-typed wrapper for Telegram Bot API. Currently there are a lot of features in this framework out-of-the-box, like: • Opportunity to put it almost (excepting native targets) everywhere - library available on JVM and JS • Strongly-typed API. In most cases you will know exact result type of your requests and incoming updates • DSL for formatted texts building • DSL for building of your base bot (Behaviour Builder) • DSL for live locations • Webhooks and LongPolling extended support (read here more about it) • Extendable functionality. ◦ Core is very low-level and it gives opportunity to create useful DSLs ◦ API extension for
    Telegram Bot API methods
    -like usage (for example,
    bot.getMe()
    ) Useful links: • Library • Bookstack • KDocs Here you are always welcome with feature suggestions, bugs reports and any other activity related to this library 😊
    K 1
    🤖 1
  • o

    Ovsyannikov Alexey

    08/23/2021, 5:12 PM
    Update note in feed :)
    👏 1
  • o

    Ovsyannikov Alexey

    08/26/2021, 2:57 AM
    Hello :) in our telegram community was suggested to use #dev-inmo-tgbotapi topic in all our projects related to the library. I am fully agree with this suggestion and already add the most number of my public libraries and bots to this topic and I advise you to do the same thing too😊
    👍 1
  • o

    Ovsyannikov Alexey

    08/31/2021, 5:07 AM
    Hello everybody :) I am preparing new version 0.35.7 and currently it is dependencies-update version, but you may suggest your changes/features/bugfixes to include in this release 😊
  • o

    Ovsyannikov Alexey

    08/31/2021, 5:13 AM
    Besides, I would like to share my thoughts about version 1.0.0 🙈: • Utils will be cleared up - in version before 1.0.0 a lot of Utils will be deprecated for replacing/removing due to their redundancy • I plan to add new extension for behaviour builder and fsm modules which must combine these things in more useful API As always, you may write here or in Telegram your suggestions about the things we may include in release (really release) version of library
    👍 2
  • o

    Ovsyannikov Alexey

    09/03/2021, 5:59 PM
    Hello everybody :) I have created a small prompt note about exceptions handling and hope that it will help you to find your bugs or investigate some incorrect behaviour 🤞
    🎉 1
  • o

    Ovsyannikov Alexey

    09/08/2021, 6:41 PM
    Hi 😊 New version 0.35.8 has been released and here several important improvenents: •
    MultipartRequestCallFactory
    now will use file name as multipart filename parameter instead of generated file id • New extension
    MPPFile#asMultipartFile
    • Fixes in
    TelegramBot#withAction
    (now actions will not blocking passed lambda execution) • New extensions
    BehaviourContext#commandWithArgs
    and
    BehaviourContext#onCommandWithArgs
    K 1
  • o

    Ovsyannikov Alexey

    09/09/2021, 3:24 AM
    I wished also to note that in context of 0.35.8 update I have changed RandomFileSender example bot - now it may react to arguments (you may pass number of files to send), use an action while sending files, and creating media groups for each chosen files collection (when files for than one 😊 )
    👍 1
  • o

    Ovsyannikov Alexey

    09/09/2021, 5:29 AM
    https://bookstack.inmo.dev/books/telegrambotapi/page/types-conversations :)
  • o

    Ovsyannikov Alexey

    09/21/2021, 10:34 AM
    Hello :) how about new survey?
    K 1
  • o

    Ovsyannikov Alexey

    09/22/2021, 3:44 AM
    Release 0.35.9 has been published. Here I have to rewrite triggers in
    BehaviourBuilder
    , split
    LocationContent
    to different types and add opportunity to use
    *ln
    syntax inside of
    buildEntities
    (issue). Full changelog is here . Besides, you may look at the migration example in this commit
  • o

    Ovsyannikov Alexey

    09/27/2021, 6:53 PM
    Hello everybody :) Some time has past since 0.35.9 and it is time to plan 0.36.0. Currently next release should include dependencies updates, deprecations removing and improvements in BehaviourBuilder + FSM relations, but I will be glad to any suggestions 😊
    👍 1
  • o

    Ovsyannikov Alexey

    10/05/2021, 12:14 PM
    https://t.me/InMoTelegramBotAPI/144
  • o

    Ovsyannikov Alexey

    10/18/2021, 2:52 PM
    New version
    0.36.0
    has been released and it contains a lot of important changes: • As always, all deprecations have been removed • New packages for extensions 😊 now you may write
    tgbotapi.api
    instead
    tgboatpi.extensions.api
    and similarly for all other extensions. Old packages will be available until next major release • New keyboard DSL: say goodbye to
    ReplyKeyboardMarkup(matrix { row { ... } })
    and hello to
    replyKeyboard { row { simpleButton("") } }
    • New integration of FSM into Behaviour Builder in new package `tgbotapi.behaviour_builder.fsm`: in this realization taken attention for more closed work with FSM inside of telegram bots • New type
    WithUser
    . Now
    FromUser
    is extending
    WithUser
    and any tgbotapi type with user implements type
    WithUser
    . It is imortant, that constructors of classes-implementors of
    FromUser
    has changed their incoming parameters names from
    user
    to
    from
    due to renames inside of
    FromUser
    , but you still may use
    user
    field for
    FromUser
    objects Besides, I recommend you to read a small note about flows and changes of mechanisms inside of behaviour builder and full changelog if you want to know all news
    K 1
  • o

    Ovsyannikov Alexey

    10/30/2021, 9:01 PM
    Hello everybody :) some time ago I have started to create explore topic on github, but found out that I can't manage this topic due to the fact that I am maintainer of dev inmo tgbotapi library
  • o

    Ovsyannikov Alexey

    10/30/2021, 9:01 PM
    If anybody want to lead it - I will help you as much as I can
  • o

    Ovsyannikov Alexey

    10/30/2021, 9:02 PM
    At least, currently there is completed icon for that and partially filled data in PR above
  • o

    Ovsyannikov Alexey

    10/30/2021, 9:02 PM
    @y9san9 maybe, FYT
  • o

    Ovsyannikov Alexey

    11/12/2021, 6:48 AM
    Version 0.37.0 is out and you may use Telegram Bot API 5.4 in your bots. Besides here: • Improvements in Behaviour Builder FSM for more stype-strict using of states • Dependencies updates • Deprecations removing P. S. See Examples migration commit for help in migration
    K 1
  • o

    Ovsyannikov Alexey

    12/20/2021, 11:08 AM
    Version 0.37.3 (0.37.2 was published with one critical issue, so, I published quick fix 0.37.3) is available in maven central. In two words: • Update up to Telegram Bot API 5.5 • Fix of
    EntitiesBuilder#linkln
    • Dependencies updates Report on some issues or suggestions in comments or just in discussion group 🙂 currently next update is planned for #511 Issue (about extension to make this library looks like common Telegram Bot API)
  • o

    Ovsyannikov Alexey

    01/02/2022, 4:47 AM
    Hello everybody and happy new year :) I am here to announce that version 0.38.0 is available for update. Here: • Update Telegram Bot API up to 5.6 • Update Kotlin up to 1.6 • Several fixes More info you may read here or here
  • o

    Ovsyannikov Alexey

    01/07/2022, 2:04 PM
    Version 0.38.1 is available for including in your projects :) here: • Realization of #511 issue • Several small fixes, types clarifications and class casts addings
  • o

    Ovsyannikov Alexey

    02/02/2022, 7:34 AM
    Release 0.38.4 is available in maven central. Here: • Fix of #529 • Realization of Telegram Bot API 5.7, including: • Separation of
    Sticker
    to
    SimpleSticer
    ,
    AnimatedSticker
    and
    VideoSticker
    K 1
  • o

    Ovsyannikov Alexey

    03/14/2022, 1:10 PM
    Hello everybody. I wished to ask you about some painful/hard/incorrect places in library you would like to see fixed. What you would like to see in documentation asap? Or maybe you want to have some DSL/extension you are using in different projects. I would be glad to know about it and add in library :)
  • o

    Ovsyannikov Alexey

    05/12/2022, 11:37 AM
    https://kotlinlang.slack.com/archives/C0BJ0GTE2/p1652355420042639 🙂
  • o

    Ovsyannikov Alexey

    03/10/2023, 6:51 AM
    Welcome to our survey :)