pub struct InputMessagePhoto {
pub photo: InputFile,
pub thumbnail: Option<InputThumbnail>,
pub added_sticker_file_ids: Vec<i32>,
pub width: i32,
pub height: i32,
pub caption: Option<FormattedText>,
pub self_destruct_type: Option<MessageSelfDestructType>,
pub has_spoiler: bool,
}
Expand description
A photo message
Fields§
§photo: InputFile
Photo to send. The photo must be at most 10 MB in size. The photo’s width and height must not exceed 10000 in total. Width and height ratio must be at most 20
thumbnail: Option<InputThumbnail>
Photo thumbnail to be sent; pass null to skip thumbnail uploading. The thumbnail is sent to the other party only in secret chats
added_sticker_file_ids: Vec<i32>
File identifiers of the stickers added to the photo, if applicable
width: i32
Photo width
height: i32
Photo height
caption: Option<FormattedText>
Photo caption; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters
self_destruct_type: Option<MessageSelfDestructType>
Photo self-destruct type; pass null if none; private chats only
has_spoiler: bool
True, if the photo preview must be covered by a spoiler animation; not supported in secret chats
Trait Implementations§
Source§impl Clone for InputMessagePhoto
impl Clone for InputMessagePhoto
Source§fn clone(&self) -> InputMessagePhoto
fn clone(&self) -> InputMessagePhoto
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InputMessagePhoto
impl Debug for InputMessagePhoto
Source§impl<'de> Deserialize<'de> for InputMessagePhoto
impl<'de> Deserialize<'de> for InputMessagePhoto
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputMessagePhoto
impl PartialEq for InputMessagePhoto
Source§impl Serialize for InputMessagePhoto
impl Serialize for InputMessagePhoto
impl StructuralPartialEq for InputMessagePhoto
Auto Trait Implementations§
impl Freeze for InputMessagePhoto
impl RefUnwindSafe for InputMessagePhoto
impl Send for InputMessagePhoto
impl Sync for InputMessagePhoto
impl Unpin for InputMessagePhoto
impl UnwindSafe for InputMessagePhoto
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more