Layer 220
MessagesGetDiscussionMessage
Get discussion message from the associated discussion group of a channel to show it on top of the comment section, without actually joining the group
method
Users
messages.getDiscussionMessage#446972fd peer:InputPeer msg_id:int = messages.DiscussionMessage;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Channel ID |
| MsgId | int | Message ID |
Returns
messages.DiscussionMessagePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |
| 400 | MSG_ID_INVALID | Invalid message ID provided. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
| 400 | TOPIC_ID_INVALID | The specified topic ID is invalid. |
Gogram Example
// MessagesGetDiscussionMessage - positional arguments result, err := client.MessagesGetDiscussionMessage(&tg.InputPeerUser{UserID: int64(123456789)}, 0) if err != nil { // handle error } // result is *tg.MessagesDiscussionMessage