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)] #[derive(Debug, Serialize, From, PartialEq, Eq)]
pub enum ChatId { pub enum ChatId {
/// chat identifier /// chat identifier
Id(i32), // 32? Id(i64),
/// _channel_ username (in the format @channelusername) /// _channel_ username (in the format @channelusername)
ChannelUsername(String) ChannelUsername(String),
} }
pub mod get_me; pub mod get_me;

View file

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