conogram 0.2.19

An async wrapper for Telegram Bot API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use serde::{Deserialize, Serialize};

use crate::entities::location::Location;

/// Contains information about the location of a Telegram Business account.
///
/// API Reference: [link](https://core.telegram.org/bots/api/#businesslocation)
#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
pub struct BusinessLocation {
    /// Address of the business
    pub address: String,

    /// *Optional*. Location of the business
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub location: Option<Location>,
}

// Divider: all content below this line will be preserved after code regen