mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-12-22 08:37:12 +00:00
remove reporting of /privacy handling absence in buildBehaviourWithLongPolling
This commit is contained in:
parent
02be5b5e48
commit
42985cfa37
@ -12,6 +12,8 @@
|
||||
* Fix `GiveawayPrivateResults` to be correctly deserializable
|
||||
* `GiveawayResults` become `PublicChannelEvent`
|
||||
* Fixes in deserialization of updates with giveaways
|
||||
* `BehaviourBuilder`:
|
||||
* Extension `buildBehaviourWithLongPolling` will not report absence of `/privacy` handling
|
||||
* `WebApp`:
|
||||
* `MainButton` has been deprecated in favor to `BottomButton`. Their functionality is equal
|
||||
|
||||
|
@ -73,9 +73,6 @@ suspend fun TelegramBot.buildBehaviourWithLongPolling(
|
||||
defaultExceptionsHandler = defaultExceptionsHandler,
|
||||
block = block
|
||||
)
|
||||
if (!behaviourContext.triggersHolder.handleableCommandsHolder.isHandled(DefaultKTgBotAPIPrivacyCommand)) {
|
||||
DefaultKTgBotAPIKSLog.e { "Currently, there are no any handling of \"$DefaultKTgBotAPIPrivacyCommand\" command. According to https://telegram.org/tos/bot-developers#4-privacy it may lead to bot deactivation or removing" }
|
||||
}
|
||||
return longPolling(
|
||||
behaviourContext,
|
||||
scope = behaviourContext,
|
||||
|
Loading…
Reference in New Issue
Block a user