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;
6use crate::types::Recipient;
7use crate::types::True;
8use crate::types::UserId;
9
10impl_payload! {
11 /// 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.
12 #[derive(Debug, PartialEq, Eq, Hash, Clone, Serialize)]
13 pub DeleteAllMessageReactions (DeleteAllMessageReactionsSetters) => True {
14 required {
15 /// Unique identifier for the target chat or username of the target supergroup in the format `@username`
16 pub chat_id: Recipient [into],
17 }
18 optional {
19 /// Identifier of the user whose reactions will be removed, if the reactions were added by a user
20 pub user_id: UserId,
21 /// Identifier of the chat whose reactions will be removed, if the reactions were added by a chat
22 pub actor_chat_id: ChatId [into],
23 }
24 }
25}