peyk.platforms.telegram.methods.upload_sticker_file

async peyk.platforms.telegram.methods.upload_sticker_file(self, user_id: int, sticker: str | bytes | FilePayload, sticker_format: str) File

Use this method to upload a file with a sticker for later use in the createNewStickerSet, addStickerToSet, or replaceStickerInSet methods (the file can be used multiple times). Returns the uploaded File on success.

Parameters:
  • user_id – User identifier of sticker file owner

  • sticker – 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

  • sticker_format – Format of the sticker, must be one of ‘static’, ‘animated’, ‘video’

Returns:

Result returned by Telegram on successful execution.

Return type:

File