Telegram CoPilot icon

Telegram CoPilot

袙邪褕 锌械褉褋芯薪邪谢褜薪褘泄 Telegram CoPilot

Actions56

效邪褌 → 袨褌屑械褌懈褌褜 褔邪褌 泻邪泻 薪械锌褉芯褔懈褌邪薪薪褘泄

AI-generated

Overview

This node operation allows toggling the 'marked as unread' status of a Telegram chat. It is useful for managing chat notifications and keeping track of important conversations by marking them as unread or read programmatically.

Use Case Examples

  1. Mark a specific chat as unread to remind yourself to revisit it later.
  2. Mark a chat as read after processing its messages automatically.

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 to mark the chat as unread (true) or read (false).

Output

JSON

  • _ - Telegram API response object for the toggle operation.
  • chat_id - The ID of the chat whose unread status was toggled.
  • is_marked_as_unread - Boolean indicating the new unread status of the chat.

Dependencies

  • Requires Telegram API credentials including apiId, apiHash, and phoneNumber for authentication.

Troubleshooting

  • If the client is not initialized or the session is not logged in, the node will throw an error prompting to login via the TelePilot login process.
  • Errors related to permissions or invalid chat IDs may occur if the user does not have the necessary rights or the chat ID is incorrect.
  • Common error messages include 'Client is not initialized', 'Please login', and Telegram API errors which should be resolved by ensuring valid credentials and chat IDs.

Links

  • TelePilot Login Guide - Instructions on how to login and authenticate the Telegram client for this node.

Discussion