Skip to main content

ronami_core/payloads/
delete_all_message_reactions.rs

1//! Generated by `codegen_payloads`, do not edit by hand.
2
3use serde::Serialize;
4
5use crate::types::{ChatId, Recipient, True, UserId};
6
7impl_payload! {
8    /// Use this method to remove up to 10000 recent reactions in a group or a supergroup chat added by a given user or chat. The bot must have the _can\_delete\_messages_ administrator right in the chat. Returns _True_ on success.
9    #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
10    pub DeleteAllMessageReactions (DeleteAllMessageReactionsSetters) => True {
11        required {
12            /// Unique identifier for the target chat or username of the target supergroup in the format `@username`
13            pub chat_id: Recipient [into],
14        }
15        optional {
16            /// Identifier of the user whose reactions will be removed, if the reactions were added by a user
17            pub user_id: UserId,
18            /// Identifier of the chat whose reactions will be removed, if the reactions were added by a chat
19            pub actor_chat_id: ChatId [into],
20        }
21    }
22}