Struct awesome_bot::SendVoice [−][src]
pub struct SendVoice { /* fields omitted */ }Transparent struct built by SendBuilder to send
Voice
messages.
Methods
impl SendVoice[src]
impl SendVoicepub fn duration(&mut self, v: Integer) -> &mut SendVoice[src]
pub fn duration(&mut self, v: Integer) -> &mut SendVoiceSet the duration of the voice audio.
pub fn reply_id(&mut self, v: Integer) -> &mut SendVoice[src]
pub fn reply_id(&mut self, v: Integer) -> &mut SendVoiceSet a message ID to reply with this message.
pub fn markup(&mut self, v: ReplyMarkup) -> &mut SendVoice[src]
pub fn markup(&mut self, v: ReplyMarkup) -> &mut SendVoiceSet a ReplyMarkup to send, but instead of this, use the keyboard, hide or force methods
impl SendVoice[src]
impl SendVoiceAdd keyboard methods to the struct, only one of these will be sent, and it will be the last one used.
pub fn keyboard(&mut self, r: ReplyKeyboardMarkup) -> &mut SendVoice[src]
pub fn keyboard(&mut self, r: ReplyKeyboardMarkup) -> &mut SendVoiceAdd a keyboard to the reply
pub fn hide(&mut self, h: bool) -> &mut SendVoice[src]
pub fn hide(&mut self, h: bool) -> &mut SendVoiceHide the keyboard
pub fn force(&mut self, f: bool) -> &mut SendVoice[src]
pub fn force(&mut self, f: bool) -> &mut SendVoiceForce the reply to this message