Struct teloxide_core::payloads::SetStickerSetThumb
source · [−]pub struct SetStickerSetThumb {
pub name: String,
pub user_id: UserId,
pub thumb: Option<InputFile>,
}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: StringName of the sticker set
user_id: UserIdUser identifier of sticker file owner
thumb: Option<InputFile>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 thumbnail up 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
Trait Implementations
sourceimpl Clone for SetStickerSetThumb
impl Clone for SetStickerSetThumb
sourcefn clone(&self) -> SetStickerSetThumbⓘNotable traits for SetStickerSetThumbimpl Payload for SetStickerSetThumb type Output = True;
fn clone(&self) -> SetStickerSetThumbⓘNotable traits for SetStickerSetThumbimpl Payload for SetStickerSetThumb type Output = True;
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for SetStickerSetThumb
impl Debug for SetStickerSetThumb
sourceimpl MultipartPayload for SetStickerSetThumb
impl MultipartPayload for SetStickerSetThumb
fn copy_files(&self, into: &mut dyn FnMut(InputFile))
fn move_files(&mut self, into: &mut dyn FnMut(InputFile))
sourceimpl Payload for SetStickerSetThumb
impl Payload for SetStickerSetThumb
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates with
big timeout), the minimum timeout that should be used. Read more