Kotlin Telegram Bot API Library (tgbotapi)
150 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
Version 0.30.0 has been released! 🎉 Here actualization of API and several new things:) I have tested as much as possible, but unfortunatelly, here too much changes and I could skip some bugs. You are always welcome to our issues in case of facing some problems 😊
---
Наконец-то выпущена версия 0.30.0! 🎉 В этой версии актуализация API и немного других изменений:) Я протестировал всё, что смог/успел, но, к сожалению, изменений слишком много и я вполне мог что-то упустить. Я всегда рад вашим задачам в разделе issues, будь то предложения по улучшению или репорт багов😊
I have created template on github to make creating of new bot easier 😊
---
Я создал проект-шаблон на гитхабе, чтобы сделать создание ботов проще 😊
Hello 😊 There are a lot of news for now:

• After version 0.30.0 has been released nine versions (more info in releases)
• New version is on the way, and you, as always, welcome with offers of new functionality and maybe some fixes
• Our survey is still active and I will be glad to see your feedback

Have a nice day:)
---

Добрый день 😊 На данный момент, накопилось много новостей, если вкратце, то вот они:

• После версии 0.30.0 вышло девять версий библиотеки (больше информации в релизах)
• Новая версия готовится к выпуску, и вы, как и всегда, можете оставить свои пожелания насчёт нового функционала и исправлений
• Наш опрос всё ещё активен и я буду очень рад вашим отзывам

Хорошего дня:)
Hello! I wished to say thanks to everybody who support this library and use it in their projects! I hope you all will have happy and productive new year! 🎉🎄
---

Привет! Я хотел бы сказать спасибо всем, кто поддерживал эту библиотеку и использует в своих проектах! Я искренне желаю вам счастливого и продуктивного нового года! 🎉🎄
New version in progress. This version already contains solution for issue#145 and I plan to de several other amazing things😊
---

Новая версия в разработке и на данный момент она уже содержит исправление для задачи#145. Кроме того, планируется, что в эту версию войдет еще несколько классных штук😊
New version has been released. It was targeted on solution of #145 issue. Besides, examples repo got an update and currently it is actual and contains not direct class casts at all 😊
---

Новая версия вышла в релиз. Её задачей было решение ишью #145. Кроме того, репозиторий с примерами получил обновление и на данный момент актуален относительно последней версии библиотеки, а так же теперь совсем не использует прямых класскастов 😊
Looks like some time ago Telegram system starts to send media group messages updates with some delay. Old versions of library (I have seen that bug on version 27.10) do not handle this correctly and at the time of these versions publication I assumed that all media group messages will came in one update package. As for now, you can update your library dependency up to 0.30.13 or 0.31.0. I already have added additional task into current PR, which will additionally help to fix situations like this in future. Welcome to the comments for discussion😊
---
Судя по-всему, какое-то время назад Телеграм начал высылать обновления с сообщениями медиагрупп в отдельных пакетах обновлений. То есть если раньше (в версиях около 0.27.10) можно было предположить, что вся медиагруппа приходит в одном списке обновлений, то сейчас это не так. Для решения этой проблемы можно обновиться до версии 0.30.13 или 0.31.0. На данный момент я добавил задачу в PR, которая будет позволять настраивать задержку для формирования медиагруппы. Добро пожаловать в комменты для обсуждения😊
It is time to announce three important things related to this library:

* Library got its own bot builder DSL. Now it is possible to buildBehaviour of your bot with different opportunities like onCommand expectation for the bot. More info you can retrieve on the subproject readme page
* This library was inlcuded in official list of libraries. What does it mean for library? I hope it will help this library to grow and get more useful features in future
* FIRST ISSUE HAS BEEN RESOLVED 🎉 That means that currently library FULLY cover Telegram Bot API and you can use Telegram Passport API via this library

More info about last (0.32.0) release available on the github release page
---
Пришло время для анонса трёх важных новостей, связанных с этой библиотекой:

* В библиотеке появился свой DSL для построения логики бота. Теперь можно гораздо проще настраивать всякие штуки вроде реакции на команду onCommand и не только. Больше информации можно найти в readme соответствующего подпроекта
* Библиотека была включена в официальный список библиотек телеграма. Что это может означать? Я надеюсь, что это поможет библиотеке интенсивней расти и получить ещё больше удобных и полезных фич
* ПЕРВАЯ ЗАДАЧА БЫЛА ЗАКРЫТА 🎉 Это значит, что библиотека теперь ПОЛНОСТЬЮ покрывает Telegram Bot API и вы можете использовать Telegram Passport API напрямую через эту библиотеку

Больше информации о последнем обновлении (0.32.0) доступно на github
Version 0.32.1 will give you opportunity to get content (and other types) of messages simple as:

message.withContent<TextContent>()

---

Новая версия 0.32.1 принесла возможность более простого каста сообщений с контентом (пример выше)
Should I modify library to use only IR compiler and inline classes instead of typealiases? (Multichoice)
---
Надо ли выпускать новую версию только с использованием IR компилятора и инлайн классов вместо typealias? (Мультивыбор)
Final Results
67%
Yes for IR | За новый компилятор
100%
Yes for inline classes instead of typealiases | За инлайн классы вместо typealias
So, there are several news related to new update. First of all, I have implemented usage of IR compiler for JVM, completed updating of publishing scripts and update dependencies. Next step will be updating of typealiases up to inline value classes. In case they break backward compatibility, current changes will be published as minor update and I will make new major version. Stay tuned, new version coming soon :)
---
Немного новостей относительно текущего обновления. Во-первых, я таки заменил компилятор на IR с соответствующими исправлениями, дообновил скрипты публикации и зависимости. Далее планируется заменить все тайпалиасы инлайн value классами. В случае, если эта замена сломает обратную совместимость, я сделаю версию с текущими изменениями и мажорное обновление с заменой тайпалиасов. Оставайтесь на связи, скоро новая версия :)
As I promised, new version (0.32.4) has been released. Unfortunately, it does not contain migration onto value class`es and I am not pretty sure that it is necessary. Anyway, this version contains one important change: all content messages (excepting MediaGroupMessage) were renamed to *ContentMessage (like GroupMessage -> GroupContentMessage. It was made due to ambiguity of old names in comparison with, for example, `GroupEventMessage`s. Full changelog there is here
---
Как и было обещано, новая версия (0.32.4) выпущена. К сожалению, она не содержит переход с тайпалиасов на value классы и, если честно, я не уверен, что этот переход состоится. Кроме прочего, в это версии были переименованы интерфейсы и классы контентных сообщений (за исключением MediaGroupMessage) во что-то вроде *ContentMessage (например, GroupMessage -> GroupContentMessage) по той причине, что старое наименование вводило в заблуждение. Например, старый GroupMessage совершенно никак не обозначал тот факт, что он в сущности отличается от GroupEventMessage. Полный changelog можно найти тут
0.32.5 version has been released. Here new mention extensions, ability to retrieve updates accumulated before bot launch and different other things
---
Выпущена версия 0.32.5. В этой версии новые расширения для создания упоминаний пользователей (mention), возможность получить обновления, накопленные до запуска бота и другие нововведения
Besides, I wished to remind you that new version will be available only from maven central (mavenCentral() repository in Gradle). It happens because JCenter will be unavailable since May of this year. Instructions about including are available here
UPD: JCenter as an artifacts source will be available until february of 2022
---
Кроме новости выше, хотелось бы напомнить, что новые версии будут доступны только из maven central (mavenCentral() репозиторий в Gradle). Так вышло по причине того, что JCenter прекратит своё существование начиная с мая этого года. Инструкции по подключению библиотеки доступны тут
UPD: JCenter будет доступен как источник артефактов до февраля 2022
Hello! I plan to create several new libraries around tgbotapi and wished to ask your opinion about their including as libraries into tgbotapi project. In case it will be decided to include them, it will be more comfortable for me as for maintainer/developer to support them and for you as for users/developers to find/investigate them.

* Media chacher - library for media caching and autorenewing of this cache
* Admins cacher - library for admins saving and automanaging of their updates
Which libraries should I place as tgbotapi subprojects?
Anonymous Poll
60%
Admins cacher (tgbotapi.libraries.cache.admins)
I am still waiting for new version of telegram bot api. After last news it should bring several news like new group type and different other things. So, lets wait
Forwarded from Telegram News
Auto-Delete, Widgets, Expiring Invite Links and More

You can now set an auto-delete timer in any chat, which will erase messages for all participants 24 hours or 7 days after they are sent.

New home screen widgets for iOS and Android let you preview messages and instantly open chats.

Group and channel admins can create additional invite links with a limited duration, number of uses, or both.

Groups approaching the limit of 200k members can now convert to Broadcast Groups that allow unlimited members.

For more information on all these features and their uses, read our blog:
https://telegram.org/blog/autodelete-inv2