TelegramBot.pinChatMessage

Pin a message in a supergroup or a channel

  1. bool pinChatMessage(T chat_id, int message_id)
    struct TelegramBot
    @trusted
    bool
    pinChatMessage
    (
    T
    )
  2. bool pinChatMessage(PinChatMessageMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

message_id int

Identifier of a message to pin

Return Value

Type: bool

true on success

Throws

TelegramBotException on errors

See Also

Meta