Class PinChatMessageMethod.

see
package Default

 Methods

create()

create(integer|string $chatId, integer $messageId, array|null $data = null) : \TgBotApi\BotApiBase\Method\PinChatMessageMethod
Static

Parameters

$chatId

integerstring

$messageId

integer

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Method\PinChatMessageMethod

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

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

$chatId : integer | string

Default

 

Optional. Pass True, if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels.

$disableNotification : boolean | null

Default

 

Identifier of a message.

$messageId : integer

Default