Actions43
- Chat Actions
- Add Chat Members
- Close Chat
- Close Chat (Lite)
- Create SuperGroup or Channel
- Delete Chat
- Get Chat
- Get Chat History
- Get Chats
- Join Chat
- Mark Chat as Unread
- Open Chat
- Open Chat (Lite)
- Search Public Chat (by Username, Lite)
- Search Public Chat (by Username)
- Search Public Chats (Search in Username, Title)
- Send Chat Action
- Contact Actions
- Custom Request Actions
- File Actions
- Group Actions
- Login Actions
- Message Actions
- User Actions
Message → View Messages
AI-generatedSummary
Marks the specified messages as viewed (read) by the user in the given chat. Requires the chat ID and a comma-separated list of message IDs. The 'Force Read' option (default: true) ensures the action proceeds even if the chat is closed. Returns the result from the TDLib viewMessages method.
Inputs
- chat_id (required) — ID of the chat where the messages are located
- message_ids (required) — Comma-separated identifiers of the messages to be marked as viewed
- force_read (required) — Whether to mark the specified messages as read even if the chat is closed (default: true)
Output shape
Returns the raw result from the TDLib 'viewMessages' method invocation
The exact structure depends on the underlying Telegram API response
Examples
Example 1: Mark messages 42 and 43 as read in chat ID -1001234567890
Set Chat ID to '-1001234567890', Message IDs to '42,43', and Force Read to true (default)
Example 2: Mark a single message as read without forcing (if chat is open)
Set Chat ID to the target chat, Message IDs to '100', and Force Read to false