teloxide_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, UserChatBoosts, UserId};
6
7impl_payload! {
8 /// 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.
9 ///
10 /// [`UserChatBoosts`]: crate::types::UserChatBoosts
11 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
12 pub GetUserChatBoosts (GetUserChatBoostsSetters) => UserChatBoosts {
13 required {
14 /// Unique identifier for the chat or username of the channel (in the format @channelusername)
15 pub chat_id: Recipient [into],
16 /// Unique identifier of the target user
17 pub user_id: UserId,
18 }
19 }
20}