Kotlin Telegram Bot API Library (tgbotapi)
141 subscribers
17 photos
1 video
1 file
273 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
Kotlin Telegram Bot API Library (tgbotapi)
Do you ready/want migration onto new ktor 3.0?
Just to clarify: migration will happen sooner or later, but I want to know, how long it will be better to keep ktgbotapi on old ktor 2.* :)
So, some small news about library for the last time:

1. 18.2.3 has been released with small fixes in middlewares side and adding of ExceptionsThrottlerTelegramBotMiddleware and I must warn you that it is mostly minor update
2. 19.0.0 has been released with update of Ktor up to 3.0.1 and MicroUtils up to 0.23.0. Thanks for migration to d1shin ❤️ and now I must warn you about Ktor Migration Guide for Ktor 3.0
3. 20.0.0 has been released with support of Telegram Bots API 7.11 and I must warn you, that they have added allow_paid_broadcast field (represented as allowPaidBroadcast in requests) which may spend your bot balance if it has any. So, be careful with passing of your trues without names. I even would like to recommend you to use named arguments for booleans anytime you may do it

It is all news about stability of library for today :D

P. S. Sorry, but I am trying hard to follow semver at least in manner I understand it
Hi :) I am a bit late, but realizing new Bots API Update and wished to know:

Do you use WebApps? With this library?
Final Results
50%
No
8%
Yes, but on the other language
4%
Yes, but with other library
8%
Yes, with ktgbotapi :)
31%
I am just banana 🌚
So, after more than month of procrastinating on the update, it happened: 22.0.0. What happend since 20.0.1:

21.0.0 bring opportunity to use data in subcontexts of BehaviourContext
21.0.1 add fixes to 21.0.0, improve mention in EntitiesBuilder and several other updates
22.0.0 support of Bot API 8.0 and Bot API 8.1

News in Bot API (in two words):

• New Accelerometer, Gyroscope, DeviceOrientation and LocationManager
• A LOT OF NEW EVENTS (I even rewrote all the events and created generator for them)
• Add star subscriptions support for invoices, payments and `TransactionPartner`s
• Affiliation programs support
• A lot of other things

I afraid that in side of webapps can be some errors (I have tested and updated WebApp sample) as well as in invoices (checked as was able too). I will be glad to any errors reports :)
Hello everybody :) I've released 23.0.0 with solution of problem with incorrect imports usage with EntitiesBuilder. In two words:

🔄 Dependencies update
🔨 Simple factories of text sources got suffix TextSource. For example, regular factory has been renamed to regularTextSource
EntitiesBuilder DSL methods like regular has not been renamed

It is breaking changes update, so, after migration you may face with some errors in compile-time
Summary of the year for the channel "Kotlin Telegram Bot API Library (tgbotapi)" from @TGStat
Hello everybody :) Today I have tried Github Copilot. It looks like nice thing, BUT it may miss different things. I have tried to get the code for resending messsages and bot suggested different ways: check types of incoming content, receive specific types only, etc. The problem is that any content have createResend method and I expected code like this:

// some imports
// build behaviour
// onContentMessage
execute(it.content.createResend(it.chat.id))
// some closing code


So, in two words:

👍 It is nice start point
👎 It is bad truth-source :)

As a conclusion: welcome to our chat (same as discussion chat) to talk about library things, there will be more accurate answers :)
Hello everybody :) New version is test-ready, I hope, this weekends we will see new release with new bot api support :)
Hello everybody :)

I am here with imported notice: version 24.0.0 is out and contains a CRITICALBREAKING CHANGE:

Since this update, behaviourBuilder-specific parameters subcontextUpdatesFilter now behaves as intended - they will filter updates within scenario receiver. Previously, it worked like initialFilter, and in fact subcontextUpdatesFilter was practically useless.

Besides, in this update:

* ForumContentMessage`s got property threadCreatingInfo with information about creating of topic in message. Unfortunately, there is a chance that this information will not be included in message (for example, with reply to other message)
Hello everybody :) there are two news:

* 24.0.1 has been released with small fix: now you may use common files with EditChatMessageMedia/editMessageMedia
* I have disabled stars on this channel. I did it because of channel got ~140 ⭐️ (~2$) since august of 24th and I even can't use it. So, I do not see any reason to left this way of some support - you will lose cents, I will not get anything :) In case you wish to support me or this library, you may donate to 🪙 TON wallet UQAtuSLJ76Zehc3qP-eRYMR98fPIu_oOp_atcpVX55zxHwTU or 💲 USDT (Tether network) 0xF4032af0184F7Dc68a5b24A308F9Ad2BfD7be08F

Have a nice day :)
Please open Telegram to view this post
VIEW IN TELEGRAM
Hi :) it's happened, telegram team have launched Bots API 9.0. I haven’t seen an update that huge before, and I do not know when I will be able to correctly support it. The support of this update may be split into several releases. Anyway, I'll do my best to support new api asap!

Hope for your understanding, @InsanusMokrassar :)
Forwarded from inmo.dev
Hello everybody. I have launched simple proxy https://proxy.nexus.inmo.dev for those who can't access direct https://nexus.inmo.dev . In case of some problems you may report me @InsanusMokrassar

Small remind about how to add my repository in groovy gradle:

repositories { // your dependencies repositories setup
mavenLocal() // typically enabled
mavenCentral() // typically enabled
google() // typically enabled
maven { url "https://nexus.inmo.dev/repository/maven-releases/" } // my repository, you may add `proxy` as mentioned above: `https://proxy.nexus.inmo.dev/repository/maven-releases/`
}
Please open Telegram to view this post
VIEW IN TELEGRAM