ReceivedMessagesRequest
Only users can use this request. See code examples.
---functions--- messages.receivedMessages#05a954c0 max_id:int = Vector<ReceivedNotifyMessage>
Returns
A list of the following type is returned.
ReceivedNotifyMessage |
This type can only be an instance of:
ReceivedNotifyMessage |
Parameters
max_id | int |
Known RPC errors
This request can't cause any RPC error as far as we know.
Example
from telethon.sync import TelegramClient from telethon import functions, types with TelegramClient(name, api_id, api_hash) as client: result = client(functions.messages.ReceivedMessagesRequest( max_id=0 )) for x in result: print(x)