Fix translation of channel name from Telegram to IRC
patch ad20db76c932d5cec9aa18df25d91abeabcb7f51
Author: E. Bosch <presidev@AT@gmail.com>
Date: Thu Mar 3 23:07:36 CET 2022
* Fix translation of channel name from Telegram to IRC
diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py
--- old-irgramd/telegram.py 2024-11-22 21:49:40.289551625 +0100
+++ new-irgramd/telegram.py 2024-11-22 21:49:40.289551625 +0100
@@ -164,7 +164,7 @@
return self.get_telegram_display_name(tg_user)
def get_telegram_channel(self, chat):
- return '#' + chat.title.replace(' ', '-')
+ return '#' + chat.title.replace(' ', '-').replace(',', '-')
def get_irc_user_from_telegram(self, tid):
nick = self.tid_to_iid[tid]