conogram/entities/
input_contact_message_content.rs

1use serde::Serialize;
2
3/// Represents the [content](https://core.telegram.org/bots/api/#inputmessagecontent) of a contact message to be sent as the result of an inline query.
4///
5/// API Reference: [link](https://core.telegram.org/bots/api/#inputcontactmessagecontent)
6#[derive(Debug, Clone, Default, PartialEq, Serialize)]
7pub struct InputContactMessageContent {
8    /// Contact's phone number
9    pub phone_number: String,
10
11    /// Contact's first name
12    pub first_name: String,
13
14    /// *Optional*. Contact's last name
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub last_name: Option<String>,
17
18    /// *Optional*. Additional data about the contact in the form of a [vCard](https://en.wikipedia.org/wiki/VCard), 0-2048 bytes
19    #[serde(skip_serializing_if = "Option::is_none")]
20    pub vcard: Option<String>,
21}
22
23// Divider: all content below this line will be preserved after code regen