[−][src]Trait telegram_bot_raw::requests::_base::ToRequest
Use this trait to convert a complex type to corresponding request and send it to the chat.
Associated Types
Loading content...Required methods
fn to_request<C>(&'b self, chat: C) -> Self::Request where
C: ToChatRef,
C: ToChatRef,
Convert type to request and send it to the chat.
Implementors
impl<'b> ToRequest<'b> for Contact
[src]
type Request = SendContact<'b, 'b, 'b>
fn to_request<C>(&'b self, chat: C) -> Self::Request where
C: ToChatRef,
[src]
C: ToChatRef,
impl<'b> ToRequest<'b> for Location
[src]
type Request = SendLocation
fn to_request<C>(&'b self, chat: C) -> Self::Request where
C: ToChatRef,
[src]
C: ToChatRef,