teloxide/src/requests.rs

22 lines
579 B
Rust
Raw Normal View History

//! Telegram API requests.
2020-08-12 19:39:40 +03:00
2020-11-26 12:28:52 +03:00
pub use self::{
has_payload::HasPayload, json::JsonRequest, multipart::MultipartRequest, payload::Payload,
request::Request, requester::Requester, requester_ext::RequesterExt,
};
2020-08-12 19:39:40 +03:00
/// A type that is returned after making a request to Telegram.
pub type ResponseResult<T> = Result<T, crate::RequestError>;
2020-12-23 22:24:31 +06:00
/// An output type of [`Payload`] in [`HasPayload`].
pub type Output<T> = <<T as HasPayload>::Payload as Payload>::Output;
2020-11-26 12:28:52 +03:00
mod has_payload;
mod json;
mod multipart;
mod payload;
mod request;
mod requester;
mod requester_ext;
mod utils;