mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 16:15:51 +00:00
* Added basic support of Bot API 6.6 * Update descriptions * Added StickerFormat enum * Bump version * Refresh from docs * Fixed CommandStart * Fixed files uploading * Cover new functionality * Added changelog * Update texts
43 lines
2.8 KiB
JSON
43 lines
2.8 KiB
JSON
{
|
|
"meta": {
|
|
"deprecated": false
|
|
},
|
|
"group": {
|
|
"title": "Stickers",
|
|
"anchor": "stickers"
|
|
},
|
|
"object": {
|
|
"anchor": "uploadstickerfile",
|
|
"name": "uploadStickerFile",
|
|
"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.",
|
|
"html_description": "<p>Use this method to upload a file with a sticker for later use in the <a href=\"#createnewstickerset\">createNewStickerSet</a> and <a href=\"#addstickertoset\">addStickerToSet</a> methods (the file can be used multiple times). Returns the uploaded <a href=\"#file\">File</a> on success.</p>",
|
|
"rst_description": "Use this method to upload a file with a sticker for later use in the :class:`aiogram.methods.create_new_sticker_set.CreateNewStickerSet` and :class:`aiogram.methods.add_sticker_to_set.AddStickerToSet` methods (the file can be used multiple times). Returns the uploaded :class:`aiogram.types.file.File` on success.",
|
|
"annotations": [
|
|
{
|
|
"type": "Integer",
|
|
"required": true,
|
|
"description": "User identifier of sticker file owner",
|
|
"html_description": "<td>User identifier of sticker file owner</td>",
|
|
"rst_description": "User identifier of sticker file owner\n",
|
|
"name": "user_id"
|
|
},
|
|
{
|
|
"type": "InputFile",
|
|
"required": true,
|
|
"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",
|
|
"html_description": "<td>A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See <a href=\"/stickers\"/><a href=\"https://core.telegram.org/stickers\">https://core.telegram.org/stickers</a> for technical requirements. <a href=\"#sending-files\">More information on Sending Files »</a></td>",
|
|
"rst_description": "A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See `https://core.telegram.org/stickers <https://core.telegram.org/stickers>`_`https://core.telegram.org/stickers <https://core.telegram.org/stickers>`_ for technical requirements. :ref:`More information on Sending Files » <sending-files>`\n",
|
|
"name": "sticker"
|
|
},
|
|
{
|
|
"type": "String",
|
|
"required": true,
|
|
"description": "Format of the sticker, must be one of 'static', 'animated', 'video'",
|
|
"html_description": "<td>Format of the sticker, must be one of “static”, “animated”, “video”</td>",
|
|
"rst_description": "Format of the sticker, must be one of 'static', 'animated', 'video'\n",
|
|
"name": "sticker_format"
|
|
}
|
|
],
|
|
"category": "methods"
|
|
}
|
|
}
|