Merge pull request #84 from dsvetlov/feat/unread-mentions-count
feat: show unread mentions count in list_chats output
This commit is contained in:
commit
0b1e2b48fd
1 changed files with 5 additions and 0 deletions
5
main.py
5
main.py
|
|
@ -1347,6 +1347,11 @@ async def list_chats(
|
|||
|
||||
chat_info += f", Muted: {'yes' if is_muted else 'no'}"
|
||||
|
||||
# Add unread mentions count if available
|
||||
unread_mentions = getattr(dialog, "unread_mentions_count", 0) or 0
|
||||
if unread_mentions > 0:
|
||||
chat_info += f", Unread mentions: {unread_mentions}"
|
||||
|
||||
results.append(chat_info)
|
||||
|
||||
if not results:
|
||||
|
|
|
|||
Loading…
Reference in a new issue