Struct telbot_types::message::Contact [−][src]
pub struct Contact {
pub phone_number: String,
pub first_name: String,
pub last_name: Option<String>,
pub user_id: Option<i64>,
pub vcard: Option<String>,
}Expand description
This object represents a phone contact.
Fields
phone_number: StringContact’s phone number
first_name: StringContact’s first name
last_name: Option<String>Contact’s last name
user_id: Option<i64>Contact’s user identifier in Telegram.
vcard: Option<String>Additional data about the contact in the form of a vCard
Trait Implementations
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