Skip to main content

ronami_core/payloads/
set_chat_sticker_set.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::Recipient;
6use crate::types::True;
7
8impl_payload! {
9    /// Use this method to set a new group sticker set for a supergroup. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Use the field _can\_set\_sticker\_set_ optionally returned in getChat requests to check if the bot can use this method. Returns _True_ on success.
10    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
11    pub SetChatStickerSet (SetChatStickerSetSetters) => True {
12        required {
13            /// Unique identifier for the target chat or username of the target channel (in the format `@channelusername`)
14            pub chat_id: Recipient [into],
15            /// Name of the sticker set to be set as the group sticker set
16            pub sticker_set_name: String [into],
17        }
18    }
19}