From bb7aa389136ad9146470fea33fd2e93d82fdfd93 Mon Sep 17 00:00:00 2001 From: Davte Date: Thu, 28 Mar 2019 19:19:30 +0100 Subject: [PATCH] Docstring --- davtelepot/custombot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/davtelepot/custombot.py b/davtelepot/custombot.py index f28ec3e..fb831a5 100644 --- a/davtelepot/custombot.py +++ b/davtelepot/custombot.py @@ -404,10 +404,11 @@ class Bot(telepot.aio.Bot, Gettable): self.get_chat_id = get_chat_id_function async def avoid_flooding(self, chat_id): - """asyncio-sleep until COOLDOWN_TIME (per_chat and absolute) has passed. + """asyncio-sleep until COOLDOWN_TIME has passed. To prevent hitting Telegram flood limits, send_message and send_photo await this function. + Consider cooldown time per chat and absolute. """ if type(chat_id) is int and chat_id > 0: while (