messages.getDiscussionMessage
Example
const {Api, TelegramClient} = require('telegram');
const {StringSession} = require('telegram/sessions');
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result = await client.invoke(new Api.messages.getDiscussionMessage({
peer: new Api.InputPeer({...}),
msgId: 5025473,
}));
console.log(result); // prints the result
})();import {Api, TelegramClient} from 'telegram';
import {StringSession} from 'telegram/sessions';
const session = new StringSession('');
const client = new TelegramClient(session, apiId, apiHash, {});
(async function run() {
const result: Api.messages.DiscussionMessage = await client.invoke(new Api.messages.getDiscussionMessage({
peer: new Api.InputPeer({...}),
msgId: 5025473,
}));
console.log(result); // prints the result
})();TL schema
messages.discussionMessage#f5dd8f9d flags:# messages:Vector<Message> max_id:flags.0?int read_inbox_max_id:flags.1?int read_outbox_max_id:flags.2?int chats:Vector<Chat> users:Vector<User> = messages.DiscussionMessage;
---functions---
messages.getDiscussionMessage#446972fd peer:InputPeer msg_id:int = messages.DiscussionMessage;Parameters
Result
Possible errors
Can bots use this methd ?
yes
Related pages
Last updated