diff --git a/src/network/download.rs b/src/network/download.rs index 31cbbb36..96bc646e 100644 --- a/src/network/download.rs +++ b/src/network/download.rs @@ -1,10 +1,10 @@ +use bytes::Buf; use futures::StreamExt; use reqwest::r#async::{Chunk, Client}; use tokio::{ io::{AsyncWrite, AsyncWriteExt}, stream::Stream, }; -use bytes::Buf; use crate::{ network::{file_url, TELEGRAM_API_URL}, diff --git a/src/network/request.rs b/src/network/request.rs index 0faf04c0..b068a5a0 100644 --- a/src/network/request.rs +++ b/src/network/request.rs @@ -3,7 +3,7 @@ use reqwest::r#async::{multipart::Form, Client, Response}; use serde::{de::DeserializeOwned, Serialize}; use crate::{ - network::{method_url, TELEGRAM_API_URL, TelegramResponse}, + network::{method_url, TelegramResponse, TELEGRAM_API_URL}, requests::ResponseResult, RequestError, }; diff --git a/src/types/mod.rs b/src/types/mod.rs index b2b70abb..893d492f 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -11,6 +11,8 @@ pub use self::{ chosen_inline_result::ChosenInlineResult, contact::Contact, document::Document, + encrypted_credintials::EncryptedCredentials, + encrypted_passport_element::{ElementType, EncryptedPassportElement}, file::File, force_reply::ForceReply, game::Game, @@ -54,6 +56,8 @@ pub use self::{ message_entity::MessageEntity, order_info::OrderInfo, parse_mode::ParseMode, + passport_data::PassportData, + passport_file::PassportFile, photo_size::PhotoSize, poll::{Poll, PollOption}, pre_checkout_query::PreCheckoutQuery, @@ -76,11 +80,6 @@ pub use self::{ video_note::VideoNote, voice::Voice, webhook_info::WebhookInfo, - - encrypted_passport_element::{ElementType, EncryptedPassportElement}, - passport_data::PassportData, - encrypted_credintials::EncryptedCredentials, - passport_file::PassportFile, }; mod animation; @@ -160,7 +159,7 @@ mod inline_query_result_venue; mod inline_query_result_video; mod inline_query_result_voice; +mod encrypted_credintials; mod encrypted_passport_element; mod passport_data; -mod encrypted_credintials; -mod passport_file; \ No newline at end of file +mod passport_file; diff --git a/src/types/passport_file.rs b/src/types/passport_file.rs index 116f3685..1aee85a7 100644 --- a/src/types/passport_file.rs +++ b/src/types/passport_file.rs @@ -3,4 +3,4 @@ pub struct PassportFile { pub file_id: String, pub file_size: u64, pub file_date: u64, -} \ No newline at end of file +}