telegram: Rename some functions: use "relay" instead of "handle", to clarify
patch 1a0d9f40779a40ea3c7e9967b71d8142ceba0081
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sat Apr 8 20:56:09 CEST 2023
* telegram: Rename some functions: use "relay" instead of "handle", to clarify
diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py
--- old-irgramd/telegram.py 2024-11-22 16:58:35.457175998 +0100
+++ new-irgramd/telegram.py 2024-11-22 16:58:35.457175998 +0100
@@ -337,21 +337,21 @@
message = '[{}] {}{}'.format(mid, refwd_text, text)
if event.message.is_private:
- await self.handle_telegram_private_message(user, message)
+ await self.relay_telegram_private_message(user, message)
chan = None
else:
- chan = await self.handle_telegram_channel_message(event, user, message)
+ chan = await self.relay_telegram_channel_message(event, user, message)
self.add_to_cache(event.message.id, mid, message, user, chan)
self.refwd_me = False
- async def handle_telegram_private_message(self, user, message):
+ async def relay_telegram_private_message(self, user, message):
self.logger.debug('Handling Telegram Private Message: %s, %s', user, message)
await self.irc.send_msg(user, None, message)
- async def handle_telegram_channel_message(self, event, user, message):
+ async def relay_telegram_channel_message(self, event, user, message):
self.logger.debug('Handling Telegram Channel Message: %s', event)
entity = await event.message.get_chat()