ronami_core/payloads/get_user_chat_boosts.rs
1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::Recipient;
6use crate::types::UserChatBoosts;
7use crate::types::UserId;
8
9impl_payload! {
10 /// Use this method to get the list of boosts added to a chat by a user. Requires administrator rights in the chat. Returns a [`UserChatBoosts`] object.
11 ///
12 /// [`UserChatBoosts`]: crate::types::UserChatBoosts
13 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
14 pub GetUserChatBoosts (GetUserChatBoostsSetters) => UserChatBoosts {
15 required {
16 /// Unique identifier for the chat or username of the channel (in the format @channelusername)
17 pub chat_id: Recipient [into],
18 /// Unique identifier of the target user
19 pub user_id: UserId,
20 }
21 }
22}