From f3262b08cde04ca5ad4dcfa13e7ecd0b4d68f69d Mon Sep 17 00:00:00 2001 From: Audrey Date: Mon, 20 Apr 2026 13:35:45 +0800 Subject: [PATCH] Fix numeric chat ID resolution in check_chat_id() Prime dialogs first so peers are cached and numeric IDs can be resolved reliably. --- clonechat.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clonechat.py b/clonechat.py index fd0d21a..ef41ec8 100644 --- a/clonechat.py +++ b/clonechat.py @@ -459,6 +459,8 @@ def get_task_file(ORIGIN_CHAT_TITLE, destination_chat): def check_chat_id(chat_id): try: + for _ in tg.get_dialogs(): + pass chat_obj = tg.get_chat(chat_id) chat_title = chat_obj.title return chat_title