set_direct_messages_chat_topic_is_marked_as_unread()¶
- Client.set_direct_messages_chat_topic_is_marked_as_unread()¶
Change the marked as unread state of the topic in a channel direct messages chat administered by the current user.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.topic_id (
int) – Identifier of the topic which messages will be fetched.is_marked_as_unread (
bool, optional) – Pass True to mark the topic as unread. Pass False to mark the topic as read. Defaults to True.
- Returns:
bool– True on success
Example
# Mark the topic as unread await app.set_direct_messages_chat_topic_is_marked_as_unread(chat_id, topic_id)