patch 3c474f69222f523a7b93853ead954940374688ad Author: E. Bosch Date: Sat Mar 18 05:25:42 CET 2023 * service: Use positive ids in dialog list, if not, channel names are not shown correctly diff -rN -u old-irgramd/service.py new-irgramd/service.py --- old-irgramd/service.py 2024-10-23 07:35:48.741041851 +0200 +++ new-irgramd/service.py 2024-10-23 07:35:48.741041851 +0200 @@ -7,6 +7,7 @@ # can be found in the LICENSE file included in this project. from utils import compact_date +from telethon import utils as tgutils class service: def __init__(self, settings, telegram): @@ -79,7 +80,7 @@ 'Id', 'Unread', 'Mentions', 'Type', 'Pin', 'Arch', 'Last', 'Name'), ) async for dialog in self.tg.telegram_client.iter_dialogs(): - id = dialog.id + id, type = tgutils.resolve_id(dialog.id) unr = dialog.unread_count men = dialog.unread_mentions_count ty = 'User' if dialog.is_user else 'Chat' if dialog.is_group else 'Chan'