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: 223

  • ID: ECE2A0E6

Parameters:
  • channel (InputChannel) – ID of the monoforum.

  • id (int 32-bit) – ID of the message sent by a monoforum admin.

Returns:

User

TL Schema

channels.getMessageAuthor#ece2a0e6
channel:InputChannel
id:int

= User

Parameter Tree

GetMessageAuthor
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── idint

Example

await app.invoke(
    GetMessageAuthor(
        channel=await app.resolve_channel(chat_id),
        id=0,
    )
)