[][src]Trait telegram_bot_fork::prelude::ToReplyRequest

pub trait ToReplyRequest<'b> {
type Request: Request;
    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

Request type.

Loading content...

Required methods

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

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...