Class AddStickerToSetMethod.

see
package Default

 Methods

create()

create(\TgBotApi\BotApiBase\Method\int $userId, \TgBotApi\BotApiBase\Method\string $name, \TgBotApi\BotApiBase\Type\InputFileType|string $pngSticker, \TgBotApi\BotApiBase\Method\string $emojis, array $data = null
Static
deprecated
see

Parameters

$userId

$name

$pngSticker

\TgBotApi\BotApiBase\Type\InputFileTypestring

$emojis

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

createAnimated()

createAnimated(\TgBotApi\BotApiBase\Method\int $userId, \TgBotApi\BotApiBase\Method\string $name, \TgBotApi\BotApiBase\Type\InputFileType $tgsSticker, \TgBotApi\BotApiBase\Method\string $emojis, array $data = null
Static

Parameters

$userId

$name

$tgsSticker

$emojis

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

createStatic()

createStatic(\TgBotApi\BotApiBase\Method\int $userId, \TgBotApi\BotApiBase\Method\string $name, \TgBotApi\BotApiBase\Type\InputFileType|string $pngSticker, \TgBotApi\BotApiBase\Method\string $emojis, array $data = null
Static

Parameters

$userId

$name

$pngSticker

\TgBotApi\BotApiBase\Type\InputFileTypestring

$emojis

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

fill()

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

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

createBase()

createBase(\TgBotApi\BotApiBase\Method\int $userId, \TgBotApi\BotApiBase\Method\string $name, \TgBotApi\BotApiBase\Method\string $emojis, array $data = null
Static

Parameters

$userId

$name

$emojis

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

One or more emoji corresponding to the sticker.

$emojis : string

Default

 

Optional. A JSON-serialized object for position where the mask should be placed on faces.

$maskPosition : \TgBotApi\BotApiBase\Type\MaskPositionType | null

Default

 

Sticker set name.

$name : string

Default

 

Optional. Png image with the sticker, must be up to 512 kilobytes in size, dimensions must not exceed 512px, and either width or height must be exactly 512px.

$pngSticker : \TgBotApi\BotApiBase\Type\InputFileType | string | null

Default

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

 

Optional. TGS animation with the sticker, uploaded using multipart/form-data.

$tgsSticker : \TgBotApi\BotApiBase\Type\InputFileType | null

Default

 

User identifier of sticker set owner.

$userId : integer

Default