Update main.py
Co-authored-by: Eugene Evstafev <36392751+chigwell@users.noreply.github.com>
This commit is contained in:
parent
78a21ef2d0
commit
041bf0dbec
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
|
@ -945,7 +945,7 @@ async def list_chats(chat_type: str = None, limit: int = 20) -> str:
|
|||
inner_dialog = getattr(dialog, "dialog", None)
|
||||
unread_mark = (
|
||||
getattr(inner_dialog, "unread_mark", False))
|
||||
if hasattr(dialog, "dialog")
|
||||
if inner_dialog else False
|
||||
else False
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue