patch 74af34e380c2469adf7752e1a16b875110f5b9cf
Author: Peter Bui <pbui@bx612.space>
Date: Thu Jul 18 14:05:47 CEST 2019
* irtelegramd: fix retrieving nick and channel from chat action
diff -rN -u old-irgramd/irtelegramd.py new-irgramd/irtelegramd.py
--- old-irgramd/irtelegramd.py 2024-11-23 02:51:48.924743140 +0100
+++ new-irgramd/irtelegramd.py 2024-11-23 02:51:48.924743140 +0100
@@ -346,8 +346,8 @@
async def handle_telegram_chat_action(self, event):
self.logger.info('Handling Telegram Chat Action: %s', event)
- irc_channel = self.tid_to_iid[event.to_id]
- irc_nick = self.tid_to_iid[event.user_id]
+ irc_channel = self.tid_to_iid[event.action_message.to_id.channel_id]
+ irc_nick = self.tid_to_iid[event.action_message.from_id]
if event.user_added or event.user_joined:
await self.join_irc_channel(irc_nick, irc_channel)