contacts.blockFromReplies
Stop getting notifications about thread replies of a certain user in @replies
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.contacts.blockFromReplies({
deleteMessage: true,
deleteHistory: true,
reportSpam: true,
msgId: 2523879,
}));
console.log(result); // prints the result
})();
TL schema
@replies
Parameters
Name
Type
Description
Result
Possible errors
Code
Type
Description
Can bots use this methd ?
yes
Related pages
Telegram allows commenting on a channel post or on a generic supergroup message, thanks to message threads.
Last updated
Was this helpful?