Trait telegram_bot_fork::prelude::ToRequest
source · pub trait ToRequest<'b> {
type Request: Request;
fn to_request<C>(&'b self, chat: C) -> Self::Request
where
C: ToChatRef;
}
Expand description
Use this trait to convert a complex type to corresponding request and send it to the chat.
Required Associated Types§
Required Methods§
sourcefn to_request<C>(&'b self, chat: C) -> Self::Requestwhere
C: ToChatRef,
fn to_request<C>(&'b self, chat: C) -> Self::Requestwhere
C: ToChatRef,
Convert type to request and send it to the chat.