From 9b78fb5b9a4cca5e68785aa09ed1a3421800826c Mon Sep 17 00:00:00 2001 From: Waffle Date: Mon, 2 Sep 2019 11:09:16 +0300 Subject: [PATCH] Fix typo: use i64 instead of i32 in requests --- src/core/requests/mod.rs | 4 ++-- src/core/requests/send_message.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/requests/mod.rs b/src/core/requests/mod.rs index 5da1a761..665a8d36 100644 --- a/src/core/requests/mod.rs +++ b/src/core/requests/mod.rs @@ -18,9 +18,9 @@ pub trait Request { #[derive(Debug, Serialize, From, PartialEq, Eq)] pub enum ChatId { /// chat identifier - Id(i32), // 32? + Id(i64), /// _channel_ username (in the format @channelusername) - ChannelUsername(String) + ChannelUsername(String), } pub mod get_me; diff --git a/src/core/requests/send_message.rs b/src/core/requests/send_message.rs index 12f6f16d..4c48dbb2 100644 --- a/src/core/requests/send_message.rs +++ b/src/core/requests/send_message.rs @@ -17,7 +17,7 @@ pub struct SendMessage { #[builder(default)] disable_notification: Option, #[builder(default)] - reply_to_message_id: Option, + reply_to_message_id: Option, #[builder(default)] reply_markup: Option<()>, // TODO: ReplyMarkup enum }