Class CreateNewStickerSetMethod.

see
package Default

 Methods

CreateNewStickerSetMethod constructor.

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

Parameters

$userId

$name

$title

$pngSticker

\TgBotApi\BotApiBase\Type\InputFileTypestring

$emojis

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

CreateNewStickerSetMethod constructor.

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

Parameters

$userId

$name

$title

$tgsSticker

$emojis

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

CreateNewStickerSetMethod constructor.

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

Parameters

$userId

$name

$title

$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 $title, \TgBotApi\BotApiBase\Method\string $emojis, array $data = null
Static

Parameters

$userId

$name

$title

$emojis

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Pass True, if a set of mask stickers should be created.

$containsMasks : boolean | null

Default

 

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

 

Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals).

$name : string

Default

Can contain only english letters, digits and underscores. Must begin with a letter, can't contain consecutive underscores and must end in “by”.

is case insensitive. 1-64 characters.
 

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

 

Sticker set title, 1-64 characters.

$title : string

Default

 

User identifier of created sticker set owner.

$userId : integer

Default