Struct awesome_bot::SendBuilder [−][src]
pub struct SendBuilder { /* fields omitted */ }SendBuilder it's a builder struct that allows you to construct answers in
a composable way, you will use it transparently with the send and answer
methods of AwesomeBot
Methods
impl SendBuilder[src]
impl SendBuilderpub fn new(id: Integer, bot: Api) -> SendBuilder[src]
pub fn new(id: Integer, bot: Api) -> SendBuilderCreate a new SendBuilder, don't use it,
use the send and answer methods of AwesomeBot :)
pub fn text(self, t: &str) -> SendText[src]
pub fn text(self, t: &str) -> SendTextStart a text constructor to send.
pub fn photo(self, t: &str) -> SendPhoto[src]
pub fn photo(self, t: &str) -> SendPhotoStart a photo constructor to send.
pub fn audio(self, t: &str) -> SendAudio[src]
pub fn audio(self, t: &str) -> SendAudioStart an audio constructor to send.
pub fn voice(self, t: &str) -> SendVoice[src]
pub fn voice(self, t: &str) -> SendVoiceStart a voice constructor to send.
pub fn document(self, t: &str) -> SendDocument[src]
pub fn document(self, t: &str) -> SendDocumentStart a document constructor to send.
pub fn sticker(self, t: &str) -> SendSticker[src]
pub fn sticker(self, t: &str) -> SendStickerStart a sticker constructor to send.
pub fn video(self, t: &str) -> SendVideo[src]
pub fn video(self, t: &str) -> SendVideoStart a video constructor to send.
pub fn forward(self, to: Integer, msg: Integer) -> SendForward[src]
pub fn forward(self, to: Integer, msg: Integer) -> SendForwardStart a forward constructor to send.
pub fn action(self, action: ChatAction) -> SendAction[src]
pub fn action(self, action: ChatAction) -> SendActionStart an action constructor to send.
pub fn location(self, latitude: Float, longitude: Float) -> SendLocation[src]
pub fn location(self, latitude: Float, longitude: Float) -> SendLocationStart a location constructor to send.
Trait Implementations
impl Clone for SendBuilder[src]
impl Clone for SendBuilderfn clone(&self) -> SendBuilder[src]
fn clone(&self) -> SendBuilderReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl Send for SendBuilder
impl Send for SendBuilderimpl Sync for SendBuilder
impl Sync for SendBuilder