TelegramBotAPI v0.24.1 Release Notes
-
TelegramBotAPI
:UpdateReceiver
was replaced to the packagecom.github.insanusmokrassar.TelegramBotAPI.updateshandlers
- All functions inside
com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdatesPolling
are deprecated and will be removed in some soon versions. Their replacement are able insideTelegramBotAPI-extensions-api
UpdatesFilter
is interface for now- Previous
UpdatesFilter
class was renamed toSimpleUpdatesFilter
and for backward compatibility was added builder functionUpdatesFilter
, which will be removed in near releases FlowsUpdatesFilter
now implementsUpdatesFilter
- Previous
BaseSentMessageUpdate
andBaseEditMessageUpdate
interfaces was addedEditChannelPostUpdate
now is implementingBaseEditMessageUpdate
interfaceEditMessageUpdate
now is implementingBaseEditMessageUpdate
interfaceChannelPostUpdate
now is implementingBaseSentMessageUpdate
interfaceMessageUpdate
now is implementingBaseSentMessageUpdate
interface
UpdatesPoller
and all its usages, childs and childs usages now are deprecatedGetUpdates#timeout
type now isSeconds
(in fact it isInt
as previously)KtorRequestsExecutor
now is using a copy of incomingHttpClient
object and installHttpTimeout
featureAbstractRequestCallFactory
now setting up a custom delay in case if request isGetUpdates
TelegramBotAPI-extensions-api
:- All functions from
com.github.insanusmokrassar.TelegramBotAPI.utils.extensions.UpdatesPolling
now available in packagecom.github.insanusmokrassar.TelegramBotAPI.extensions.api.updates.UpdatesPolling
- Now new method of getting updates available:
startGettingUpdates
withUpdatesFilter
as incoming first parameter startGettingUpdates
withreceiver
andallowedUpdates
parameters now will handle updates by itself
- All functions from