[−][src]Trait telegram_bot::types::requests::ToRequest
Use this trait to convert a complex type to corresponding request and send it to the chat.
Associated Types
Loading content...Required methods
pub fn to_request<C>(&'b self, chat: C) -> Self::Request where
C: ToChatRef,
[src]
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>
pub fn to_request<C>(&'b self, chat: C) -> <Contact as ToRequest<'b>>::Request where
C: ToChatRef,
[src]
C: ToChatRef,
impl<'b> ToRequest<'b> for Location
[src]
type Request = SendLocation
pub fn to_request<C>(&'b self, chat: C) -> <Location as ToRequest<'b>>::Request where
C: ToChatRef,
[src]
C: ToChatRef,