Struct teloxide::dispatching::UpdateWithCx[][src]

pub struct UpdateWithCx<R, Upd> {
    pub requester: R,
    pub update: Upd,
}

A Dispatcher’s handler’s context of a bot and an update.

See the module-level documentation for the design overview.

Fields

requester: Rupdate: Upd

Implementations

impl<R> UpdateWithCx<R, Message> where
    R: Requester
[src]

pub async fn answer_str<T>(&self, text: T) -> Result<Message, R::Err> where
    T: Into<String>,
    R::SendMessage: Future
[src]

👎 Deprecated:

Use .answer(text).await instead

A shortcut for .answer(text).send().await.

pub fn answer<T>(&self, text: T) -> R::SendMessage where
    T: Into<String>, 
[src]

pub fn reply_to<T>(&self, text: T) -> R::SendMessage where
    T: Into<String>, 
[src]

pub fn answer_photo(&self, photo: InputFile) -> R::SendPhoto[src]

pub fn answer_audio(&self, audio: InputFile) -> R::SendAudio[src]

pub fn answer_animation(&self, animation: InputFile) -> R::SendAnimation[src]

pub fn answer_document(&self, document: InputFile) -> R::SendDocument[src]

pub fn answer_video(&self, video: InputFile) -> R::SendVideo[src]

pub fn answer_voice(&self, voice: InputFile) -> R::SendVoice[src]

pub fn answer_media_group<T>(&self, media_group: T) -> R::SendMediaGroup where
    T: IntoIterator<Item = InputMedia>, 
[src]

pub fn answer_location(&self, latitude: f64, longitude: f64) -> R::SendLocation[src]

pub fn answer_venue<T, U>(
    &self,
    latitude: f64,
    longitude: f64,
    title: T,
    address: U
) -> R::SendVenue where
    T: Into<String>,
    U: Into<String>, 
[src]

pub fn answer_video_note(&self, video_note: InputFile) -> R::SendVideoNote[src]

pub fn answer_contact<T, U>(
    &self,
    phone_number: T,
    first_name: U
) -> R::SendContact where
    T: Into<String>,
    U: Into<String>, 
[src]

pub fn answer_sticker(&self, sticker: InputFile) -> R::SendSticker[src]

pub fn forward_to<T>(&self, chat_id: T) -> R::ForwardMessage where
    T: Into<ChatId>, 
[src]

pub fn edit_message_text<T>(&self, text: T) -> R::EditMessageText where
    T: Into<String>, 
[src]

pub fn edit_message_caption(&self) -> R::EditMessageCaption[src]

pub fn delete_message(&self) -> R::DeleteMessage[src]

pub fn pin_message(&self) -> R::PinChatMessage[src]

pub fn answer_dice(&self) -> R::SendDice[src]

Trait Implementations

impl<R: Debug, Upd: Debug> Debug for UpdateWithCx<R, Upd>[src]

impl<Upd, R> GetChatId for UpdateWithCx<R, Upd> where
    Upd: GetChatId
[src]

Auto Trait Implementations

impl<R, Upd> RefUnwindSafe for UpdateWithCx<R, Upd> where
    R: RefUnwindSafe,
    Upd: RefUnwindSafe

impl<R, Upd> Send for UpdateWithCx<R, Upd> where
    R: Send,
    Upd: Send

impl<R, Upd> Sync for UpdateWithCx<R, Upd> where
    R: Sync,
    Upd: Sync

impl<R, Upd> Unpin for UpdateWithCx<R, Upd> where
    R: Unpin,
    Upd: Unpin

impl<R, Upd> UnwindSafe for UpdateWithCx<R, Upd> where
    R: UnwindSafe,
    Upd: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

type Remainder = Choices

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<Source> Sculptor<HNil, HNil> for Source

type Remainder = Source

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.