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
Should we migrate onto 1.8? It mostly brings fixes and should not have some breaking changes, but I am not sure
Anonymous Poll
67%
Yes
0%
No
33%
Kotlin 1.2.10 is the best 🌚
Small fixes/version updates release
Today I realised that, maybe, 5.0 version should be the 1.0. It is related to several things:

• More or less stabilized API
• Useful DSLs for different cases such as comfortable logic builders and keyboards DSLs
• All the API covered and most of Telegram API cratches are hidden (e.g. media groups)
• A lot of fixes has been applied

Anyway, thanks to all who has been involved in the development or providing feedback.

And welcome to those who is new in this library :)
5
Hello everybody :) Telegram Bot API 6.5 has been introduced and I plan to cover it in our library in several days.

Anyway, it is expected that today/tomorrow I will release version 5.0.2 and I think it will be the last version on kotlin 1.7 and 5.1.0 with Bot API 6.5 should work on 1.8.10
Cover Bot API 6.5 with kotlin update up to 1.8.10?
Anonymous Poll
65%
Yes, why not
10%
No, it is better to actualize kotlin in new version
25%
GIVE ME BOT API 6.5
Small preview of update 6.5:

+ Buttons for requesting of users and chats, but:
- They are reply buttons and can be sent only in reply keyboard

+ Granular permissions for more accurate settings in chats
- For backward compatibility (as I understand) they have disabled by defailt and currently it is not clear, what will be used as replacement for what. In API there are several notes about it, but they are strange: send polls permission as replacement of send messages in granular mode, for example

UPD: Anyway, tomorrow I plan to test permissions and make some final fixes for this update
👍2
5.2.1 has been released. What has happen since 5.1.0:

• Traditional minor dependencies updates
• All CallbackQuery now accepts CommonUser instead of User
• Sent messages waiters in behaviour builder will not be triggered on edited messages
waitContent[Message] now require generic type. In case you wish to take any content or content message, you should use waitAnyContent[Message]
Hello everybody, 6.0.2 has been released, what happens since the 5.2.1 (and why not 6.0.0):

• Kotlin 1.8.10 and other dependencies updates
• Update all *.link extensions with renames according to their receivers to avoid collisions with link extensions of entities builder
• Add opportunity to resend messages with TelegramBot#resend extension (sending data as is instead of copy method)
• Long polling have changed its base algorithm of media groups handling in updates. Since this update will be used the same mechanism as for webhooks - media groups will be delivered with debounce in 1 second (by default, configurable) due to the fact, that (for some reason) on the accounts created with virtual TON numbers media groups coming to the bot in different updates
🎉1
Forwarded from inmo.dev
InsanusMokrassar/TelegramBotAPI: 6.1.0
Telegram Bot API 6.6 brings several potentially breaking changes - for example, renaming of thumb to thumbnail. So, I am thinking about new major version but it will mean that I will drop all old deprecations
Version with all Telegram Bot API 6.6 support is available from my packages registry ( https://git.inmo.dev/api/packages/InsanusMokrassar/maven ). I hope to test everything with my examples and add stickers example this evening, but you may try new API already now
This library uses mine libraries collection MicroUtils. Do you use it somewhere outside of this library?
Final Results
23%
Yes, everywhere
0%
Yes, pet projects
31%
No
46%
Who knows
So, 7.0.0 is in release. What is changed:

• Support of Telegram Bot API 6.6
• Stickers have been reworked due to their rework in Telegram Bot API
• Files uploading mechanisms have been modified
• In examples I have added new example for sticker sets and extend Files Loading sample (now it will upload files too)
Some time ago I have started new PR with native targets (LinuxX64/MinGWX64) support, but I have faced with the issues in native part. For example, in case you will send some request to the telegram system, it will be sent with some strange delay. So, I have two options and want to know your opinion: