diff --git a/src/core/mod.rs b/src/core/mod.rs index 2c8d076f..f268fe11 100644 --- a/src/core/mod.rs +++ b/src/core/mod.rs @@ -1,5 +1,3 @@ -use reqwest::r#async::Client; - mod games; mod getting_updates; mod inline_mode; diff --git a/src/core/other.rs b/src/core/other.rs index ab42eaaa..b6d4c57d 100644 --- a/src/core/other.rs +++ b/src/core/other.rs @@ -22,16 +22,16 @@ pub struct Chat { photo: Option, description: Option, invite_link: Option, - pinned_message: Option, + pinned_message: Option>, permissions: Option, sticker_set_name: Option, - can_set_sticker_set: Option, + can_set_sticker_set: Option, } #[derive(Debug, Deserialize)] pub struct Message { message_id: i64, - from: Option, + from: Option>, date: i64, chat: Chat, forward_from: Option, @@ -40,7 +40,7 @@ pub struct Message { forward_signature: Option, forward_sender_name: Option, forward_date: Option, - reply_to_message: Option, + reply_to_message: Option>, edit_date: Option, media_group_id: Option, author_signature: Option, @@ -65,13 +65,13 @@ pub struct Message { left_chat_member: Option, new_chat_title: Option, new_chat_photo: Option>, - delete_chat_photo: Option, - group_chat_created: Option, - supergroup_chat_created: Option, - channel_chat_created: Option, + delete_chat_photo: Option, + group_chat_created: Option, + supergroup_chat_created: Option, + channel_chat_created: Option, migrate_to_chat_id: Option, migrate_from_chat_id: Option, - pinned_message: Optional, + pinned_message: Option>, invoice: Option, successful_payment: Option, connected_website: Option, diff --git a/src/core/payments.rs b/src/core/payments.rs index 008b8f5a..9a4b5f38 100644 --- a/src/core/payments.rs +++ b/src/core/payments.rs @@ -19,14 +19,14 @@ pub struct SendInvoice { photo_size: Option, photo_width: Option, photo_height: Option, - need_name: Option, - need_phone_number: Option, - need_email: Option, - need_shipping_address: Option, - send_phone_number_to_provider: Option, - send_email_to_provider: Option, - is_flexible: Option, - disable_notification: Option, + need_name: Option, + need_phone_number: Option, + need_email: Option, + need_shipping_address: Option, + send_phone_number_to_provider: Option, + send_email_to_provider: Option, + is_flexible: Option, + disable_notification: Option, reply_to_message_id: Option, reply_markup: Option, } @@ -34,7 +34,7 @@ pub struct SendInvoice { #[derive(Debug, Deserialize)] pub struct AnswerShippingQuery { shipping_query_id: String, - ok: Bool, + ok: bool, shipping_options: Option>, error_message: Option, } @@ -42,7 +42,7 @@ pub struct AnswerShippingQuery { #[derive(Debug, Deserialize)] pub struct AnswerPreCheckoutQuery { pre_checkout_query_id: String, - ok: Bool, + ok: bool, error_message: Option, } diff --git a/src/lib.rs b/src/lib.rs index d274ca74..0c41560d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,3 @@ #![feature(async_await)] -#[macro_use] -extern crate lazy_static; - mod core;