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.* :)
Forwarded from inmo.dev
InsanusMokrassar/ktgbotapi: 18.2.2
GitHub
Release 18.2.2 ยท InsanusMokrassar/ktgbotapi
Version:
Kotlin: 2.0.20 -> 2.0.21
MicroUtils: 0.22.4 -> 0.22.7
Core:
Fixes in blockquotes serializations
Now RawMessageEntity is public. It is still under Warning annotation and is subjec...
Kotlin: 2.0.20 -> 2.0.21
MicroUtils: 0.22.4 -> 0.22.7
Core:
Fixes in blockquotes serializations
Now RawMessageEntity is public. It is still under Warning annotation and is subjec...
10โค3
Soooooon ๐
๐ฅ3โค2๐2
GitHub
Release 18.2.3 ยท InsanusMokrassar/ktgbotapi
Core:
Add default middleware ExceptionsThrottlerTelegramBotMiddleware
Make TelegramBotMiddlewaresPipelinesHandler to be default TelegramBotPipelinesHandler
Make DefaultKtorRequestsExecutor now use...
Add default middleware ExceptionsThrottlerTelegramBotMiddleware
Make TelegramBotMiddlewaresPipelinesHandler to be default TelegramBotPipelinesHandler
Make DefaultKtorRequestsExecutor now use...
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
2. 19.0.0 has been released with update ofโค๏ธ 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
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
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 update2. 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 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 true
s without names. I even would like to recommend you to use named arguments for booleans anytime you may do itIt is all news about stability of library for today :D
P. S.
โค2
Forwarded from inmo.dev
InsanusMokrassar/ktgbotapi: 20.0.1
GitHub
Release 20.0.1 ยท InsanusMokrassar/ktgbotapi
Core:
Fix of logger propagation (fix of #860)
Add opportunity to modify keyboards (fix of #761)
Fields of OrderInfo became nullable (fix of #917)
Add default toString to ChatType (fix of #919)
Fix...
Fix of logger propagation (fix of #860)
Add opportunity to modify keyboards (fix of #761)
Fields of OrderInfo became nullable (fix of #917)
Add default toString to ChatType (fix of #919)
Fix...
โค3๐1
Hi :) I am a bit late, but realizing new Bots API Update and wished to know:
Do you use WebApps? With this library?
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
โข 21.0.1 add fixes to 21.0.0, improve
โข 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 :)
โข 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 :)
GitHub
Release 22.0.0 ยท InsanusMokrassar/ktgbotapi
THIS UPDATE CONTAINS BREAKING CHANGES
IN THIS UPDATE HAS BEEN REWORKED EVENTS API IN WEBAPPS
THIS UPDATE ADDING SUPPORT OF BOT API 8.0 AND BOT API 8.1
Version:
MicroUtils: 0.23.1 -> 0.23.2
Kto...
IN THIS UPDATE HAS BEEN REWORKED EVENTS API IN WEBAPPS
THIS UPDATE ADDING SUPPORT OF BOT API 8.0 AND BOT API 8.1
Version:
MicroUtils: 0.23.1 -> 0.23.2
Kto...
โค2
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
โข โบ EntitiesBuilder DSL methods like
It is breaking changes update, so, after migration you may face with some errors in compile-time
โข ๐ 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 renamedIt is breaking changes update, so, after migration you may face with some errors in compile-time
GitHub
Release 23.0.0 ยท InsanusMokrassar/ktgbotapi
Version:
Coroutines: 1.9.0 -> 1.10.1
MicroUtils: 0.23.2 -> 0.24.0
KSLog: 1.3.6 -> 1.4.0
Ktor: 3.0.2 -> 3.0.3
Core:
All old factory methods for TextSources took suffix TextSource. Fo...
Coroutines: 1.9.0 -> 1.10.1
MicroUtils: 0.23.2 -> 0.24.0
KSLog: 1.3.6 -> 1.4.0
Ktor: 3.0.2 -> 3.0.3
Core:
All old factory methods for TextSources took suffix TextSource. Fo...
Hi :) I have released 23.1.0 with Have a nice holidays (Bot API 8.2) update support
GitHub
Release 23.1.0 ยท InsanusMokrassar/ktgbotapi
THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 8.2
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
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 :)
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 :)
๐3๐3โค1
So, 23.2.0 has been released :) Here:
โข Support of Bot API 8.3
โข Update of
โข Support of Bot API 8.3
โข Update of
MicroUtils
up to 0.24.6
GitHub
Release 23.2.0 ยท InsanusMokrassar/ktgbotapi
THIS UPDATE CONTAINS ADDING SUPPORT OF Telegram Bots API 8.3
Version:
MicroUtils: 0.24.5 -> 0.24.6
Ktor: 3.0.3 -> 3.1.0
Version:
MicroUtils: 0.24.5 -> 0.24.6
Ktor: 3.0.3 -> 3.1.0
Hello everybody :)
I am here with imported notice: version 24.0.0 is out and contains a CRITICALBREAKING CHANGE:
Since this update,
Besides, in this update:
*
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)GitHub
Release 24.0.0 ยท InsanusMokrassar/ktgbotapi
THIS UPDATE CONTAINS BREAKING CHANGES IN subcontextUpdatesFilter WORK. TAKE CARE IN MIGRATION
Version:
MicroUtils: 0.24.6 -> 0.24.7
Core:
ForumContentMessage got property threadCreatingInfo...
Version:
MicroUtils: 0.24.6 -> 0.24.7
Core:
ForumContentMessage got property threadCreatingInfo...
5