InputMediaAreaChannelPost

class pyrogram.raw.types.InputMediaAreaChannelPost

Represents a channel post

Constructor of MediaArea.

Details:
  • Layer: 227

  • 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
├── coordinates → MediaAreaCoordinates
│ └── MediaAreaCoordinates
│ ├── x → double
│ ├── y → double
│ ├── w → double
│ ├── h → double
│ ├── rotation → double
│ └── radius → double (optional)
├── channel → InputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── msg_id → int

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,
)