Kotlin Telegram Bot API Library (tgbotapi)
160 subscribers
17 photos
1 video
1 file
276 links
https://github.com/InsanusMokrassar/ktgbotapi

Channel with updates from Kotlin Multiplatform TelegramBotAPI library

DM: @InsanusMokrassar
Forum: @ktgbotapi_forum
Projects Releases: @inmodev
Support me: https://t.me/inmodev/431
Download Telegram
Hello everybody :) I am preparing tgbotapi 3.0.0 with kotlin 1.7.10. You may suggest some additions/changes/features in comments to discuss including those in this release.

UPD: 3.0.0 Milestone
👍4
So, 3.0.2 has been published. I have set the main point in this release is to update kotlin and related dependencies up to 1.7.10 and I didn't expect that in this version will be:

• Several important renames (for example, ReplyMarkup -> WithReplyMarkup)
• New API for live location streaming via coroutines flows
• Changes in structure of ForwardInfo

Besides, in that update I have started to use KSP for generating of new classcasts. In case I missed some of the extensions you may write to me or in the chat and I will try hard to include them in next release.

Versions 3.0.0 and 3.0.1 have been published with errors and contain the same changes, but require redundant magic in dependencies
Version 3.1.0 is out and you may start to work with new stickers. Unfortunatelly, there are several issues related to this functionality:

• Bots currently can't create custom emoji's sticker sets
• Bots currently can't send custom emojis. Technically, you may include custom emojis in your text, but they will appear as regular text and no information about emoji will exists in message

Besides, I have fully reworked hierarchy of stickers and sticker sets. I hope that it will not break anything in your code, but I strongly recommend you to recompile your projects if you want to update this library dependency
Hi :) I am preparing new update and there is a chance to change behaviour of main `execute` - I plan to wrap all the exceptions happen inside to additional exception. So, the main question:

Do you use handling of some specific exceptions thrown from bot?
Anonymous Poll
50%
Yes
25%
No
25%
Just use safely/runCatchingSafely/etc.
Sometimes I am thinking about some coding-streams. On these strems we could talk about the future of this library, kotlin, bots and (I think) something else. Would you be interest in this?
Anonymous Poll
61%
Yes
6%
No
33%
Maybe yes or maybe not, I forgot
Version 3.1.2 has been transformed to 3.2.0 and published 🎉 whats new:

• All allowedUpdates will be setup to ALL_UPDATES_LIST by default
• New extensions for behaviour builder waitDeepLinks/onDeepLink + improved support of deep links creation
IMPORTANT CHANGE: execute method of TelegramBot (aka RequestsExecutor) will throw only BotExceptions since this update. Please, check exceptions catching in your projects and fix them
Hello everybody :) You may find all the versions of my libraries (including tgbotapi) on my github page. I hope this will be useful for those who is using more than one :)
🤩4
Version 3.2.3 is available. Short highlight about changes since 3.2.0:

• Dependencies updates
• Fixes in DeleteMyCommands
• New reply extensions with chatId and messageId
👍4
I have faced with the new mechanism of stacktrace recovery in coroutines. As I understand, one of the part of this recovery process is to copy old exception into the same new one with the old passing as cause of new.

In two words, we have started to get CommonBotException in CommonBotExceptions 😐

I have fixed this problem in the 3.2.5 and currently preparing 3.2.6 with fix of ChatMember serialization and plan to add requests builders DSL as shown in #657 issue. You are welcome with any suggestions in comments or in my DM about some features/fixes/improvements for lib :)
Hello everybody :) I have started to collect all common plugins for plagubot in one place. So, you are welcome to suggest your plugins for including into the first (0.4.0 😁) version of library
Several small news:

• tgbotapi 3.2.6, 3.2.7: fixes and improvements in buildEntities and keyboard builders
• New Plugins project for PlaguBot with plugins. Currently, some plugins have no readme, but I will fix it soon (I hope)
• PlaguBot 2.3.4 (dependencies update)
Are you ready to kotlin 1.7.20? :)
Anonymous Poll
65%
Yes
4%
No
31%
Wa? What kotlin?
Some time ago Telegram have published their introducing tutorial based on Java, Maven and rubenlagus/TelegramBots. One of our community members have prepared an analogue with our stack: Kotlin, Gradle and InsanusMokrassar/TelegramBotAPI:

https://madhead.me/posts/from-botfather-to-hello-world
5