typescript-telegram-bot-api
Version:
Telegram Bot API wrapper for Node.js written in TypeScript
37 lines (36 loc) • 1.01 kB
TypeScript
import { Chat, User, ReactionType } from './';
/**
* ## MessageReactionUpdated
* This object represents a change of a reaction on a message performed by a user.
* @see https://core.telegram.org/bots/api#messagereactionupdated
*/
export type MessageReactionUpdated = {
/**
* The chat containing the message the user reacted to
*/
chat: Chat;
/**
* Unique identifier of the message inside the chat
*/
message_id: number;
/**
* Optional. The user that changed the reaction, if the user isn't anonymous
*/
user: User;
/**
* Optional. The chat on behalf of which the reaction was changed, if the user is anonymous
*/
actor_chat: Chat;
/**
* Date of the change in Unix time
*/
date: number;
/**
* Previous list of reaction types that were set by the user
*/
old_reaction: ReactionType[];
/**
* New list of reaction types that have been set by the user
*/
new_reaction: ReactionType[];
};