diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-02-02 09:48:34 +0100 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-02-02 09:48:34 +0100 |
| commit | 5948d0029bd368157f2c507404c4c4bf76cf5ef5 (patch) | |
| tree | ff41d3f465038f2e1abd3f67db67763a822fc224 /velascobot2 | |
| parent | 38c452051e7ff7a9b423b8d5be19a434c4d2f6ef (diff) | |
| download | velascobot2-5948d0029bd368157f2c507404c4c4bf76cf5ef5.tar.xz velascobot2-5948d0029bd368157f2c507404c4c4bf76cf5ef5.zip | |
Another fix
Diffstat (limited to 'velascobot2')
| -rw-r--r-- | velascobot2/bot.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/velascobot2/bot.py b/velascobot2/bot.py index 9659a8d..d8cc467 100644 --- a/velascobot2/bot.py +++ b/velascobot2/bot.py @@ -458,7 +458,8 @@ class Bot: response, content = self.messenger.give_response(chat_id) await self.send(chat_id, response, content, **kwargs) while random.random() <= self.messenger.repeat: - del kwargs["reply_to_message_id"] + if "reply_to_message_id" in kwargs: + del kwargs["reply_to_message_id"] response, content = self.messenger.give_response(chat_id) await self.send(chat_id, response, content, **kwargs) # Consider any Network Error as a Telegram temporary ban, as I |
