teloxide/src/requests.rs

24 lines
654 B
Rust
Raw Normal View History

//! Telegram API requests.
2020-08-12 18:39:40 +02:00
2020-11-26 10:28:52 +01:00
pub use self::{
2021-02-16 14:55:27 +01:00
has_payload::HasPayload, json::JsonRequest, multipart::MultipartRequest,
multipart_payload::MultipartPayload, payload::Payload, request::Request, requester::Requester,
requester_ext::RequesterExt,
2020-11-26 10:28:52 +01:00
};
2020-08-12 18:39:40 +02:00
/// A type that is returned after making a request to Telegram.
pub type ResponseResult<T> = Result<T, crate::RequestError>;
2020-12-23 17:24:31 +01:00
/// An output type of [`Payload`] in [`HasPayload`].
pub type Output<T> = <<T as HasPayload>::Payload as Payload>::Output;
2020-11-26 10:28:52 +01:00
mod has_payload;
mod json;
mod multipart;
2021-02-16 14:55:27 +01:00
pub(crate) mod multipart_payload;
2020-11-26 10:28:52 +01:00
mod payload;
mod request;
mod requester;
mod requester_ext;
mod utils;