Two small news:
• tgbotapi 1.1.1 is available for use and there I fixed checkWebAppLink method of TelegramAPIUrlsKeeper
• In examples of webapps now available example of web app data checking
• tgbotapi 1.1.1 is available for use and there I fixed checkWebAppLink method of TelegramAPIUrlsKeeper
• In examples of webapps now available example of web app data checking
GitHub
Release 1.1.1 · InsanusMokrassar/TelegramBotAPI
Versions:
MicroUtils.Crypto will not be provided with that library anymore. Instead, it is recommended to use Korlibs.Krypto. You still can add crypto from microutils using next groovy dependency:...
MicroUtils.Crypto will not be provided with that library anymore. Instead, it is recommended to use Korlibs.Krypto. You still can add crypto from microutils using next groovy dependency:...
👍1
• In version 1.1.2 I have added
• In 1.1.3 I've deprecated
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 redundantGitHub
Release 1.1.2 · InsanusMokrassar/TelegramBotAPI
Core:
Rename of TelegramAPIUrlsKeeper#checkWebAppLink -> TelegramAPIUrlsKeeper#checkWebAppData (fix of #591)
Behaviour Builder with FSM:
New typealias StateHandlingErrorHandler
BehaviourBuil...
Rename of TelegramAPIUrlsKeeper#checkWebAppLink -> TelegramAPIUrlsKeeper#checkWebAppData (fix of #591)
Behaviour Builder with FSM:
New typealias StateHandlingErrorHandler
BehaviourBuil...
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
I hope, it will help you to create more useful and clean code 😌
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
So, 2.0 is out and you may use new waiters API :) Besides, I have fixed behaviour of behaviour builder (😁), updated bookstack and examples (here migration onto 2.0)
GitHub
Release 2.0.0 · InsanusMokrassar/TelegramBotAPI
ALL PREVIOUS DEPRECATIONS HAVE BEEN REMOVED
Behaviour Builder:
Mappers have been removed from waiters extensions
Triggers extensions now will use filtering inside of context receiver instead of p...
Behaviour Builder:
Mappers have been removed from waiters extensions
Triggers extensions now will use filtering inside of context receiver instead of p...
Hello everybody :) on the soundcloud appeared my interview in russian about Kotlin Multiplatform, this library and several other topics :) Enjoy 🎉
SoundCloud
Hear the world’s sounds
Explore the largest community of artists, bands, podcasters and creators of music & audio
🔥1
Hello everybody :) small news: in 2.0.1 it becomes possitble to use any
UpdatesFilter
in longPolling
GitHub
Release 2.0.1 · InsanusMokrassar/TelegramBotAPI
Versions:
Ktor: 2.0.1 -> 2.0.2
MicroUtils: 0.10.5 -> 0.10.8
Utils:
TelegramBot#longPolling now accepts UpdatesFilter instead of FlowsUpdatesFilter
Ktor: 2.0.1 -> 2.0.2
MicroUtils: 0.10.5 -> 0.10.8
Utils:
TelegramBot#longPolling now accepts UpdatesFilter instead of FlowsUpdatesFilter
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 (
Fun fact: the name of the library is read by transcription [ˈkeɪsɪ] [lɒg]
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]
GitHub
GitHub - InsanusMokrassar/KSLog: Simple multiplatform logging in Kotlin
Simple multiplatform logging in Kotlin. Contribute to InsanusMokrassar/KSLog development by creating an account on GitHub.
👍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
UPD: I have published 2.0.3 and filled section of files downloading in the tutorial
• 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
bookstack.inmo.dev
Files handling | InMo • BookStack
According to the documentation there are several ways to send file:
By FileId
By FileUrl (typealia...
By FileId
By FileUrl (typealia...
🔥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 :)
---
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 :)
Хабр
Telegram Bot на Kotlin: Введение
Прошло уже какое-то время с момента, когда я публиковал свой первый туториал по tgbotapi и пришло время начать уже серию статей, которая должна разложить по полочкам, как можно разбивать логику...
👍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 :)
GitHub
2.1.0 by InsanusMokrassar · Pull Request #613 · InsanusMokrassar/TelegramBotAPI
Type-safe library for work with Telegram Bot API. Contribute to InsanusMokrassar/TelegramBotAPI development by creating an account on GitHub.
I have published 2.1.0 and in this version I have added support of Bot API 6.1
GitHub
Release 2.1.0 · InsanusMokrassar/TelegramBotAPI
This update contains including of Telegram Bot API 6.1
Add support of functionality for WebApps from Bot API 6.1
Add support of functionality for premium feature from Bot API 6.1
Add support of ad...
Add support of functionality for WebApps from Bot API 6.1
Add support of functionality for premium feature from Bot API 6.1
Add support of ad...
👍1
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
GitHub
Release 2.1.1 · InsanusMokrassar/TelegramBotAPI
API:
Now it is possible to edit any message text via editMessageText (but with warning)
Now it is possible to edit any message caption via editMessageCaption (but with warning)
Media message capti...
Now it is possible to edit any message text via editMessageText (but with warning)
Now it is possible to edit any message caption via editMessageCaption (but with warning)
Media message capti...
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
• 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
GitHub
Release 2.1.2 · InsanusMokrassar/TelegramBotAPI
Versions:
Coroutines: 1.6.1 -> 1.6.3
Ktor: 2.0.2 -> 2.0.3
MicroUtils: 0.11.6 -> 0.11.9
Coroutines: 1.6.1 -> 1.6.3
Ktor: 2.0.2 -> 2.0.3
MicroUtils: 0.11.6 -> 0.11.9
🔥1