telegram: Support empty (only containing self user) chats
patch d168c6b0635df9185312cd63f8332647d85bac4b
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sat Mar 18 04:42:34 CET 2023
* telegram: Support empty (only containing self user) chats
diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py
--- old-irgramd/telegram.py 2025-04-19 19:05:42.098882647 +0200
+++ new-irgramd/telegram.py 2025-04-19 19:05:42.134882586 +0200
@@ -145,6 +145,7 @@
self.tid_to_iid[chat.id] = channel
chan = channel.lower()
self.irc.iid_to_tid[chan] = chat.id
+ self.irc.irc_channels[chan] = set()
# Add users from the channel
async for user in self.telegram_client.iter_participants(chat.id):
user_nick = self.set_ircuser_from_telegram(user)