Kotlin Telegram Bot API Library (tgbotapi)
159 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 currently thinking about some FSM (or just state machine) realization for bots based on our library, but I have no good ideas about implementation of it. For now the most important criteria is to create usefull and easy-to-use part with, maybe, some DSL.

You are welcome with your suggestions😊
Hello :) New version of kotlin, 1.5.10, has been release and have fixed several critical issues in work with inline value classes. So, I plan to start new version with migration onto this version. There are several questions which I will ask you in next poll:) I'd be glad to see your opinion
PR has been created and I (I suppose) have fixed build and issues related to included changes. Several highlights:

β€’ Rewriting of internal sealed classes as sealed interfaces
β€’ I have replaced simple interfaces by sealed interface where it was possible and replace several interfaces from the places like CommonAbstracts package to the packages according to these abstractions implementors/extenders
β€’ JS Legacy will not be supported since this update ( 😊 )

Currently it is required to check everything on TelegramBotAPI-examples and my internal tests. After this I plan to rewrite different typealiases to value classes where it is posible.
Sorry for this delay with new version. A lot of files have been changed and require review. I hope new version will be soon :)
That happened πŸŽ‰ Version 0.35.0 is available for using in your projects :) in two words:

⚠ Contains breaking changes
πŸ“¦ Dependencies updates
😏 kotlin 1.5.10
πŸ†• EntitiesBuilder got DSL part based on callbacks
πŸ”„ Most project use sealed interfaces
πŸ—‘ Deprecations have been removed
Hello :) as usual, I am thinking about some features we may add to our library:) do you have some ideas? Maybe, there is something you want to see in this library? You are welcome in comments with your suggestions 😊
Hi again :) I've started creating of FSM which will be usefull with tgbotapi (and not only :) ). Here you will find some probable target api example of this FSM. Currently there are a few things left until this tool will be ready for preview releae:

β€’ Add exposed and android realizations of StateManager (or some factory functions)
β€’ Add basic states in tgbotapi.libraries project
β€’ Add some usefull variant of FSM initializing in context of tgbotapi

Stay tuned, I hope, release of this tool will be soon :)
Hello:) As you know, currently ib developing FSM which will be used in tgbotapi :) Which functionality of FSM is the most useful for you? Why? I will use your answers in future release, thank you☺️
I've seen that somewhere
New Bot API 5.3 has been included in near new version. Currently for this version left several things:

* Replace in triggers of behaviour builder parameter performInParallel by marker factory from micro_utils project
* Run already created tests and example bots
* Check new version

I hope, that tomorrow we will see new version in release and start use new functionality in our bots 😊
Update 0.35.1 is almost here and it is nice time to offer some improvements to include them in this release 😊 I plan to release this version this evening, so you are welcome 😊
0.35.1 has been started as small update and now we are here :)
Update 0.35.1 has been merged and now on its way to maven repo and you may read full changelog of this update. In two words:

β€’ πŸ”„ Ofcourse, full actualization up to Telegram Bot API 5.3
β€’ πŸ†• New casts type when* - now you may call code like message.whenContentMessage { it.content }
β€’ πŸ”„ make*String extensions (as a replacement for old makeString and internal functions for html/markdown)
β€’ πŸ”„ All message content now is serializable by default
β€’ πŸ”„ Several interfaces/classes became sealed
β€’ ❗on* extensions of BehaviourBuilder will works in parallel
β€’ πŸ†• Factories telegramBotWithBehaviour
β€’ πŸ”„ Entities builder got improvements
β€’ ❗reply extension have been replaced to avoid import conflicts
Hi, new update 0.35.2 is dependencies-update release for now, but you may suggest some improvements in the comments or chat and make that release something more than just a dependencies actualization update πŸ˜‰
Hello everybody :) I have started 0.35.3 PR and wished to ask you a small question. Currently in BehaviourBuilder waiters (wait* syntax) usually used mappers instead of filters (for example, for CallbackQuery you must return CallbackQuery of the same type or null instead of just Boolean). I want to replace this syntax with filters (just like in on* syntax). How do you think this change will affect your code? Will this break a lot of or maybe you wish this change will happen? Lets talk about this in comments to the next poll