MediaAreaSuggestedReaction

class pyrogram.raw.types.MediaAreaSuggestedReaction

Represents a reaction bubble.

Constructor of MediaArea.

Details:
  • Layer: 223

  • ID: 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
├── darktrue (optional)
├── flippedtrue (optional)
├── coordinatesMediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── xdouble
│ ├── ydouble
│ ├── wdouble
│ ├── hdouble
│ ├── rotationdouble
│ └── radiusdouble (optional)
└── reactionReaction
├── ReactionEmpty
├── ReactionEmoji
│ └── emoticonstring
│ └── document_idlong
└── ReactionPaid

Example

MediaAreaSuggestedReaction(
    coordinates=MediaAreaCoordinates(
        x=0.0,
        y=0.0,
        w=0.0,
        h=0.0,
        rotation=0.0
    ),
    reaction=ReactionEmpty(),
)