fix(backend): userbot follows kurigram 2.2.26, user and chat parsing is awaited, missing chat is handled
This commit is contained in:
1 parent
d213dfdf64
commit
945adcf879
11 files changed
+13
-11
No files matched your search
@@ -36,6 +36,8 @@ async def _save_user(ctx: CaptureContext, user: User) -> None:
|
||||
|
||||
async def _enrich_chat_meta(client: Client, ctx: CaptureContext, chat_id: int) -> None:
|
||||
chat = await client.get_chat(chat_id)
|
||||
if chat is None:
|
||||
return
|
||||
photo = chat.photo
|
||||
photo_unique_id = photo.big_photo_unique_id if photo else None
|
||||
photo_file_id = photo.big_file_id if photo else None
|
||||
|
||||
Reference in new issue
Block a user