patch 636b9aa2cb3b22eda734047f3d320dcc7e0303ad Author: Peter Bui Date: Fri Jul 19 04:59:19 CEST 2019 * Just use get_entity (get_input_entity requires it to be cached) diff -rN -u old-irgramd/irtelegramd.py new-irgramd/irtelegramd.py --- old-irgramd/irtelegramd.py 2024-11-23 03:02:13.299758171 +0100 +++ new-irgramd/irtelegramd.py 2024-11-23 03:02:13.299758171 +0100 @@ -282,10 +282,7 @@ async def get_irc_nick_from_telegram_id(self, tid): if tid not in self.tid_to_iid: - try: - user = await self.telegram_client.get_input_entity(tid) - except ValueError: - user = await self.telegram_client.get_entity(tid) + user = await self.telegram_client.get_entity(tid) nick = self.get_telegram_nick(user) self.tid_to_iid[tid] = nick self.iid_to_tid[nick] = tid