MediaAreaChannelPost

class pyrogram.raw.types.MediaAreaChannelPost

Represents a channel post.

Constructor of MediaArea.

Details:
  • Layer: 223

  • ID: 770416AF

Parameters:
  • coordinates (MediaAreaCoordinates) – The size and location of the media area corresponding to the location sticker on top of the story media.

  • channel_id (int 64-bit) – The channel that posted the message

  • msg_id (int 32-bit) – ID of the channel message

TL Schema

mediaAreaChannelPost#770416af
coordinates:MediaAreaCoordinates
channel_id:long
msg_id:int

= MediaArea

Parameter Tree

MediaAreaChannelPost
├── coordinatesMediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── xdouble
│ ├── ydouble
│ ├── wdouble
│ ├── hdouble
│ ├── rotationdouble
│ └── radiusdouble (optional)
├── channel_idlong
└── msg_idint

Example

MediaAreaChannelPost(
    coordinates=MediaAreaCoordinates(
        x=0.0,
        y=0.0,
        w=0.0,
        h=0.0,
        rotation=0.0
    ),
    channel_id=0,
    msg_id=0,
)