Use this method to upload a
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.
POST
/uploadStickerFile
curl \
-X POST https://api.telegram.org/bot123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11/uploadStickerFile \
-H "Content-Type: multipart/form-data" \
-F "user_id=42"
Request example
{
"user_id": 42
}
Request examples
{
"user_id": 42
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
Response examples (default)
{
"ok": false,
"error_code": 42,
"description": "string",
"parameters": {
"migrate_to_chat_id": 42,
"retry_after": 42
}
}
Response examples (200)
{
"ok": true,
"result": {
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_path": "string"
}
}
Response examples (200)
{
"ok": true,
"result": {
"file_id": "string",
"file_unique_id": "string",
"file_size": 42,
"file_path": "string"
}
}