tbot 0.5.0

Make cool Telegram bots with Rust easily.
Documentation
use crate::types::user;
use serde::Deserialize;

/// Represents a [`Contact`].
///
/// [`Contact`]: https://core.telegram.org/bots/api#contact
#[derive(Debug, PartialEq, Eq, Clone, Hash, Deserialize)]
#[non_exhaustive]
pub struct Contact {
    /// The phone number of the contact.
    pub phone_number: String,
    /// The first name of the contact.
    pub first_name: String,
    /// The last name of the contact.
    pub last_name: Option<String>,
    /// The user id of the contact.
    pub user_id: Option<user::Id>,
    /// The vCard of the contact.
    pub vcard: Option<String>,
}