fix(backend): userbot follows kurigram 2.2.26, user and chat parsing is awaited, missing chat is handled

This commit is contained in:
hh committed 2026-10-14 03:55:33 +02:00
1 parent d213dfdf64
commit 945adcf879
11 files changed
+13 -11

No files matched your search

@@ -12,7 +12,7 @@ STALE_FILE_ID = (FileIdInvalid, FileReferenceExpired, FileReferenceInvalid)
async def _fresh_file_id(client: Client, owner_id: int, unique_id: str) -> str | None:
chat = await client.get_chat(owner_id)
photo = chat.photo
photo = chat.photo if chat else None
if photo and photo.big_photo_unique_id == unique_id:
return photo.big_file_id
photos = client.get_chat_photos(owner_id)