[][src]Trait telegram_bot::prelude::ToReplyRequest

pub trait ToReplyRequest<'b> {
    type Request: Request;
    pub fn to_reply_request<M>(&'b self, message: M) -> Self::Request
    where
        M: ToMessageId + ToSourceChat
; }

Use this trait to convert a complex type to corresponding request and reply to the message.

Associated Types

type Request: Request[src]

Request type.

Loading content...

Required methods

pub fn to_reply_request<M>(&'b self, message: M) -> Self::Request where
    M: ToMessageId + ToSourceChat
[src]

Convert type to request and reply to the message.

Loading content...

Implementors

impl<'b> ToReplyRequest<'b> for Contact[src]

type Request = SendContact<'b, 'b, 'b>

impl<'b> ToReplyRequest<'b> for Location[src]

type Request = SendLocation

impl<'b> ToReplyRequest<'b> for Venue[src]

type Request = SendVenue<'b, 'b, 'b>

Loading content...