telegram: Remove unused code for autojoin when message received
patch 7adb8b6b7deac877dd19a610e031c5577ec39349
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sat Jan 22 22:51:40 CET 2022
* telegram: Remove unused code for autojoin when message received
diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py
--- old-irgramd/telegram.py 2024-11-23 03:09:29.367078964 +0100
+++ new-irgramd/telegram.py 2024-11-23 03:09:29.367078964 +0100
@@ -253,17 +253,11 @@
async def handle_telegram_channel_message(self, event):
self.logger.debug('Handling Telegram Channel Message: %s', event)
- # Join IRC channel if not already in it
entity = await event.message.get_chat()
channel = await self.get_irc_channel_from_telegram_id(event.message.chat_id, entity)
-# if channel not in self.irc.irc_channels:
-# await self.irc.join_irc_channel(self.irc.irc_nick, channel, True)
user = self.get_irc_user_from_telegram(event.sender_id)
-# if nick not in self.irc.irc_channels[channel]:
-# await self.irc.join_irc_channel(nick, channel, False)
-
# Format messages with media
messages = event.message.message.splitlines() if event.message.message else []
if event.message.media and (event.message.photo or event.message.gif):