Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Chat → Mark Chat as Unread

AI-generated

Overview

This node operation allows marking a Telegram chat as unread or read. It is useful for managing chat notifications and keeping track of important conversations by toggling their unread status. For example, a user can mark a chat as unread to remind themselves to revisit it later or mark it as read after reviewing the messages.

Use Case Examples

  1. Mark a specific chat as unread to highlight it for follow-up.
  2. Mark a chat as read after processing its messages to clear notifications.

Properties

Name Meaning
Chat ID The unique identifier of the chat to be marked as unread or read.
Mark as Unread? Boolean flag indicating whether the chat should be marked as unread (true) or read (false).

Output

JSON

  • success - Indicates if the operation to mark the chat as unread/read was successful.
  • entity - The chat entity object after the operation, containing updated chat information.

Dependencies

  • Requires an API key credential for Telegram API access.

Troubleshooting

  • Ensure the Telegram client session is logged in before executing this operation; otherwise, an error will be thrown.
  • If the chat ID is invalid or the entity type is unsupported, the node will throw an error indicating the issue.
  • Errors related to session closure or unauthorized access suggest re-authentication is needed, with guidance provided via a login URL.

Links

Discussion