Fix typo: use i64 instead of i32 in requests

This commit is contained in:
Waffle 2019-09-02 11:09:16 +03:00
parent b71d75ad94
commit 9b78fb5b9a
2 changed files with 3 additions and 3 deletions

View file

@ -18,9 +18,9 @@ pub trait Request<R: serde::de::DeserializeOwned> {
#[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;

View file

@ -17,7 +17,7 @@ pub struct SendMessage {
#[builder(default)]
disable_notification: Option<bool>,
#[builder(default)]
reply_to_message_id: Option<i32>,
reply_to_message_id: Option<i64>,
#[builder(default)]
reply_markup: Option<()>, // TODO: ReplyMarkup enum
}