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
Forwarded from inmo.dev
InsanusMokrassar/TelegramBotAPI: 0.38.23

BehaviourHandler:
• Add support of fallback triggers (fix of #560)
👍3
🎉 1.0.0 has been released 🎉 In examples repository you may find PR with migration onto 1.0.0

Several notes:

• A lot of renames in packages and replaces of objects. Most of them should be backward compatible with 0.38.23
• A lot of rewritings in interfaces related to the sealing of interfaces
• Complex of dependencies updates: Kotlin 1.6.21, Ktor 2.0.1, etc.
• Fixes and improvements in BehaviourBuilder and BehaviourBuilderWithFSM
StorageFile has been deprecated and now it is enough to use MultipartFile everywhere
InputMedia (and all subsequent functions) has been renamed to TelegramMedia
🎉7🔥3
• In version 1.1.2 I have added StateHandlingErrorHandler and functionality in BehaviourContextWithFSM to handle states handling errors
• In 1.1.3 I've deprecated StateHandlingErrorHandler cause I've added the same functionality in default states machines in microutils and typealias in tgbotapi is redundant
Currently, in all wait* extensions in BehaviourBuilder there is "mapper" parameter, which allow you to change the data before the returning. I want to remove this parameter due to its useless (imho) and I wished to ask - do you use mapper parameter?
Final Results
0%
Yes
20%
No
80%
Wa... What parameter?
Something big (or not) is coming...
🤔3
Hello everybody :)

In the future 2.0.0 release I finally realized how waiters of BehaviourBuilder should look like: they will return the Flow with required data and you will be able to filter, map, take as much as required and do with that flow anything you want to. It is breaking change: you will not be able to use parameter count (you will use take(count) instead), filter or mapper - all they will be replaced with standard flows functionality.

I hope, it will help you to create more useful and clean code 😌
🔥3
Hello everybody :) on the soundcloud appeared my interview in russian about Kotlin Multiplatform, this library and several other topics :) Enjoy 🎉
🔥1
What whould you like to see in near time? (You may specify more info in comments)
Final Results
50%
Some additional docs
75%
Some additional tutorials/posts
38%
Some features
13%
Just keep it working, it is perfect
Kotlin Telegram Bot API Library (tgbotapi)
What whould you like to see in near time? (You may specify more info in comments)
Let's start :) How do you think, which tutorials/posts would be useful to see in near time?
Hello everybody :) today I and @akkihi have published the first version (0.0.1 😊) version of new library KSLog (kdocs). This is small and simple library for logging for JVM/JS/Android platforms. Potentially, this library will appear in our tgbotapi, and in that case your feedback will help to improve this library too :)

Fun fact: the name of the library is read by transcription [ˈkeɪsɪ] [lɒg]
👍2🥰1
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)