Unread Messages #1979
Unanswered
TimurBatyr
asked this question in
Q&A
Unread Messages
#1979
Replies: 1 comment
-
threads = cl.direct_threads(amount=10)
for thread in threads:
# Fetch messages in the thread
if thread.read_state != 1:
continue
if thread.is_group:
continue
# you will have unread chat include unread messages here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I don't understand how to get unread messages from the chat. Like, is there any method, or attribute, that will tell, if the DirectMessage is read or unread? From the documentation I see the method "direct_pending_inbox()", but it doesnt work! Please suggest other options
Beta Was this translation helpful? Give feedback.
All reactions