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

Layer 223

messages.discussionMessage#a6341782 flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int unread_count:int chats:Vector<Chat> users:Vector<User> = messages.DiscussionMessage;
---functions---
messages.getDiscussionMessage#446972fd peer:InputPeer msg_id:int = messages.DiscussionMessage;

Parameters #

NameTypeDescription
peerInputPeerChannel ID
msg_idintMessage ID

Result #

messages.DiscussionMessage

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400MSG_ID_INVALIDInvalid message ID provided.
400PEER_ID_INVALIDThe provided peer id is invalid.
400TOPIC_ID_INVALIDThe specified topic ID is invalid.

Channels, supergroups, gigagroups and basic groups #

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

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