InputMediaAreaChannelPost

class pyrogram.raw.types.InputMediaAreaChannelPost

Represents a channel post

Constructor of MediaArea.

Details:
  • Layer: 223

  • ID: 2271F2BF

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

  • channel (InputChannel) – The channel that posted the message

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

TL Schema

inputMediaAreaChannelPost#2271f2bf
coordinates:MediaAreaCoordinates
channel:InputChannel
msg_id:int

= MediaArea

Parameter Tree

InputMediaAreaChannelPost
├── coordinatesMediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── xdouble
│ ├── ydouble
│ ├── wdouble
│ ├── hdouble
│ ├── rotationdouble
│ └── radiusdouble (optional)
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── msg_idint

Example

InputMediaAreaChannelPost(
    coordinates=MediaAreaCoordinates(
        x=0.0,
        y=0.0,
        w=0.0,
        h=0.0,
        rotation=0.0
    ),
    channel=await app.resolve_channel(chat_id),
    msg_id=0,
)