ronami_core/payloads/delete_message_reaction.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 a reaction from a message in a group or a supergroup 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 DeleteMessageReaction (DeleteMessageReactionSetters) => 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 /// Identifier of the target message
15 pub message_id: i32,
16 }
17 optional {
18 /// Identifier of the user whose reaction will be removed, if the reaction was added by a user
19 pub user_id: UserId,
20 /// Identifier of the chat whose reaction will be removed, if the reaction was added by a chat
21 pub actor_chat_id: ChatId [into],
22 }
23 }
24}