ronami_core/payloads/unpin_all_chat_messages.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 clear the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in a supergroup or 'can_edit_messages' admin right in a channel. Returns _True_ on success.
10 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
11 pub UnpinAllChatMessages (UnpinAllChatMessagesSetters) => 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 }
16 }
17}