Skip to content

pinChannelMessage

Sahri Riza Umami edited this page Jun 10, 2017 · 5 revisions

Pins a message in a supergroup channel chat.

pinChannelMessage(channel_id, message_id, disable_notification)

Needs editor privileges in the channel.

Option Description
channel_id Identifier of the channel.
message_id Identifier of the new pinned message.
disable_notification true, if there should be no notification about the pinned message.

Example

  • Pin message number 212 in group 1234567890 and notify all members.

    pinChannelMessage(1234567890, 212, 0)

    Response:

    {
      ID = "Ok"
    }

Test script
Frequently Asked Questions
The Functions

Clone this wiki locally