This commit is contained in:
sys-001 2023-03-17 08:16:01 +00:00
parent 1f9fefe0a0
commit 02529b1369
5 changed files with 4000 additions and 1551 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
version: 6.5.0
version: 6.6.0
types:
-
name: Update
@ -976,7 +976,7 @@ types:
optional: false
description: 'Duration of the video in seconds as defined by sender'
-
name: thumb
name: thumbnail
types:
- PhotoSize
optional: true
@ -1053,7 +1053,7 @@ types:
optional: true
description: 'Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this value.'
-
name: thumb
name: thumbnail
types:
- PhotoSize
optional: true
@ -1076,7 +1076,7 @@ types:
optional: false
description: "Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file."
-
name: thumb
name: thumbnail
types:
- PhotoSize
optional: true
@ -1135,7 +1135,7 @@ types:
optional: false
description: 'Duration of the video in seconds as defined by sender'
-
name: thumb
name: thumbnail
types:
- PhotoSize
optional: true
@ -1188,7 +1188,7 @@ types:
optional: false
description: 'Duration of the video in seconds as defined by sender'
-
name: thumb
name: thumbnail
types:
- PhotoSize
optional: true
@ -1843,7 +1843,7 @@ types:
types:
- int
optional: false
description: 'Signed 32-bit identifier of the request'
description: 'Signed 32-bit identifier of the request, which will be received back in the UserShared object. Must be unique within the message'
-
name: user_is_bot
types:
@ -1866,7 +1866,7 @@ types:
types:
- int
optional: false
description: 'Signed 32-bit identifier of the request'
description: 'Signed 32-bit identifier of the request, which will be received back in the ChatShared object. Must be unique within the message'
-
name: chat_is_channel
types:
@ -1896,7 +1896,7 @@ types:
types:
- ChatAdministratorRights
optional: true
description: 'Optional. A JSON-serialized object listing the required administrator rights of the user in the chat. If not specified, no additional restrictions are applied.'
description: 'Optional. A JSON-serialized object listing the required administrator rights of the user in the chat. The rights must be a superset of bot_administrator_rights. If not specified, no additional restrictions are applied.'
-
name: bot_administrator_rights
types:
@ -2942,6 +2942,28 @@ types:
optional: false
description: 'Unique identifier of the target user'
extended_by: { }
-
name: BotDescription
description: "This object represents the bot's description."
fields:
-
name: description
types:
- string
optional: false
description: "The bot's description"
extended_by: { }
-
name: BotShortDescription
description: "This object represents the bot's short description."
fields:
-
name: short_description
types:
- string
optional: false
description: "The bot's short description"
extended_by: { }
-
name: MenuButton
description: "This object describes the bot's menu button in a private chat. It should be one of"
@ -3085,7 +3107,7 @@ types:
optional: false
description: 'File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -3158,7 +3180,7 @@ types:
optional: false
description: 'File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -3225,7 +3247,7 @@ types:
optional: false
description: 'File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -3286,7 +3308,7 @@ types:
optional: false
description: 'File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new one using multipart/form-data under <file_attach_name> name. More information on Sending Files »'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -3369,7 +3391,7 @@ types:
optional: false
description: 'True, if the sticker is a video sticker'
-
name: thumb
name: thumbnail
types:
- PhotoSize
optional: true
@ -3404,6 +3426,13 @@ types:
- string
optional: true
description: 'Optional. For custom emoji stickers, unique identifier of the custom emoji'
-
name: needs_repainting
types:
- bool
optional: true
description: 'Optional. True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, white color on chat photos, or another appropriate color in other places'
default: true
-
name: file_size
types:
@ -3452,7 +3481,7 @@ types:
optional: false
description: 'List of all set stickers'
-
name: thumb
name: thumbnail
types:
- PhotoSize
optional: true
@ -3487,6 +3516,36 @@ types:
optional: false
description: 'Mask scaling coefficient. For example, 2.0 means double size.'
extended_by: { }
-
name: InputSticker
description: 'This object describes a sticker to be added to a sticker set.'
fields:
-
name: sticker
types:
- InputFile
- string
optional: false
description: "The added sticker. 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. Animated and video stickers can't be uploaded via HTTP URL. More information on Sending Files »"
-
name: emoji_list
types:
- Array<string>
optional: false
description: 'List of 1-20 emoji associated with the sticker'
-
name: mask_position
types:
- MaskPosition
optional: true
description: 'Optional. Position where the mask should be placed on faces. For “mask” stickers only.'
-
name: keywords
types:
- Array<string>
optional: true
description: 'Optional. List of 0-20 search keywords for the sticker with total length of up to 64 characters. For “regular” and “custom_emoji” stickers only.'
extended_by: { }
-
name: InlineQuery
description: 'This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.'
@ -3607,19 +3666,19 @@ types:
optional: true
description: 'Optional. Short description of the result'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: true
description: 'Optional. Url of the thumbnail for the result'
-
name: thumb_width
name: thumbnail_width
types:
- int
optional: true
description: 'Optional. Thumbnail width'
-
name: thumb_height
name: thumbnail_height
types:
- int
optional: true
@ -3649,7 +3708,7 @@ types:
optional: false
description: 'A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: false
@ -3751,13 +3810,13 @@ types:
optional: true
description: 'Optional. Duration of the GIF in seconds'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: false
description: 'URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result'
-
name: thumb_mime_type
name: thumbnail_mime_type
types:
- string
optional: true
@ -3842,13 +3901,13 @@ types:
optional: true
description: 'Optional. Video duration in seconds'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: false
description: 'URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result'
-
name: thumb_mime_type
name: thumbnail_mime_type
types:
- string
optional: true
@ -3921,7 +3980,7 @@ types:
optional: false
description: 'MIME type of the content of the video URL, “text/html” or “video/mp4”'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: false
@ -4197,19 +4256,19 @@ types:
optional: true
description: 'Optional. Content of the message to be sent instead of the file'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: true
description: 'Optional. URL of the thumbnail (JPEG only) for the file'
-
name: thumb_width
name: thumbnail_width
types:
- int
optional: true
description: 'Optional. Thumbnail width'
-
name: thumb_height
name: thumbnail_height
types:
- int
optional: true
@ -4287,19 +4346,19 @@ types:
optional: true
description: 'Optional. Content of the message to be sent instead of the location'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: true
description: 'Optional. Url of the thumbnail for the result'
-
name: thumb_width
name: thumbnail_width
types:
- int
optional: true
description: 'Optional. Thumbnail width'
-
name: thumb_height
name: thumbnail_height
types:
- int
optional: true
@ -4383,19 +4442,19 @@ types:
optional: true
description: 'Optional. Content of the message to be sent instead of the venue'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: true
description: 'Optional. Url of the thumbnail for the result'
-
name: thumb_width
name: thumbnail_width
types:
- int
optional: true
description: 'Optional. Thumbnail width'
-
name: thumb_height
name: thumbnail_height
types:
- int
optional: true
@ -4455,19 +4514,19 @@ types:
optional: true
description: 'Optional. Content of the message to be sent instead of the contact'
-
name: thumb_url
name: thumbnail_url
types:
- string
optional: true
description: 'Optional. Url of the thumbnail for the result'
-
name: thumb_width
name: thumbnail_width
types:
- int
optional: true
description: 'Optional. Thumbnail width'
-
name: thumb_height
name: thumbnail_height
types:
- int
optional: true
@ -6531,7 +6590,7 @@ methods:
optional: true
description: 'Track name'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -6597,7 +6656,7 @@ methods:
optional: false
description: 'File to send. 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 file from the Internet, or upload a new one using multipart/form-data. More information on Sending Files »'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -6705,7 +6764,7 @@ methods:
optional: true
description: 'Video height'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -6819,7 +6878,7 @@ methods:
optional: true
description: 'Animation height'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -7004,7 +7063,7 @@ methods:
optional: true
description: 'Video width and height, i.e. diameter of the video message'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
@ -7182,100 +7241,6 @@ methods:
description: '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.'
return_types:
- Message
-
name: editMessageLiveLocation
description: 'Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.'
fields:
-
name: chat_id
types:
- int
- string
optional: true
description: 'Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)'
-
name: message_id
types:
- int
optional: true
description: 'Required if inline_message_id is not specified. Identifier of the message to edit'
-
name: inline_message_id
types:
- string
optional: true
description: 'Required if chat_id and message_id are not specified. Identifier of the inline message'
-
name: latitude
types:
- float
optional: false
description: 'Latitude of new location'
-
name: longitude
types:
- float
optional: false
description: 'Longitude of new location'
-
name: horizontal_accuracy
types:
- float
optional: true
description: 'The radius of uncertainty for the location, measured in meters; 0-1500'
-
name: heading
types:
- int
optional: true
description: 'Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.'
-
name: proximity_alert_radius
types:
- int
optional: true
description: 'The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.'
-
name: reply_markup
types:
- InlineKeyboardMarkup
optional: true
description: 'A JSON-serialized object for a new inline keyboard.'
return_types:
- Message
- bool
-
name: stopMessageLiveLocation
description: 'Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.'
fields:
-
name: chat_id
types:
- int
- string
optional: true
description: 'Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)'
-
name: message_id
types:
- int
optional: true
description: 'Required if inline_message_id is not specified. Identifier of the message with live location to stop'
-
name: inline_message_id
types:
- string
optional: true
description: 'Required if chat_id and message_id are not specified. Identifier of the inline message'
-
name: reply_markup
types:
- InlineKeyboardMarkup
optional: true
description: 'A JSON-serialized object for a new inline keyboard.'
return_types:
- Message
- bool
-
name: sendVenue
description: 'Use this method to send information about a venue. On success, the sent Message is returned.'
@ -8303,7 +8268,7 @@ methods:
- int
-
name: getChatMember
description: 'Use this method to get information about a member of a chat. The method is guaranteed to work for other users, only if the bot is an administrator in the chat. Returns a ChatMember object on success.'
description: 'Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a ChatMember object on success.'
fields:
-
name: chat_id
@ -8668,6 +8633,66 @@ methods:
description: 'A two-letter ISO 639-1 language code or an empty string'
return_types:
- Array<BotCommand>
-
name: setMyDescription
description: "Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty. Returns True on success."
fields:
-
name: description
types:
- string
optional: true
description: 'New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language.'
-
name: language_code
types:
- string
optional: true
description: 'A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description.'
return_types:
- bool
-
name: getMyDescription
description: 'Use this method to get the current bot description for the given user language. Returns BotDescription on success.'
fields:
-
name: language_code
types:
- string
optional: true
description: 'A two-letter ISO 639-1 language code or an empty string'
return_types:
- BotDescription
-
name: setMyShortDescription
description: "Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot. Returns True on success."
fields:
-
name: short_description
types:
- string
optional: true
description: 'New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language.'
-
name: language_code
types:
- string
optional: true
description: 'A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users for whose language there is no dedicated short description.'
return_types:
- bool
-
name: getMyShortDescription
description: 'Use this method to get the current bot short description for the given user language. Returns BotShortDescription on success.'
fields:
-
name: language_code
types:
- string
optional: true
description: 'A two-letter ISO 639-1 language code or an empty string'
return_types:
- BotShortDescription
-
name: setChatMenuButton
description: "Use this method to change the bot's menu button in a private chat, or the default menu button. Returns True on success."
@ -8701,7 +8726,7 @@ methods:
- MenuButton
-
name: setMyDefaultAdministratorRights
description: "Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are are free to modify the list before adding the bot. Returns True on success."
description: "Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success."
fields:
-
name: rights
@ -8873,6 +8898,100 @@ methods:
return_types:
- Message
- bool
-
name: editMessageLiveLocation
description: 'Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.'
fields:
-
name: chat_id
types:
- int
- string
optional: true
description: 'Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)'
-
name: message_id
types:
- int
optional: true
description: 'Required if inline_message_id is not specified. Identifier of the message to edit'
-
name: inline_message_id
types:
- string
optional: true
description: 'Required if chat_id and message_id are not specified. Identifier of the inline message'
-
name: latitude
types:
- float
optional: false
description: 'Latitude of new location'
-
name: longitude
types:
- float
optional: false
description: 'Longitude of new location'
-
name: horizontal_accuracy
types:
- float
optional: true
description: 'The radius of uncertainty for the location, measured in meters; 0-1500'
-
name: heading
types:
- int
optional: true
description: 'Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.'
-
name: proximity_alert_radius
types:
- int
optional: true
description: 'The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.'
-
name: reply_markup
types:
- InlineKeyboardMarkup
optional: true
description: 'A JSON-serialized object for a new inline keyboard.'
return_types:
- Message
- bool
-
name: stopMessageLiveLocation
description: 'Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.'
fields:
-
name: chat_id
types:
- int
- string
optional: true
description: 'Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)'
-
name: message_id
types:
- int
optional: true
description: 'Required if inline_message_id is not specified. Identifier of the message with live location to stop'
-
name: inline_message_id
types:
- string
optional: true
description: 'Required if chat_id and message_id are not specified. Identifier of the inline message'
-
name: reply_markup
types:
- InlineKeyboardMarkup
optional: true
description: 'A JSON-serialized object for a new inline keyboard.'
return_types:
- Message
- bool
-
name: editMessageReplyMarkup
description: 'Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.'
@ -8972,7 +9091,13 @@ methods:
- InputFile
- string
optional: false
description: 'Sticker to send. 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. More information on Sending Files »'
description: "Sticker to send. 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 sticker from the Internet, or upload a new .WEBP or .TGS sticker using multipart/form-data. More information on Sending Files ». Video stickers can only be sent by a file_id. Animated stickers can't be sent via an HTTP URL."
-
name: emoji
types:
- string
optional: true
description: 'Emoji associated with the sticker; only for just uploaded stickers'
-
name: disable_notification
types:
@ -9034,7 +9159,7 @@ methods:
- Array<Sticker>
-
name: uploadStickerFile
description: '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.'
description: 'Use this method to upload a file with a sticker for later use in the createNewStickerSet and addStickerToSet methods (the file can be used multiple times). Returns the uploaded File on success.'
fields:
-
name: user_id
@ -9043,16 +9168,22 @@ methods:
optional: false
description: 'User identifier of sticker file owner'
-
name: png_sticker
name: sticker
types:
- InputFile
optional: false
description: '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 information on Sending Files »'
description: 'A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files »'
-
name: sticker_format
types:
- string
optional: false
description: 'Format of the sticker, must be one of “static”, “animated”, “video”'
return_types:
- File
-
name: createNewStickerSet
description: 'Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success.'
description: 'Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success.'
fields:
-
name: user_id
@ -9073,47 +9204,34 @@ methods:
optional: false
description: 'Sticker set title, 1-64 characters'
-
name: png_sticker
name: stickers
types:
- Array<InputSticker>
optional: false
description: 'A JSON-serialized list of 1-50 initial stickers to be added to the sticker set'
-
name: sticker_format
types:
- InputFile
- string
optional: true
description: '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 information on Sending Files »'
-
name: tgs_sticker
types:
- InputFile
optional: true
description: 'TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements'
-
name: webm_sticker
types:
- InputFile
optional: true
description: 'WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements'
optional: false
description: 'Format of stickers in the set, must be one of “static”, “animated”, “video”'
-
name: sticker_type
types:
- string
optional: true
description: "Type of stickers in the set, pass “regular” or “mask”. Custom emoji sticker sets can't be created via the Bot API at the moment. By default, a regular sticker set is created."
description: 'Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.'
-
name: emojis
name: needs_repainting
types:
- string
optional: false
description: 'One or more emoji corresponding to the sticker'
-
name: mask_position
types:
- MaskPosition
- bool
optional: true
description: 'A JSON-serialized object for position where the mask should be placed on faces'
description: 'Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only'
return_types:
- bool
-
name: addStickerToSet
description: 'Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.'
description: 'Use this method to add a new sticker to a set created by the bot. The format of the added sticker must match the format of the other stickers in the set. Emoji sticker sets can have up to 200 stickers. Animated and video sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success.'
fields:
-
name: user_id
@ -9128,36 +9246,11 @@ methods:
optional: false
description: 'Sticker set name'
-
name: png_sticker
name: sticker
types:
- InputFile
- string
optional: true
description: '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 information on Sending Files »'
-
name: tgs_sticker
types:
- InputFile
optional: true
description: 'TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements'
-
name: webm_sticker
types:
- InputFile
optional: true
description: 'WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements'
-
name: emojis
types:
- string
- InputSticker
optional: false
description: 'One or more emoji corresponding to the sticker'
-
name: mask_position
types:
- MaskPosition
optional: true
description: 'A JSON-serialized object for position where the mask should be placed on faces'
description: "A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed."
return_types:
- bool
-
@ -9191,8 +9284,80 @@ methods:
return_types:
- bool
-
name: setStickerSetThumb
description: 'Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success.'
name: setStickerEmojiList
description: 'Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success.'
fields:
-
name: sticker
types:
- string
optional: false
description: 'File identifier of the sticker'
-
name: emoji_list
types:
- Array<string>
optional: false
description: 'A JSON-serialized list of 1-20 emoji associated with the sticker'
return_types:
- bool
-
name: setStickerKeywords
description: 'Use this method to change search keywords assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success.'
fields:
-
name: sticker
types:
- string
optional: false
description: 'File identifier of the sticker'
-
name: keywords
types:
- Array<string>
optional: true
description: 'A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters'
return_types:
- bool
-
name: setStickerMaskPosition
description: 'Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker set that was created by the bot. Returns True on success.'
fields:
-
name: sticker
types:
- string
optional: false
description: 'File identifier of the sticker'
-
name: mask_position
types:
- MaskPosition
optional: true
description: 'A JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position.'
return_types:
- bool
-
name: setStickerSetTitle
description: 'Use this method to set the title of a created sticker set. Returns True on success.'
fields:
-
name: name
types:
- string
optional: false
description: 'Sticker set name'
-
name: title
types:
- string
optional: false
description: 'Sticker set title, 1-64 characters'
return_types:
- bool
-
name: setStickerSetThumbnail
description: 'Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns True on success.'
fields:
-
name: name
@ -9207,12 +9372,42 @@ methods:
optional: false
description: 'User identifier of the sticker set owner'
-
name: thumb
name: thumbnail
types:
- InputFile
- string
optional: true
description: "A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements, or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. 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 information on Sending Files ». Animated sticker set thumbnails can't be uploaded via HTTP URL."
description: "A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements), or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. 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 information on Sending Files ». Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail."
return_types:
- bool
-
name: setCustomEmojiStickerSetThumbnail
description: 'Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success.'
fields:
-
name: name
types:
- string
optional: false
description: 'Sticker set name'
-
name: custom_emoji_id
types:
- string
optional: true
description: 'Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail and use the first sticker as the thumbnail.'
return_types:
- bool
-
name: deleteStickerSet
description: 'Use this method to delete a sticker set that was created by the bot. Returns True on success.'
fields:
-
name: name
types:
- string
optional: false
description: 'Sticker set name'
return_types:
- bool
-

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,7 @@
"name": "Telegram Bot API",
"description": "Auto-generated Postman collection by TGScraper.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"version": "6.5.0"
"version": "6.6.0"
},
"variable": {
"key": "token",
@ -665,7 +665,7 @@
"type": "text"
},
{
"key": "thumb",
"key": "thumbnail",
"disabled": true,
"description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »",
"type": "text"
@ -744,7 +744,7 @@
"type": "text"
},
{
"key": "thumb",
"key": "thumbnail",
"disabled": true,
"description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »",
"type": "text"
@ -865,7 +865,7 @@
"type": "text"
},
{
"key": "thumb",
"key": "thumbnail",
"disabled": true,
"description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »",
"type": "text"
@ -992,7 +992,7 @@
"type": "text"
},
{
"key": "thumb",
"key": "thumbnail",
"disabled": true,
"description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »",
"type": "text"
@ -1204,7 +1204,7 @@
"type": "text"
},
{
"key": "thumb",
"key": "thumbnail",
"disabled": true,
"description": "Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the thumbnail was uploaded using multipart/form-data under <file_attach_name>. More information on Sending Files »",
"type": "text"
@ -1427,134 +1427,6 @@
"description": "Use this method to send point on the map. On success, the sent Message is returned."
}
},
{
"name": "editMessageLiveLocation",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "chat_id",
"disabled": true,
"description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)",
"type": "text"
},
{
"key": "message_id",
"disabled": true,
"description": "Optional. Required if inline_message_id is not specified. Identifier of the message to edit",
"type": "text"
},
{
"key": "inline_message_id",
"disabled": true,
"description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message",
"type": "text"
},
{
"key": "latitude",
"disabled": false,
"description": "Required. Latitude of new location",
"type": "text"
},
{
"key": "longitude",
"disabled": false,
"description": "Required. Longitude of new location",
"type": "text"
},
{
"key": "horizontal_accuracy",
"disabled": true,
"description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500",
"type": "text"
},
{
"key": "heading",
"disabled": true,
"description": "Optional. Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.",
"type": "text"
},
{
"key": "proximity_alert_radius",
"disabled": true,
"description": "Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.",
"type": "text"
},
{
"key": "reply_markup",
"disabled": true,
"description": "Optional. A JSON-serialized object for a new inline keyboard.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/editMessageLiveLocation",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"editMessageLiveLocation"
]
},
"description": "Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned."
}
},
{
"name": "stopMessageLiveLocation",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "chat_id",
"disabled": true,
"description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)",
"type": "text"
},
{
"key": "message_id",
"disabled": true,
"description": "Optional. Required if inline_message_id is not specified. Identifier of the message with live location to stop",
"type": "text"
},
{
"key": "inline_message_id",
"disabled": true,
"description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message",
"type": "text"
},
{
"key": "reply_markup",
"disabled": true,
"description": "Optional. A JSON-serialized object for a new inline keyboard.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/stopMessageLiveLocation",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"stopMessageLiveLocation"
]
},
"description": "Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned."
}
},
{
"name": "sendVenue",
"request": {
@ -3179,7 +3051,7 @@
"getChatMember"
]
},
"description": "Use this method to get information about a member of a chat. The method is guaranteed to work for other users, only if the bot is an administrator in the chat. Returns a ChatMember object on success."
"description": "Use this method to get information about a member of a chat. The method is only guaranteed to work for other users if the bot is an administrator in the chat. Returns a ChatMember object on success."
}
},
{
@ -3856,6 +3728,142 @@
"description": "Use this method to get the current list of the bot's commands for the given scope and user language. Returns an Array of BotCommand objects. If commands aren't set, an empty list is returned."
}
},
{
"name": "setMyDescription",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "description",
"disabled": true,
"description": "Optional. New bot description; 0-512 characters. Pass an empty string to remove the dedicated description for the given language.",
"type": "text"
},
{
"key": "language_code",
"disabled": true,
"description": "Optional. A two-letter ISO 639-1 language code. If empty, the description will be applied to all users for whose language there is no dedicated description.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/setMyDescription",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"setMyDescription"
]
},
"description": "Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty. Returns True on success."
}
},
{
"name": "getMyDescription",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "language_code",
"disabled": true,
"description": "Optional. A two-letter ISO 639-1 language code or an empty string",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/getMyDescription",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"getMyDescription"
]
},
"description": "Use this method to get the current bot description for the given user language. Returns BotDescription on success."
}
},
{
"name": "setMyShortDescription",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "short_description",
"disabled": true,
"description": "Optional. New short description for the bot; 0-120 characters. Pass an empty string to remove the dedicated short description for the given language.",
"type": "text"
},
{
"key": "language_code",
"disabled": true,
"description": "Optional. A two-letter ISO 639-1 language code. If empty, the short description will be applied to all users for whose language there is no dedicated short description.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/setMyShortDescription",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"setMyShortDescription"
]
},
"description": "Use this method to change the bot's short description, which is shown on the bot's profile page and is sent together with the link when users share the bot. Returns True on success."
}
},
{
"name": "getMyShortDescription",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "language_code",
"disabled": true,
"description": "Optional. A two-letter ISO 639-1 language code or an empty string",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/getMyShortDescription",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"getMyShortDescription"
]
},
"description": "Use this method to get the current bot short description for the given user language. Returns BotShortDescription on success."
}
},
{
"name": "setChatMenuButton",
"request": {
@ -3959,7 +3967,7 @@
"setMyDefaultAdministratorRights"
]
},
"description": "Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are are free to modify the list before adding the bot. Returns True on success."
"description": "Use this method to change the default administrator rights requested by the bot when it's added as an administrator to groups or channels. These rights will be suggested to users, but they are free to modify the list before adding the bot. Returns True on success."
}
},
{
@ -4188,6 +4196,134 @@
"description": "Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned."
}
},
{
"name": "editMessageLiveLocation",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "chat_id",
"disabled": true,
"description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)",
"type": "text"
},
{
"key": "message_id",
"disabled": true,
"description": "Optional. Required if inline_message_id is not specified. Identifier of the message to edit",
"type": "text"
},
{
"key": "inline_message_id",
"disabled": true,
"description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message",
"type": "text"
},
{
"key": "latitude",
"disabled": false,
"description": "Required. Latitude of new location",
"type": "text"
},
{
"key": "longitude",
"disabled": false,
"description": "Required. Longitude of new location",
"type": "text"
},
{
"key": "horizontal_accuracy",
"disabled": true,
"description": "Optional. The radius of uncertainty for the location, measured in meters; 0-1500",
"type": "text"
},
{
"key": "heading",
"disabled": true,
"description": "Optional. Direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.",
"type": "text"
},
{
"key": "proximity_alert_radius",
"disabled": true,
"description": "Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.",
"type": "text"
},
{
"key": "reply_markup",
"disabled": true,
"description": "Optional. A JSON-serialized object for a new inline keyboard.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/editMessageLiveLocation",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"editMessageLiveLocation"
]
},
"description": "Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation. On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned."
}
},
{
"name": "stopMessageLiveLocation",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "chat_id",
"disabled": true,
"description": "Optional. Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)",
"type": "text"
},
{
"key": "message_id",
"disabled": true,
"description": "Optional. Required if inline_message_id is not specified. Identifier of the message with live location to stop",
"type": "text"
},
{
"key": "inline_message_id",
"disabled": true,
"description": "Optional. Required if chat_id and message_id are not specified. Identifier of the inline message",
"type": "text"
},
{
"key": "reply_markup",
"disabled": true,
"description": "Optional. A JSON-serialized object for a new inline keyboard.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/stopMessageLiveLocation",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"stopMessageLiveLocation"
]
},
"description": "Use this method to stop updating a live location message before live_period expires. On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned."
}
},
{
"name": "editMessageReplyMarkup",
"request": {
@ -4339,7 +4475,13 @@
{
"key": "sticker",
"disabled": false,
"description": "Required. Sticker to send. 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. More information on Sending Files »",
"description": "Required. Sticker to send. 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 sticker from the Internet, or upload a new .WEBP or .TGS sticker using multipart/form-data. More information on Sending Files ». Video stickers can only be sent by a file_id. Animated stickers can't be sent via an HTTP URL.",
"type": "text"
},
{
"key": "emoji",
"disabled": true,
"description": "Optional. Emoji associated with the sticker; only for just uploaded stickers",
"type": "text"
},
{
@ -4466,9 +4608,15 @@
"type": "text"
},
{
"key": "png_sticker",
"key": "sticker",
"disabled": false,
"description": "Required. 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 information on Sending Files »",
"description": "Required. A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files »",
"type": "text"
},
{
"key": "sticker_format",
"disabled": false,
"description": "Required. Format of the sticker, must be one of “static”, “animated”, “video”",
"type": "text"
}
]
@ -4486,7 +4634,7 @@
"uploadStickerFile"
]
},
"description": "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."
"description": "Use this method to upload a file with a sticker for later use in the createNewStickerSet and addStickerToSet methods (the file can be used multiple times). Returns the uploaded File on success."
}
},
{
@ -4515,39 +4663,27 @@
"type": "text"
},
{
"key": "png_sticker",
"disabled": true,
"description": "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. 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 information on Sending Files »",
"key": "stickers",
"disabled": false,
"description": "Required. A JSON-serialized list of 1-50 initial stickers to be added to the sticker set",
"type": "text"
},
{
"key": "tgs_sticker",
"disabled": true,
"description": "Optional. TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements",
"type": "text"
},
{
"key": "webm_sticker",
"disabled": true,
"description": "Optional. WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements",
"key": "sticker_format",
"disabled": false,
"description": "Required. Format of stickers in the set, must be one of “static”, “animated”, “video”",
"type": "text"
},
{
"key": "sticker_type",
"disabled": true,
"description": "Optional. Type of stickers in the set, pass “regular” or “mask”. Custom emoji sticker sets can't be created via the Bot API at the moment. By default, a regular sticker set is created.",
"description": "Optional. Type of stickers in the set, pass “regular”, “mask”, or “custom_emoji”. By default, a regular sticker set is created.",
"type": "text"
},
{
"key": "emojis",
"disabled": false,
"description": "Required. One or more emoji corresponding to the sticker",
"type": "text"
},
{
"key": "mask_position",
"key": "needs_repainting",
"disabled": true,
"description": "Optional. A JSON-serialized object for position where the mask should be placed on faces",
"description": "Optional. Pass True if stickers in the sticker set must be repainted to the color of text when used in messages, the accent color if used as emoji status, white on chat photos, or another appropriate color based on context; for custom emoji sticker sets only",
"type": "text"
}
]
@ -4565,7 +4701,7 @@
"createNewStickerSet"
]
},
"description": "Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Returns True on success."
"description": "Use this method to create a new sticker set owned by a user. The bot will be able to edit the sticker set thus created. Returns True on success."
}
},
{
@ -4588,33 +4724,9 @@
"type": "text"
},
{
"key": "png_sticker",
"disabled": true,
"description": "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. 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 information on Sending Files »",
"type": "text"
},
{
"key": "tgs_sticker",
"disabled": true,
"description": "Optional. TGS animation with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#animated-sticker-requirements for technical requirements",
"type": "text"
},
{
"key": "webm_sticker",
"disabled": true,
"description": "Optional. WEBM video with the sticker, uploaded using multipart/form-data. See https://core.telegram.org/stickers#video-sticker-requirements for technical requirements",
"type": "text"
},
{
"key": "emojis",
"key": "sticker",
"disabled": false,
"description": "Required. One or more emoji corresponding to the sticker",
"type": "text"
},
{
"key": "mask_position",
"disabled": true,
"description": "Optional. A JSON-serialized object for position where the mask should be placed on faces",
"description": "Required. A JSON-serialized object with information about the added sticker. If exactly the same sticker had already been added to the set, then the set isn't changed.",
"type": "text"
}
]
@ -4632,7 +4744,7 @@
"addStickerToSet"
]
},
"description": "Use this method to add a new sticker to a set created by the bot. You must use exactly one of the fields png_sticker, tgs_sticker, or webm_sticker. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success."
"description": "Use this method to add a new sticker to a set created by the bot. The format of the added sticker must match the format of the other stickers in the set. Emoji sticker sets can have up to 200 stickers. Animated and video sticker sets can have up to 50 stickers. Static sticker sets can have up to 120 stickers. Returns True on success."
}
},
{
@ -4704,7 +4816,155 @@
}
},
{
"name": "setStickerSetThumb",
"name": "setStickerEmojiList",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "sticker",
"disabled": false,
"description": "Required. File identifier of the sticker",
"type": "text"
},
{
"key": "emoji_list",
"disabled": false,
"description": "Required. A JSON-serialized list of 1-20 emoji associated with the sticker",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/setStickerEmojiList",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"setStickerEmojiList"
]
},
"description": "Use this method to change the list of emoji assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success."
}
},
{
"name": "setStickerKeywords",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "sticker",
"disabled": false,
"description": "Required. File identifier of the sticker",
"type": "text"
},
{
"key": "keywords",
"disabled": true,
"description": "Optional. A JSON-serialized list of 0-20 search keywords for the sticker with total length of up to 64 characters",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/setStickerKeywords",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"setStickerKeywords"
]
},
"description": "Use this method to change search keywords assigned to a regular or custom emoji sticker. The sticker must belong to a sticker set created by the bot. Returns True on success."
}
},
{
"name": "setStickerMaskPosition",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "sticker",
"disabled": false,
"description": "Required. File identifier of the sticker",
"type": "text"
},
{
"key": "mask_position",
"disabled": true,
"description": "Optional. A JSON-serialized object with the position where the mask should be placed on faces. Omit the parameter to remove the mask position.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/setStickerMaskPosition",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"setStickerMaskPosition"
]
},
"description": "Use this method to change the mask position of a mask sticker. The sticker must belong to a sticker set that was created by the bot. Returns True on success."
}
},
{
"name": "setStickerSetTitle",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"disabled": false,
"description": "Required. Sticker set name",
"type": "text"
},
{
"key": "title",
"disabled": false,
"description": "Required. Sticker set title, 1-64 characters",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/setStickerSetTitle",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"setStickerSetTitle"
]
},
"description": "Use this method to set the title of a created sticker set. Returns True on success."
}
},
{
"name": "setStickerSetThumbnail",
"request": {
"method": "POST",
"body": {
@ -4723,15 +4983,15 @@
"type": "text"
},
{
"key": "thumb",
"key": "thumbnail",
"disabled": true,
"description": "Optional. A PNG image with the thumbnail, must be up to 128 kilobytes in size and have width and height exactly 100px, or a TGS animation with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements, or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. 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 information on Sending Files ». Animated sticker set thumbnails can't be uploaded via HTTP URL.",
"description": "Optional. A .WEBP or .PNG image with the thumbnail, must be up to 128 kilobytes in size and have a width and height of exactly 100px, or a .TGS animation with a thumbnail up to 32 kilobytes in size (see https://core.telegram.org/stickers#animated-sticker-requirements for animated sticker technical requirements), or a WEBM video with the thumbnail up to 32 kilobytes in size; see https://core.telegram.org/stickers#video-sticker-requirements for video sticker technical requirements. 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 information on Sending Files ». Animated and video sticker set thumbnails can't be uploaded via HTTP URL. If omitted, then the thumbnail is dropped and the first sticker is used as the thumbnail.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/setStickerSetThumb",
"raw": "https://api.telegram.org/bot{{token}}/setStickerSetThumbnail",
"protocol": "https",
"host": [
"api",
@ -4740,10 +5000,78 @@
],
"path": [
"bot{{token}}",
"setStickerSetThumb"
"setStickerSetThumbnail"
]
},
"description": "Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Video thumbnails can be set only for video sticker sets only. Returns True on success."
"description": "Use this method to set the thumbnail of a regular or mask sticker set. The format of the thumbnail file must match the format of the stickers in the set. Returns True on success."
}
},
{
"name": "setCustomEmojiStickerSetThumbnail",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"disabled": false,
"description": "Required. Sticker set name",
"type": "text"
},
{
"key": "custom_emoji_id",
"disabled": true,
"description": "Optional. Custom emoji identifier of a sticker from the sticker set; pass an empty string to drop the thumbnail and use the first sticker as the thumbnail.",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/setCustomEmojiStickerSetThumbnail",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"setCustomEmojiStickerSetThumbnail"
]
},
"description": "Use this method to set the thumbnail of a custom emoji sticker set. Returns True on success."
}
},
{
"name": "deleteStickerSet",
"request": {
"method": "POST",
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"disabled": false,
"description": "Required. Sticker set name",
"type": "text"
}
]
},
"url": {
"raw": "https://api.telegram.org/bot{{token}}/deleteStickerSet",
"protocol": "https",
"host": [
"api",
"telegram",
"org"
],
"path": [
"bot{{token}}",
"deleteStickerSet"
]
},
"description": "Use this method to delete a sticker set that was created by the bot. Returns True on success."
}
},
{