Queer European MD passionate about IT
Bladeren bron

TODO: prevent Telegram flood control

Davte 5 jaren geleden
bovenliggende
commit
4f42696a20
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 1 0
      davtelepot/api.py
  2. 1 0
      davtelepot/bot.py

+ 1 - 0
davtelepot/api.py

@@ -139,6 +139,7 @@ class TelegramBot(object):
             will be closed on `Bot.app.cleanup`.
             will be closed on `Bot.app.cleanup`.
         Result may be a Telegram API json response, None, or Exception.
         Result may be a Telegram API json response, None, or Exception.
         """
         """
+        # TODO prevent Telegram flood control
         response_object = None
         response_object = None
         session, session_must_be_closed = self.get_session(method)
         session, session_must_be_closed = self.get_session(method)
         parameters = self.adapt_parameters(parameters, exclude=exclude)
         parameters = self.adapt_parameters(parameters, exclude=exclude)

+ 1 - 0
davtelepot/bot.py

@@ -673,6 +673,7 @@ class Bot(TelegramBot):
             as reply_markup (only those messages can be edited, which were
             as reply_markup (only those messages can be edited, which were
             sent with no reply markup or with an inline keyboard).
             sent with no reply markup or with an inline keyboard).
         """
         """
+        # TODO prevent Telegram flood control
         if 'message' in update:
         if 'message' in update:
             update = update['message']
             update = update['message']
         if chat_id is None and 'chat' in update:
         if chat_id is None and 'chat' in update: