MediaAreaSuggestedReaction
- class pyrogram.raw.types.MediaAreaSuggestedReaction
Represents a reaction bubble.
Constructor of
MediaArea.- Details:
Layer:
223ID:
14455871
- Parameters:
coordinates (
MediaAreaCoordinates) – The coordinates of the media area corresponding to the reaction button.reaction (
Reaction) – The reaction that should be sent when this area is clicked.dark (
bool, optional) – Whether the reaction bubble has a dark background.flipped (
bool, optional) – Whether the reaction bubble is mirrored (see here » for more info).
TL Schema
mediaAreaSuggestedReaction#14455871
flags:#
dark:flags.0?true
flipped:flags.1?true
coordinates:MediaAreaCoordinates
reaction:Reaction
= MediaArea
Parameter Tree
MediaAreaSuggestedReaction
├── dark →
true (optional)├── flipped →
true (optional)├── coordinates →
MediaAreaCoordinates│ └──
MediaAreaCoordinates│ ├── x →
double│ ├── y →
double│ ├── w →
double│ ├── h →
double│ ├── rotation →
double│ └── radius →
double (optional)└── reaction →
Reaction├──
ReactionEmpty├──
ReactionEmoji│ └── emoticon →
string│ └── document_id →
long└──
ReactionPaidExample
MediaAreaSuggestedReaction(
coordinates=MediaAreaCoordinates(
x=0.0,
y=0.0,
w=0.0,
h=0.0,
rotation=0.0
),
reaction=ReactionEmpty(),
)