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 there :) Two humble news:

• I have prepared a small help for files sending (you may offer what to mention there if I forget)
PlaguBot and its templates (for bot and for plugin) have been fully rewritten without kapt. Now it uses simple flow for launch and structuring. I plan to prepare some small tutorial about it soon!

UPD: I have published 2.0.3 and filled section of files downloading in the tutorial
🔥3
Всем привет :) я опубликовал первую (как я надеюсь) статью-туториал по использованию PlaguBot, написанию плагинов для него, разделению логики ботов и прочему такому :) буду рад предложениям и замечаниям. На данный момент я планирую перевод на английский язык для публикации на своём bookstack, так что буду рад помощи с переводом
---
Hello everybody :) I have published the first part of the tutorial about working with PlaguBot, writing plugins for it, separation of bots logic and so on at habr.com in Russian :) English version of this tutorial is being worked on, and I hope it will be published on the tgbotapi bookstack soon too :)
👍2🔥1
Hi :) 2.1.0 in progress with Bot API 6.1. You may suggest some improvements/fixes/changes for the library and I will try hard to include them into currently developed version :)
Hi :) I am currently thinking about change of this library name in githab, telegram and other places. It is not final decision, but I would be glad to know your opinion about which username if library is better? (Multichoice)
Final Results
10%
InMoTgBotAPI (telegram)
0%
kttgbotapi (telegram)
40%
tgbotapi (github)
30%
KotlinTgBotAPI (telegram)
30%
Other (please, mention it in comments)
Kotlin Telegram Bot API Library (tgbotapi)
Hi :) I am currently thinking about change of this library name in githab, telegram and other places. It is not final decision, but I would be glad to know your opinion about which username if library is better? (Multichoice)
The reason I am thinking about it is that I plan to verify this channel and linked group, but that action requires to freeze link to the channel. This action is permanent and important, so I want to choose the best nickname for this lib :)
What would you prefer to use? (Multiple choice for cases when it doesn't matter)
Final Results
67%
Unified send/edit methods
58%
Special send (like sendPhoto)/edit (like editCaption)
Hello everybody :) I'm glad to introduce update 2.1.1 with short send/edit methods and extended variants of deletes and old edits :) In the examples you may find migration PR as an example of dependency update
Several small news:

• New version 2.1.2 has been published. It is dependencies-updating minor release
• I have updated kdocs for microutils. It is important because of a lot of things (like fsm) we are using from there
🔥1
I am preparing new release and wished to know your opinion about class casts feature namings (extensions like asBot/requireBot/onBot) and specially about chaning of that naming to if*/*OrNull/*OrThrow (like ifBot, botOrNull/botOrThrow)
Final Results
0%
Do not use
71%
New variant with if/OrNull/OrThrow is better
29%
Use and naming is ok
New version 2.2.0 with fixes and improvements has been published
• Also new version of plagubot has been published too :)
• I am working on welcome tutorial plugin and currently the article is not ready, but you may try this plugin in its branch!
Do you use microutils outside of tgbotapi?
Anonymous Poll
31%
Yes
54%
No
15%
Do not use even with tgbotapi
Forwarded from inmo.dev
InsanusMokrassar/TelegramBotAPI: 2.2.1

Versions:
Coroutines: 1.6.3 -> 1.6.4
MicroUtils: 0.11.12 -> 0.11.13
Core:
• New typealiases for CommonMessage with all supported content types, more info: PR
Utils:
• New extensions for all types of messages •.withContentOrNull and •.withContentOrThrow as analogies to the same ones from class casts
Forwarded from inmo.dev
InsanusMokrassar/PlaguBot: 1.3.1

Versions:
tgbotapi: 2.2.1
microutils: 0.11.13
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