You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2026. It is now read-only.
Aahnik Daw edited this page May 16, 2021
·
3 revisions
It has been asked quitea fewtimes (really, many), and while I don't understand why so many people ask this, the solution is to use GetMessagesViewsRequest, setting increment=True:
fromtelethon.syncimportTelegramClient,functionsCHANNEL="channel_username"# Obtain `channel' through dialogs or through client.get_entity() or anyhow.MSG_IDS= [] # Obtain `msg_ids' through `.get_message_history()` or anyhow. Must be a list.client=TelegramClient("telethon", API_ID, API_HASH).start(phone="xxx")
client(functions.messages.GetMessagesViewsRequest(
peer=CHANNEL,
id=MSG_IDS,
increment=True
))