messages.GetDiscussionMessage
- class pyrogram.raw.functions.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
- Details:
Layer:
223ID:
446972FD
- Parameters:
peer (
InputPeer) – Channel IDmsg_id (
int32-bit) – Message ID
- Returns:
TL Schema
messages.getDiscussionMessage#446972fd
peer:InputPeer
msg_id:int
= messages.DiscussionMessage
Parameter Tree
GetDiscussionMessage
├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── msg_id →
intExample
await app.invoke(
GetDiscussionMessage(
peer=await app.resolve_peer(chat_id),
msg_id=0,
)
)