Layer 224
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
UserGogram Example
// ChannelsGetMessageAuthor - positional arguments result, err := client.ChannelsGetMessageAuthor(&tg.InputChannel{ChannelID: int64(1234567890), AccessHash: int64(5678901234567890)}, 42) if err != nil { // handle error } // result is *tg.User
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |