Skip to content

pinSupergroupMessage

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

Pins a message in a supergroup or channel; requires appropriate administrator rights in the supergroup or channel.

pinSupergroupMessage(supergroup_id, message_id, disable_notification, callback, data)
Field Type Description
supergroup_id int32 Identifier of the supergroup or channel.
message_id int53 Identifier of the new pinned message.
disable_notification Bool True, if there should be no notification about the pinned message.

Example

  • Pins message 212 in chat 1234567890, and don't notified members about the pinned message.

    pinSupergroupMessage(1234567890, 212, 1)

    Response:

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

Frequently Asked Questions
The Functions

Clone this wiki locally