messages.getDiscussionMessage

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 schema is available as of layer 119. Switch ยป

Parameters

Name Type Description
peer InputPeer Channel ID
msg_id int Message ID

Result

messages.DiscussionMessage

Possible 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.

Related pages

Channels, supergroups, gigagroups and basic groups

How to handle channels, supergroups, gigagroups, basic groups, and what's the difference between them.

Threads

Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.

Discussion groups

Groups can be associated to a channel as a discussion group, to allow users to discuss about posts.