1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2024-11-22 00:03:48 +00:00

remove reporting of /privacy handling absence in buildBehaviourWithLongPolling

This commit is contained in:
InsanusMokrassar 2024-09-08 22:25:15 +06:00
parent 02be5b5e48
commit 42985cfa37
2 changed files with 2 additions and 3 deletions

View File

@ -12,6 +12,8 @@
* Fix `GiveawayPrivateResults` to be correctly deserializable * Fix `GiveawayPrivateResults` to be correctly deserializable
* `GiveawayResults` become `PublicChannelEvent` * `GiveawayResults` become `PublicChannelEvent`
* Fixes in deserialization of updates with giveaways * Fixes in deserialization of updates with giveaways
* `BehaviourBuilder`:
* Extension `buildBehaviourWithLongPolling` will not report absence of `/privacy` handling
* `WebApp`: * `WebApp`:
* `MainButton` has been deprecated in favor to `BottomButton`. Their functionality is equal * `MainButton` has been deprecated in favor to `BottomButton`. Their functionality is equal

View File

@ -73,9 +73,6 @@ suspend fun TelegramBot.buildBehaviourWithLongPolling(
defaultExceptionsHandler = defaultExceptionsHandler, defaultExceptionsHandler = defaultExceptionsHandler,
block = block 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( return longPolling(
behaviourContext, behaviourContext,
scope = behaviourContext, scope = behaviourContext,