peyk.platforms.telegram.types.message_reaction_updated¶
Classes
|
This object represents a change of a reaction on a message performed by a user. |
- class peyk.platforms.telegram.types.message_reaction_updated.MessageReactionUpdated(chat: Chat, message_id: int, date: int, old_reaction: List[ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid] | None = None, new_reaction: List[ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid] | None = None, user: User | None = None, actor_chat: Chat | None = None)[source]¶
Bases:
objectThis object represents a change of a reaction on a message performed by a user.
- Variables:
chat (peyk.platforms.telegram.types.chat.Chat) – The chat containing the message the user reacted to
message_id (int) – Unique identifier of the message inside the chat
date (int) – Date of the change in Unix time
old_reaction (List[peyk.platforms.telegram.types.reaction_type_emoji.ReactionTypeEmoji | peyk.platforms.telegram.types.reaction_type_custom_emoji.ReactionTypeCustomEmoji | peyk.platforms.telegram.types.reaction_type_paid.ReactionTypePaid] | None) – Previous list of reaction types that were set by the user
new_reaction (List[peyk.platforms.telegram.types.reaction_type_emoji.ReactionTypeEmoji | peyk.platforms.telegram.types.reaction_type_custom_emoji.ReactionTypeCustomEmoji | peyk.platforms.telegram.types.reaction_type_paid.ReactionTypePaid] | None) – New list of reaction types that have been set by the user
user (peyk.platforms.telegram.types.user.User | None) – The user that changed the reaction, if the user isn’t anonymous
actor_chat (peyk.platforms.telegram.types.chat.Chat | None) – The chat on behalf of which the reaction was changed, if the user is anonymous
- message_id: int¶
- date: int¶
- old_reaction: List[ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid] | None = None¶
- new_reaction: List[ReactionTypeEmoji | ReactionTypeCustomEmoji | ReactionTypePaid] | None = None¶
- classmethod from_dict(data: dict | None) MessageReactionUpdated | None[source]¶
Provides the from dict operation for the Telegram integration.
- Parameters:
data – Value used by this operation.
- Returns:
Result produced by the operation.