Struct teloxide_core::payloads::UploadStickerFile
source · pub struct UploadStickerFile {
pub user_id: UserId,
pub png_sticker: InputFile,
}
Expand 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.
Fields§
§user_id: UserId
User identifier of sticker file owner
png_sticker: 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 »
Implementations§
Trait Implementations§
source§impl Clone for UploadStickerFile
impl Clone for UploadStickerFile
source§impl Debug for UploadStickerFile
impl Debug for UploadStickerFile
source§impl MultipartPayload for UploadStickerFile
impl MultipartPayload for UploadStickerFile
fn copy_files(&self, into: &mut dyn FnMut(InputFile))
fn move_files(&mut self, into: &mut dyn FnMut(InputFile))
source§impl Payload for UploadStickerFile
impl Payload for UploadStickerFile
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.