Class SendStickerMethod.

see
package Default

 Methods

create()

create(integer|string $chatId, \TgBotApi\BotApiBase\Type\InputFileType|string $sticker, array|null $data = null) : \TgBotApi\BotApiBase\Method\SendStickerMethod
Static

Parameters

$chatId

integerstring

$sticker

\TgBotApi\BotApiBase\Type\InputFileTypestring

$data

arraynull

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

Returns

\TgBotApi\BotApiBase\Method\SendStickerMethod

fill()

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

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Pass True, if the message should be sent even if the specified replied-to message is not found.

$allowSendingWithoutReply : boolean | null

Default

 

Optional. Sends the message silently. Users will receive a notification with no sound.

$disableNotification : boolean | null

Default

 

Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null

Default

 

Optional. If the message is a reply, ID of the original message.

$replyToMessageId : integer | null

Default

 

Sticker to send.

$sticker : \TgBotApi\BotApiBase\Type\InputFileType | string

Default

Pass a file_id as String to send a file that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a .webp file from the Internet, or upload a new one using multipart/form-data.