telegram-bot-raw-ars 0.9.1

Telegram Bot API types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::types::*;

/// Represents a result of an inline query that was chosen by the user and sent to their chat partner.
#[derive(Debug, Clone, PartialEq, PartialOrd, Deserialize)]
pub struct ChosenInlineResult {
    /// The unique identifier for the result that was chosen
    pub result_id: String,
    /// The user that chose the result
    pub from: User,
    /// Sender location, only for bots that require user location
    pub location: Option<Location>,
    /// Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. Will be also received in callback queries and can be used to edit the message.
    pub inline_message_id: Option<String>,
    /// The query that was used to obtain the result
    pub query: String,
}