mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +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
|
* 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
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user