set_direct_messages_chat_topic_is_marked_as_unread()¶
- async 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 to mark as read or unread.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– On success, True is returned.
Example
# Mark the topic as unread await app.set_direct_messages_chat_topic_is_marked_as_unread(chat_id, topic_id) # Mark the topic as read await app.set_direct_messages_chat_topic_is_marked_as_unread(chat_id, topic_id, False)