Skip to content
Advertisement

How to get only unread messages from chat using telethon?

I have client.get_messages(dialog.entity) but its return just messages without “read/unread mark”… So, how can I get unread new messages only? Anybody know? 😥

Advertisement

Answer

Each dialog has unread_count

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement