Releases: InsanusMokrassar/PlaguBot
Releases · InsanusMokrassar/PlaguBot
10.3.1
10.3.0
Versions
:microutils
:0.23.2
tgbotapi
:22.0.0
exposed
:0.57.0
10.2.1
Versions
:tgbotapi
:21.0.1
Bot
:- Now all
CombinedSubcontextInitialAction.SubItem
s will be taken fromKoin
to setup rootsubcontextInitialAction
- Now all
10.2.0
Versions
:kotlin
:2.1.0
microutils
:0.23.1
tgbotapi
:21.0.0
exposed
:0.56.0
sqlite
:3.47.1.0
10.1.1
Versions
:tgbotapi
:20.0.1
10.1.0
Versions
:kotlin
:2.0.21
serialization
:1.7.3
coroutines
:1.9.0
microutils
:0.23.0
tgbotapi
:20.0.0
exposed
:0.55.0
sqlite
:3.47.0.0
koin
:4.0.0
10.0.0
OVERALL LOGIC OF PLAGUBOT INITIALIZATION AND WORK HAS BEEN CHANGED
First of all, since this update PlaguBot
will use default StartPlugin
logic and will be built on top of it.
All special methods of Plugin
will be called from one of PlaguBot
initialization phases:
-
setupBotClient
will be called fromsingle
initialization oftelegramBot
(insetupDI
phase) -
setupBotPlugin
will be called fromstartPlugin
method in time ofbuildBehaviourWithFSM
initialization -
Plugin
:- Extension
Module.setupDI(Database,JsonObject)
has been dropped. Usedatabase
extension inModule.setupDI(JsonObject)
- Extension
-
Bot
:dev.inmo.plagubot.config.Config
lost itsplugins
section. Now you may retrieve plugins fromKoin
onlydefaultJsonFormat
becameWarning
feature due to the fact of its fully default naturePlaguBot
lost oldstart
method and took two new: withargs
asArray<String>
andinitialConfig
asJsonObject
Migration:
- If you are running bot and doing it using
StartPlugin
launcher, adddev.inmo.plagubot.PlaguBot
explicitly - In plugins: replace your
setupDI
overrides withDatabase
as argument by the same one, butdatabase
will be
available as extension insingle
orfactory
calls (as extension toScope
andKoin
)
9.3.0
Bot
:- Now bot is not built-in into
PlaguBot
and setted up as all otherKoin
dependencies - Now it is possible to use
testServer
parameter for bots out of the box
- Now bot is not built-in into
Plugin
:- New method
setupBotClient
with arguments to let plugin setup bot more freely
- New method
9.2.0
Versions
:kotlin
:2.0.20
serialization
:1.7.2
microutils
:0.22.2
tgbotapi
:18.1.0
exposed
:0.54.0
sqlite
:3.46.1.0
9.1.0
Versions
:tgbotapi
:17.0.0