Skip to content

removeTopChat

Sahri Riza Umami edited this page Jun 23, 2018 · 1 revision

Removes a chat from the list of frequently used chats.
Supported only if the chat info database is enabled.

removeTopChat(category, chat_id, callback, data)
Field Type Description
category string Category of frequently used chats: Users, Bots, Groups, Channels, InlineBots and Calls.
chat_id int32 Chat identifier.

Example

  • Removes bot chat 1234567890 from the list of frequently used chats.

    removeTopChat('Bots', 1234567890)

    Response:

    {
      ["@type"] = "ok"
    }

Frequently Asked Questions
The Functions

Clone this wiki locally