in case you are using my nexus, you may try new version
14.0.2-preview3
with actual changes related to poll above :)GitHub
14.0.2 by InsanusMokrassar Β· Pull Request #862 Β· InsanusMokrassar/ktgbotapi
Type-safe library for work with Telegram Bot API. Contribute to InsanusMokrassar/ktgbotapi development by creating an account on GitHub.
π2
Kotlin Telegram Bot API Library (tgbotapi)
How do you think must work next snippet by default:
onCommand("start") { reply(it, "reply") delay(100000L) }
onCommand("start") { reply(it, "reply") delay(100000L) }
So, default behaviour will be to handle requests one-by-one by chats or other logical determinator
Hi :) there are two news about our library:
* I have published 14.1.0. It contains fixes of memory leaking when using behaviour builder and should improve its overall performance
* I potentially completed 15.0.0 with Bot API 7.5 support. You may try it with
* I have published 14.1.0. It contains fixes of memory leaking when using behaviour builder and should improve its overall performance
* I potentially completed 15.0.0 with Bot API 7.5 support. You may try it with
15.0.0-branch_15.0.0-build2285
version from mine nexusGitHub
Release 14.1.0 Β· InsanusMokrassar/ktgbotapi
Version:
Coroutines: 1.8.0 -> 1.8.1
Ktor: 2.3.10 -> 2.3.11
MicroUtils: 0.20.45 -> 0.21.0
KSLog: 1.3.3 -> 1.3.4
BehaviourBuilder:
BehaviourContext updates listening job will be weakl...
Coroutines: 1.8.0 -> 1.8.1
Ktor: 2.3.10 -> 2.3.11
MicroUtils: 0.20.45 -> 0.21.0
KSLog: 1.3.3 -> 1.3.4
BehaviourBuilder:
BehaviourContext updates listening job will be weakl...
π₯3π1
Kotlin Telegram Bot API Library (tgbotapi)
Hi :) there are two news about our library: * I have published 14.1.0. It contains fixes of memory leaking when using behaviour builder and should improve its overall performance * I potentially completed 15.0.0 with Bot API 7.5 support. You may try it withβ¦
So, 15.0.0 has been released :) it contains Bot API 7.5 support and minor update of microutils
GitHub
Release 15.0.0 Β· InsanusMokrassar/ktgbotapi
THIS UPDATE CONTAINS BREAKING CHANGES
THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.5
Version:
MicroUtils: 0.21.0 -> 0.21.1
A lot of edit methods and classes has been changed to supp...
THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.5
Version:
MicroUtils: 0.21.0 -> 0.21.1
A lot of edit methods and classes has been changed to supp...
π8
Hello everybody :) 4 days after previous release Telegram team released new update for Telegram Bot API and clients. This update contains including of paid media support. Today BotNews public has published news that each bots creator will have to send privacy policies for each bot. To be honest, all the recent updates makes me a bit tilt. I do not know when I will be able to make new update implementation, but still will try to do that as soon as possible. In case you are really need new API in your bots, you may mention it, it will be a signal for me to hurry up
Telegram
BotNews in Telegram Bot Talk
Bot Privacy Policies
Bots and mini apps must comply with all applicable privacy laws and regulations β including those from Apple and Google stores.
To remain in compliance with Apple guideline 5.1.1 (i), bots and mini apps must provide a Privacy Policyβ¦
Bots and mini apps must comply with all applicable privacy laws and regulations β including those from Apple and Google stores.
To remain in compliance with Apple guideline 5.1.1 (i), bots and mini apps must provide a Privacy Policyβ¦
Kotlin Telegram Bot API Library (tgbotapi)
Hello everybody :) 4 days after previous release Telegram team released new update for Telegram Bot API and clients. This update contains including of paid media support. Today BotNews public has published news that each bots creator will have to send privacyβ¦
You may know, some time ago Bots API News published notice about
* Add some notification that privacy policy is not answered in
* Add auto answer for
/privacy
command and privacy police of each bot. In context of library there are two options to improve handling of this problem:* Add some notification that privacy policy is not answered in
/privacy
command* Add auto answer for
/privacy
when it has not been setup manually with content like this bot doing whatever it wants
Telegram
BotNews
Bot Privacy Policies
Bots and mini apps must comply with all applicable privacy laws and regulations β including those from Apple and Google stores.
To remain in compliance with Apple guideline 5.1.1 (i), bots and mini apps must provide a Privacy Policyβ¦
Bots and mini apps must comply with all applicable privacy laws and regulations β including those from Apple and Google stores.
To remain in compliance with Apple guideline 5.1.1 (i), bots and mini apps must provide a Privacy Policyβ¦
β€1
So, in your opinion, what will be better as default behaviour?
Final Results
50%
Just notify me, I will take all responsibility to handle /privacy
50%
Add autohandler if no manual handler and autohandler is not disabled
β€1
So, it happen. 15.1.0 has been released, 12 days after update 7.6 and 5 after 7.7. Samples has been updated too, so, you may try new paid media and other things in it. Whats new in two words (except of new APIs support):
* Add
* Rename
* Add new level of
* Add
/privacy
warning and additional extensions for BehaviourBuilder
to simplify its setup* Rename
Photo
as PhotoFile
* Add new level of
TelegramMedia
- now it contains TelegramFreeMedia
(old TelegramMedia
) and TelegramPaidMedia
. For migration just replace TelegramMedia
in your project to TelegramFreeMedia
and in most cases it will be okGitHub
Release 15.1.0 Β· InsanusMokrassar/ktgbotapi
THIS UPDATE CONTAINS BREAKING CHANGES
THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.7 (thanks to bpavuk)
THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.6 (with participation and help...
THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.7 (thanks to bpavuk)
THIS UPDATE CONTAINS ADDING OF SUPPORT FOR BOTS API 7.6 (with participation and help...
π2
Besides, I wish to say additional thanks to user bpavuk for his huge help in this update
Threads
@b_pavuchok on Threads
kotlin enjoyer
write on dou when I have mood
gamer, retro things, etc. 35 Followers.
write on dou when I have mood
gamer, retro things, etc. 35 Followers.
π4
Hello everybody :) In library several news:
* Of course, support of the latest version of Telegram Bot API 7.8 in version 15.3.0
* Big event: migration onto Kotlin 2.0(actually, 2.0.10 π) in version 16.0.0 π
Update up to 16.0.0 require special caution from developers side due to potential breakings. I will be glad to your reports of bugs/problems after update up to kotlin 2.0 and library 16.0.0
* Of course, support of the latest version of Telegram Bot API 7.8 in version 15.3.0
* Big event: migration onto Kotlin 2.0
Update up to 16.0.0 require special caution from developers side due to potential breakings. I will be glad to your reports of bugs/problems after update up to kotlin 2.0 and library 16.0.0
π2π1
Hello everybody :) I am starting testing new update :) In case you have some ideas to include in library - it is good time to write them now due to breaking status of this update :)
GitHub
17.0.0 by InsanusMokrassar Β· Pull Request #884 Β· InsanusMokrassar/ktgbotapi
Added support for Super Channels, allowing received channel messages to have users or other channels as their senders.
Added the ability to send paid media to any chat.
Added the parameter busine...
Added the ability to send paid media to any chat.
Added the parameter busine...
π1
Kotlin Telegram Bot API Library (tgbotapi)
Such awesome reaction type π
Yesterday I didnt realize that it is really special reaction, which is paid by userπ
Anyway, I released 17.0.0 with new API support. In two words:
* Now you may handle paid subscription invitation links
* New paid reaction
* You may turn on showing authors in channels and its support included
As a bonus: SendActionsDSL has been improved by me and DRSchlaubi
* Now you may handle paid subscription invitation links
* New paid reaction
* You may turn on showing authors in channels and its support included
As a bonus: SendActionsDSL has been improved by me and DRSchlaubi
GitHub
Release 17.0.0 Β· InsanusMokrassar/ktgbotapi
THIS UPDATE CONTAINS SUPPORT OF BOTS API 7.9
Add support of subscriptions links handling
Add support of info about sender chat. It is important, that for channels will be actual senderChat instead...
Add support of subscriptions links handling
Add support of info about sender chat. It is important, that for channels will be actual senderChat instead...
1
Screenshot from 2024-08-22 19-32-26.png
45.7 KB
Fun fact: estimated cost of this library development is ~$2kk π:
ktgbotapi$ docker run --rm -it -v "$PWD:/pwd" ghcr.io/lhoupert/scc:master scc /pwd
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Language Files Lines Blanks Comments Code Complexity
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Kotlin 1160 74244 8419 7031 58794 978
Gradle 15 608 85 6 517 0
Markdown 11 4236 810 0 3426 0
YAML 9 134 9 11 114 0
Properties File 3 15 1 0 14 0
BASH 1 24 5 1 18 5
Batch 1 84 23 0 61 20
JSON 1 5 0 0 5 0
License 1 201 32 0 169 0
SVG 1 144 13 0 131 29
Shell 1 172 18 21 133 19
TOML 1 83 22 2 59 0
gitignore 1 15 3 0 12 0
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Total 1206 79965 9440 7072 63453 1051
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Estimated Cost to Develop (organic) $2,109,454
Estimated Schedule Effort (organic) 18.26 months
Estimated People Required (organic) 10.26
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Processed 3341678 bytes, 3.342 megabytes (SI)
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
136π5π4
Hello everybody :) yesterday I have released 18.0.0. This update contains breaking changes, related to renames of
* Kotlin and other dependencies updates
* Add a lot of extension related to
* Renames:
*
*
ChatMember
inheritors. Migration instructions available on the release page in github. In this release:* Kotlin and other dependencies updates
* Add a lot of extension related to
ChatMember
(thanks to @McModder ) and ChatMemberUpdated
* Renames:
*
RestrictedChatMember
has been renamed to RestrictedMemberChatMember
*
BannedChatMember
has been renamed to RestrictedChatMember
GitHub
Release 18.0.0 Β· InsanusMokrassar/ktgbotapi
THIS UPDATE CONTAINS BREAKING CHANGES
This update contains solution for issue #888, made by
@Nik-mmzd
Migration (step-by-step)
Replace in a whole project:
RestrictedChatMember -> RestrictedMem...
This update contains solution for issue #888, made by
@Nik-mmzd
Migration (step-by-step)
Replace in a whole project:
RestrictedChatMember -> RestrictedMem...
π3
One more update has been released: 18.1.0. This update related to changes in
createSubContextAndDoWithUpdatesFilter
: old logic has been used for it (now this function asynchronous and returns Deferred
), but two new methods has been created: createSubContextAndDoSynchronouslyWithUpdatesFilter
and createSubContextAndDoAsynchronouslyWithUpdatesFilter
(current behaviour of createSubContextAndDoWithUpdatesFilter
)GitHub
Release 18.1.0 Β· InsanusMokrassar/ktgbotapi
BehaviourBuilder:
Add createSubContextAndDoSynchronouslyWithUpdatesFilter as old logic of createSubContextAndDoWithUpdatesFilter
createSubContextAndDoWithUpdatesFilter has been renamed to createSu...
Add createSubContextAndDoSynchronouslyWithUpdatesFilter as old logic of createSubContextAndDoWithUpdatesFilter
createSubContextAndDoWithUpdatesFilter has been renamed to createSu...
Hi :) I am here with new release: 18.2.0
β’ Update up to Telegram Bot API 7.10
β’ Fixes in giveaways-related serializations
β’ Fixes of several behaviour-builder related functions absence for some chat events and contents
In examples also there are several changes according to update:
β’ WebApp sample has been expanded to work with both main and second buttons and be able to change all available colors
β’ New simple sample related to givaways has been added
I am totally not sure that every new API will work stable (in test time giveaways could have delays, as well as some updates).
β’ Update up to Telegram Bot API 7.10
β’ Fixes in giveaways-related serializations
β’ Fixes of several behaviour-builder related functions absence for some chat events and contents
In examples also there are several changes according to update:
β’ WebApp sample has been expanded to work with both main and second buttons and be able to change all available colors
β’ New simple sample related to givaways has been added
I am totally not sure that every new API will work stable (in test time giveaways could have delays, as well as some updates).
GitHub
start updating up to 18.2.0 Β· InsanusMokrassar/TelegramBotAPI-examples@ab362e8
This repository contains several examples of simple bots which are using TelegramBotAPI - start updating up to 18.2.0 Β· InsanusMokrassar/TelegramBotAPI-examples@ab362e8
Do you ready/want migration onto new ktor 3.0?
Final Results
61%
Ready and want
9%
Ready
13%
Want
17%
Ready.... What?
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.* :)