InputMediaAreaChannelPost
- class pyrogram.raw.types.InputMediaAreaChannelPost
Represents a channel post
Constructor of
MediaArea.- Details:
Layer:
223ID:
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 messagemsg_id (
int32-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│ └──
InputChannelFromMessage│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── msg_id →
intExample
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,
)