teloxide_core/payloads/
get_user_chat_boosts.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! Generated by `codegen_payloads`, do not edit by hand.

use serde::Serialize;

use crate::types::{Recipient, UserChatBoosts, UserId};

impl_payload! {
    /// 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.
    ///
    /// [`UserChatBoosts`]: crate::types::UserChatBoosts
    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
    pub GetUserChatBoosts (GetUserChatBoostsSetters) => UserChatBoosts {
        required {
            /// Unique identifier for the chat or username of the channel (in the format @channelusername)
            pub chat_id: Recipient [into],
            /// Unique identifier of the target user
            pub user_id: UserId,
        }
    }
}