channels.GetMessageAuthor
- class pyrogram.raw.functions.channels.GetMessageAuthor
Can only be invoked by non-bot admins of a monoforum », obtains the original sender of a message sent by other monoforum admins to the monoforum, on behalf of the channel associated to the monoforum.
- Details:
Layer:
223ID:
ECE2A0E6
- Parameters:
channel (
InputChannel) – ID of the monoforum.id (
int32-bit) – ID of the message sent by a monoforum admin.
- Returns:
TL Schema
channels.getMessageAuthor#ece2a0e6
channel:InputChannel
id:int
= User
Parameter Tree
GetMessageAuthor
├── 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└── id →
intExample
await app.invoke(
GetMessageAuthor(
channel=await app.resolve_channel(chat_id),
id=0,
)
)