From 4f42696a20e288e4864bfea54b38000cf86f0a32 Mon Sep 17 00:00:00 2001 From: Davte Date: Mon, 1 Jul 2019 23:37:17 +0200 Subject: [PATCH] TODO: prevent Telegram flood control --- davtelepot/api.py | 1 + davtelepot/bot.py | 1 + 2 files changed, 2 insertions(+) diff --git a/davtelepot/api.py b/davtelepot/api.py index 1ab9c9d..83ff0ad 100644 --- a/davtelepot/api.py +++ b/davtelepot/api.py @@ -139,6 +139,7 @@ class TelegramBot(object): will be closed on `Bot.app.cleanup`. Result may be a Telegram API json response, None, or Exception. """ + # TODO prevent Telegram flood control response_object = None session, session_must_be_closed = self.get_session(method) parameters = self.adapt_parameters(parameters, exclude=exclude) diff --git a/davtelepot/bot.py b/davtelepot/bot.py index 03ace8e..9685269 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -673,6 +673,7 @@ class Bot(TelegramBot): as reply_markup (only those messages can be edited, which were sent with no reply markup or with an inline keyboard). """ + # TODO prevent Telegram flood control if 'message' in update: update = update['message'] if chat_id is None and 'chat' in update: