view_messages()#
- Client.view_messages()#
Increment message views counter.
Usable by Users Bots- Parameters:
chat_id (
int
|str
) – Unique identifier (int) or username (str) of the target chat.message_id (
int
| List ofint
) – Identifier or list of message identifiers of the target message.
- Returns:
bool
– On success, True is returned.
Example
# Increment message views await app.view_messages(chat_id, 1)