exclam: Fix send a reaction when there was already a previous reaction from other user on the same message,
patch 0c96892ec68150c96ef7ba50ec4e2db3db2296e4
Author: E. Bosch <presidev@AT@gmail.com>
Date: Thu Jan 16 22:00:14 CET 2025
* exclam: Fix send a reaction when there was already a previous reaction from other user on the same message,
for some reason the 'message' attribute is not received
diff -rN -u old-irgramd/exclam.py new-irgramd/exclam.py
--- old-irgramd/exclam.py 2025-01-22 06:14:37.369095866 +0100
+++ new-irgramd/exclam.py 2025-01-22 06:14:37.369095866 +0100
@@ -205,8 +205,8 @@
except ReactionInvalidError:
reply = ('!react: Reaction not allowed',)
else:
- self.tmp_tg_msg = update.updates[0].message
- reply = True
+ self.tmp_tg_msg = getattr(update.updates[0], 'message', None)
+ reply = bool(self.tmp_tg_msg)
else:
reply = ('!react: Unknown reaction',)
else: