tgbot 0.47.0

A Telegram Bot library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

use crate::types::Location;

/// Represents a location to which a chat is connected.
#[derive(Clone, Debug, Deserialize, PartialEq, PartialOrd, Serialize)]
pub struct ChatLocation {
    /// The location address, defined by the chat owner, with a length of 1-64 characters.
    pub address: String,
    /// The location to which the chat is connected.
    ///
    /// Can't be a live location.
    pub location: Location,
}