Struct telegram_typings::User
[−]
[src]
pub struct User { pub id: i64, pub is_bot: bool, pub first_name: String, pub last_name: Option<String>, pub username: Option<String>, pub language_code: Option<String>, }
This object represents a Telegram user or bot.
Fields
id: i64
Unique identifier for this user or bot
is_bot: bool
True, if this user is a bot
first_name: String
User‘s or bot’s first name
last_name: Option<String>
User‘s or bot’s last name
username: Option<String>
User‘s or bot’s username
language_code: Option<String>
IETF language tag of the user's language See https://en.wikipedia.org/wiki/IETF_language_tag
Trait Implementations
impl Debug for User
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more