Update main.py
Co-authored-by: Eugene Evstafev <36392751+chigwell@users.noreply.github.com>
This commit is contained in:
parent
adc6ef4c7c
commit
fe8dcb3797
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -940,7 +940,7 @@ async def list_chats(chat_type: str = None, limit: int = 20) -> str:
|
|||
chat_info += f", Username: @{entity.username}"
|
||||
|
||||
# Add unread count if available
|
||||
unread_count = getattr(dialog, "unread_count", 0)
|
||||
unread_count = getattr(dialog, "unread_count", 0) or 0
|
||||
# Also check unread_mark (manual "mark as unread" flag)
|
||||
inner_dialog = getattr(dialog, "dialog", None)
|
||||
unread_mark = (
|
||||
|
|
|
|||
Loading…
Reference in a new issue