pub trait ToReplyRequest<'b> {
    type Request: Request;

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

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

Required Associated Types§

Request type.

Required Methods§

Convert type to request and reply to the message.

Implementors§