y9san9
08/21/2021, 5:29 PMOvsyannikov Alexey
08/21/2021, 5:33 PMy9san9
08/21/2021, 5:35 PMOvsyannikov Alexey
08/21/2021, 5:57 PMframework
🤔 ) 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 😊Ovsyannikov Alexey
08/23/2021, 5:12 PMOvsyannikov Alexey
08/26/2021, 2:57 AMOvsyannikov Alexey
08/31/2021, 5:07 AMOvsyannikov Alexey
08/31/2021, 5:13 AMOvsyannikov Alexey
09/03/2021, 5:59 PMOvsyannikov Alexey
09/08/2021, 6:41 PMMultipartRequestCallFactory
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
Ovsyannikov Alexey
09/09/2021, 3:24 AMOvsyannikov Alexey
09/09/2021, 5:29 AMOvsyannikov Alexey
09/21/2021, 10:34 AMOvsyannikov Alexey
09/22/2021, 3:44 AMOvsyannikov Alexey
09/27/2021, 6:53 PMOvsyannikov Alexey
10/05/2021, 12:14 PMOvsyannikov Alexey
10/18/2021, 2:52 PM0.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 newsOvsyannikov Alexey
10/30/2021, 9:01 PMOvsyannikov Alexey
10/30/2021, 9:01 PMOvsyannikov Alexey
10/30/2021, 9:02 PMOvsyannikov Alexey
10/30/2021, 9:02 PMOvsyannikov Alexey
11/12/2021, 6:48 AMOvsyannikov Alexey
12/20/2021, 11:08 AMEntitiesBuilder#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)Ovsyannikov Alexey
02/02/2022, 7:34 AMSticker
to SimpleSticer
, AnimatedSticker
and VideoSticker
Ovsyannikov Alexey
03/14/2022, 1:10 PMOvsyannikov Alexey
05/12/2022, 11:37 AMOvsyannikov Alexey
03/10/2023, 6:51 AM