Skip to main content

conogram/entities/
shipping_query.rs

1use serde::{Deserialize, Serialize};
2
3use crate::entities::{shipping_address::ShippingAddress, user::User};
4
5/// This object contains information about an incoming shipping query.
6///
7/// API Reference: [link](https://core.telegram.org/bots/api/#shippingquery)
8#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
9pub struct ShippingQuery {
10    /// Unique query identifier
11    pub id: String,
12
13    /// User who sent the query
14    pub from: User,
15
16    /// Bot-specified invoice payload
17    pub invoice_payload: String,
18
19    /// User specified shipping address
20    pub shipping_address: ShippingAddress,
21}
22
23// Divider: all content below this line will be preserved after code regen