pub struct InputMessagePhoto {
pub photo: InputFile,
pub thumbnail: InputThumbnail,
pub added_sticker_file_ids: Vec<i32>,
pub width: i32,
pub height: i32,
pub caption: FormattedText,
pub ttl: i32,
}
Expand description
A photo message
Fields§
§photo: InputFile
Photo to send
thumbnail: InputThumbnail
Photo thumbnail to be sent, this is sent to the other party in secret chats only
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: FormattedText
Photo caption; 0-GetOption(“message_caption_length_max”) characters
ttl: i32
Photo TTL (Time To Live), in seconds (0-60). A non-zero TTL can be specified only in private 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
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