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