messages.readMentions
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.readMentions({
peer: new Api.InputPeer({...}),
}));
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.AffectedHistory = await client.invoke(new Api.messages.readMentions({
peer: new Api.InputPeer({...}),
}));
console.log(result); // prints the result
})();TL schema
messages.affectedHistory#b45c69d1 pts:int pts_count:int offset:int = messages.AffectedHistory;
---functions---
messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory;Parameters
Result
Possible errors
Can bots use this methd ?
yes
Related pages
Last updated