telegram: In initial mapping: force the addition of self user just in case
patch fb97160021d62fa832132bda177b4d15df393334
Author: E. Bosch <presidev@AT@gmail.com>
Date: Sun Feb 20 00:01:27 CET 2022
* telegram: In initial mapping: force the addition of self user just in case
is not in dialogs (never sent self messages [saved messages])
diff -rN -u old-irgramd/telegram.py new-irgramd/telegram.py
--- old-irgramd/telegram.py 2024-11-22 22:56:36.679177488 +0100
+++ new-irgramd/telegram.py 2024-11-22 22:56:36.687177475 +0100
@@ -81,6 +81,7 @@
tg_user = await self.telegram_client.get_me()
self.id = tg_user.id
self.tg_username = self.get_telegram_nick(tg_user)
+ self.set_ircuser_from_telegram(tg_user)
async for dialog in self.telegram_client.iter_dialogs():
chat = dialog.entity
if isinstance(chat, tgty.User):