view_messages()¶
- Client.view_messages()¶
Informs the server that messages are being viewed by the current user.
Usable by Users Bots
- Parameters:¶
chat_id (``int`` | ``str``) – Unique identifier (int) or username (str) of the target chat.
message_ids (``int`` | List of ``int``) – Identifier or list of message identifiers of the target message.
force_read (``bool``, *optional*) – Pass True to mark as read the specified messages and also increment the view counter.
- Returns:¶
``bool`` (On success, True is returned.)
Example
# Increment message views await app.view_messages(chat_id, 1)