Struct telegram_bot2::models::ResponseParameters
source · pub struct ResponseParameters {
pub migrate_to_chat_id: Option<i64>,
pub retry_after: Option<i64>,
}Expand description
BotCommandScopeDefault If a menu button other than MenuButtonDefault is set for a private chat, then it is applied in the chat. Otherwise the default menu button is applied. By default, the menu button opens the list of bot commands. Describes why a request was unsuccessful.
Fields§
§migrate_to_chat_id: Option<i64>The group has been migrated to a supergroup with the specified identifier. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit i64 or double-precision f32 type are safe for storing this identifier.
retry_after: Option<i64>In case of exceeding flood control, the number of seconds left to wait before the request can be repeated
Trait Implementations§
source§impl Clone for ResponseParameters
impl Clone for ResponseParameters
source§fn clone(&self) -> ResponseParameters
fn clone(&self) -> ResponseParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ResponseParameters
impl Debug for ResponseParameters
source§impl<'de> Deserialize<'de> for ResponseParameters
impl<'de> Deserialize<'de> for ResponseParameters
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more