ReadEncryptedHistoryRequest
Only users can use this request. See code examples.
---functions--- messages.readEncryptedHistory#7f4b690a peer:InputEncryptedChat max_date:date = Bool
Returns
| Bool |
This type has no instances available.
Parameters
| peer | InputEncryptedChat | |
| max_date | date |
Known RPC errors
This request can cause 1 known error:
MsgWaitFailedError | A waiting call returned an error. |
You can import these from telethon.errors.
Example
from telethon.sync import TelegramClient
from telethon import functions, types
with TelegramClient(name, api_id, api_hash) as client:
result = client(functions.messages.ReadEncryptedHistoryRequest(
peer=types.InputEncryptedChat(
chat_id=478614198,
access_hash=-12398745604826
),
max_date=datetime.datetime(2018, 6, 25)
))
print(result)