pub struct InputMessageVoiceNote {
pub voice_note: InputFile,
pub duration: i32,
pub waveform: String,
pub caption: Option<FormattedText>,
pub self_destruct_type: Option<MessageSelfDestructType>,
}
Expand description
A voice note message
Fields§
§voice_note: InputFile
Voice note to be sent. The voice note must be encoded with the Opus codec and stored inside an OGG container with a single audio channel, or be in MP3 or M4A format as regular audio
duration: i32
Duration of the voice note, in seconds
waveform: String
Waveform representation of the voice note in 5-bit format
caption: Option<FormattedText>
Voice note caption; may be null if empty; pass null to use an empty caption; 0-getOption(“message_caption_length_max”) characters
self_destruct_type: Option<MessageSelfDestructType>
Voice note self-destruct type; may be null if none; pass null if none; private chats only
Trait Implementations§
Source§impl Clone for InputMessageVoiceNote
impl Clone for InputMessageVoiceNote
Source§fn clone(&self) -> InputMessageVoiceNote
fn clone(&self) -> InputMessageVoiceNote
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 InputMessageVoiceNote
impl Debug for InputMessageVoiceNote
Source§impl<'de> Deserialize<'de> for InputMessageVoiceNote
impl<'de> Deserialize<'de> for InputMessageVoiceNote
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 InputMessageVoiceNote
impl PartialEq for InputMessageVoiceNote
Source§impl Serialize for InputMessageVoiceNote
impl Serialize for InputMessageVoiceNote
impl StructuralPartialEq for InputMessageVoiceNote
Auto Trait Implementations§
impl Freeze for InputMessageVoiceNote
impl RefUnwindSafe for InputMessageVoiceNote
impl Send for InputMessageVoiceNote
impl Sync for InputMessageVoiceNote
impl Unpin for InputMessageVoiceNote
impl UnwindSafe for InputMessageVoiceNote
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