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