package stickers
- Alphabetic
- Public
- All
Type Members
- final case class AddStickerToSet(userId: Int, name: String, pngSticker: InputFile, emojis: String, maskPosition: Option[MaskPosition] = None) extends Product with Serializable
Use this method to add a new sticker to a set created by the bot.
Use this method to add a new sticker to a set created by the bot. Returns True on success.
- userId
User identifier of sticker set owner
- name
Sticker set name
- pngSticker
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. 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. More info on Sending Files »
- emojis
One or more emoji corresponding to the sticker
- maskPosition
Position where the mask should be placed on faces
- final case class CreateNewStickerSet(userId: Int, name: String, title: String, pngSticker: InputFile, emojis: String, containsMasks: Option[Boolean] = None, maskPosition: Option[MaskPosition] = None) extends Product with Serializable
Use this method to create new sticker set owned by a user.
Use this method to create new sticker set owned by a user. The bot will be able to edit the created sticker set.
Returns True on success.
- userId
User identifier of created sticker set owner
- name
Short name of sticker set, to be used in t.me/addstickers/ URLs (e.g., animals). Can contain only english letters, digits and underscores. Must begin with a letter. Can't contain consecutive underscores and must end in “_by_<bot username>”. <bot_username> is case insensitive. 1-64 characters.
- title
Sticker set title, 1-64 characters
- pngSticker
Sticker file (can be existing Telegram file or new one in .png format)
- emojis
One or more emoji corresponding to the sticker
- containsMasks
Pass True, if a set of mask stickers should be created
- maskPosition
Position where the mask should be placed on faces
- final case class DeleteStickerFromSet(sticker: String) extends Product with Serializable
Use this method to delete a sticker from a set created by the bot.
Use this method to delete a sticker from a set created by the bot.
Returns True on success.
- sticker
Sticker's fileId
- final case class GetStickerSet(name: String) extends Product with Serializable
Use this method to get a sticker set.
Use this method to get a sticker set.
On success, a StickerSet object is returned.
- name
Name of the sticker set
- final case class SetStickerPositionInSet(sticker: String, position: Int) extends Product with Serializable
Use this method to move a sticker in a set created by the bot to a specific position.
Use this method to move a sticker in a set created by the bot to a specific position.
Returns True on success.
- sticker
Sticker's fileId
- position
New sticker position in the set, zero-based
- final case class UploadStickerFile(userId: Int, pngSticker: InputFile) extends Product with Serializable
Use this method to upload a .png file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times).
Use this method to upload a .png file with a sticker for later use in createNewStickerSet and addStickerToSet methods (can be used multiple times). Returns the uploaded File on success.
- userId
Integer User identifier of sticker file owner
- pngSticker
InputFile 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. More info on Sending Files
Value Members
- object AddStickerToSet extends Serializable
- object CreateNewStickerSet extends Serializable
- object DeleteStickerFromSet extends Serializable
- object GetStickerSet extends Serializable
- object SetStickerPositionInSet extends Serializable
- object UploadStickerFile extends Serializable