1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Generated by `codegen_payloads`, do not edit by hand.
use serde::Serialize;
use crate::types::{OwnedGifts, Recipient};
impl_payload! {
/// Returns the gifts owned by a chat. Returns [`OwnedGifts`] on success.
///
/// [`OwnedGifts`]: crate::types::OwnedGifts
#[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
pub GetChatGifts (GetChatGiftsSetters) => OwnedGifts {
required {
/// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
pub chat_id: Recipient [into],
}
optional {
/// Pass _true_ to exclude gifts that aren't saved to the chat's profile page. Always _true_, unless the bot has the _can_post_messages_ administrator right in the channel
pub exclude_unsaved: bool,
/// Pass _true_ to exclude gifts that are saved to the chat's profile page. Always _false_, unless the bot has the _can_post_messages_ administrator right in the channel
pub exclude_saved: bool,
/// Pass _true_ to exclude gifts that can be purchased an unlimited number of times
pub exclude_unlimited: bool,
/// Pass _true_ to exclude gifts that can be purchased a limited number of times and can be upgraded to unique
pub exclude_limited_upgradable: bool,
/// Pass _true_ to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique
pub exclude_limited_non_upgradable: bool,
/// Pass _true_ to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram
pub exclude_from_blockchain: bool,
/// Pass _true_ to exclude unique gifts
pub exclude_unique: bool,
/// Pass _true_ to sort results by gift price instead of send date. Sorting is applied before pagination
pub sort_by_price: bool,
/// Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results
pub offset: String [into],
/// The maximum number of gifts to be returned; 1-100. Defaults to 100
pub limit: u8,
}
}
}