pub struct SetStickerSetThumb {
pub name: String,
pub user_id: i64,
pub thumb: Option<InputFileVariant>,
}Expand description
Use this method to set the thumbnail of a sticker set. Animated thumbnails can be set for animated sticker sets only. Returns True on success.
Fields§
§name: StringSticker set name
user_id: i64User identifier of the sticker set owner
thumb: Option<InputFileVariant>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 thumbnailup to 32 kilobytes in size; see https://core.telegram.org/animated_stickers#technical-requirements for animated 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 info on Sending Files ». Animated sticker set thumbnail can’t be uploaded via HTTP URL.
Implementations§
Source§impl SetStickerSetThumb
impl SetStickerSetThumb
Sourcepub fn new(name: impl Into<String>, user_id: i64) -> Self
pub fn new(name: impl Into<String>, user_id: i64) -> Self
Create a new setStickerSetThumb request
Sourcepub fn with_thumb(self, thumb: impl Into<InputFileVariant>) -> Self
pub fn with_thumb(self, thumb: impl Into<InputFileVariant>) -> Self
Set thumb
Trait Implementations§
Source§impl Clone for SetStickerSetThumb
impl Clone for SetStickerSetThumb
Source§fn clone(&self) -> SetStickerSetThumb
fn clone(&self) -> SetStickerSetThumb
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more