patch 6ee9aa156a4ffb387c5d160d53ba72cc34d6e1bb Author: E. Bosch Date: Sat Mar 18 04:43:35 CET 2023 * telegram: Support (different) channels with same name diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py --- old-irgramd/telegram.py 2024-11-23 02:12:38.260444949 +0100 +++ new-irgramd/telegram.py 2024-11-23 02:12:38.260444949 +0100 @@ -177,7 +177,10 @@ return self.get_telegram_display_name(tg_user) def get_telegram_channel(self, chat): - return '#' + chat.title.replace(' ', '-').replace(',', '-') + chan = '#' + chat.title.replace(' ', '-').replace(',', '-') + while chan.lower() in self.irc.iid_to_tid: + chan += '_' + return chan def get_irc_user_from_telegram(self, tid): nick = self.tid_to_iid[tid]