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 SendBuilder
pub fn new(id: Integer, bot: Api) -> SendBuilder
[src]
pub fn new(id: Integer, bot: Api) -> SendBuilder
Create 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) -> SendText
Start a text constructor to send.
pub fn photo(self, t: &str) -> SendPhoto
[src]
pub fn photo(self, t: &str) -> SendPhoto
Start a photo constructor to send.
pub fn audio(self, t: &str) -> SendAudio
[src]
pub fn audio(self, t: &str) -> SendAudio
Start an audio constructor to send.
pub fn voice(self, t: &str) -> SendVoice
[src]
pub fn voice(self, t: &str) -> SendVoice
Start a voice constructor to send.
pub fn document(self, t: &str) -> SendDocument
[src]
pub fn document(self, t: &str) -> SendDocument
Start a document constructor to send.
pub fn sticker(self, t: &str) -> SendSticker
[src]
pub fn sticker(self, t: &str) -> SendSticker
Start a sticker constructor to send.
pub fn video(self, t: &str) -> SendVideo
[src]
pub fn video(self, t: &str) -> SendVideo
Start a video constructor to send.
pub fn forward(self, to: Integer, msg: Integer) -> SendForward
[src]
pub fn forward(self, to: Integer, msg: Integer) -> SendForward
Start a forward constructor to send.
pub fn action(self, action: ChatAction) -> SendAction
[src]
pub fn action(self, action: ChatAction) -> SendAction
Start an action constructor to send.
pub fn location(self, latitude: Float, longitude: Float) -> SendLocation
[src]
pub fn location(self, latitude: Float, longitude: Float) -> SendLocation
Start a location constructor to send.
Trait Implementations
impl Clone for SendBuilder
[src]
impl Clone for SendBuilder
fn clone(&self) -> SendBuilder
[src]
fn clone(&self) -> SendBuilder
Returns 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 SendBuilder
impl Sync for SendBuilder
impl Sync for SendBuilder