Layer 220
ChannelsGetMessageAuthor
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.
method
Users
channels.getMessageAuthor#ece2a0e6 channel:InputChannel id:int = User;
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | InputChannel | ID of the monoforum. |
| Id | int | ID of the message sent by a monoforum admin. |
Returns
UserPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
Gogram Example
// ChannelsGetMessageAuthor - positional arguments result, err := client.ChannelsGetMessageAuthor(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, 0) if err != nil { // handle error } // result is *tg.User