TODO: prevent Telegram flood control
This commit is contained in:
parent
e05b0ebe46
commit
4f42696a20
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user