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
})();
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.Updates = await client.invoke(new Api.contacts.blockFromReplies({
deleteMessage: true,
deleteHistory: true,
reportSpam: true,
msgId: 2523879,
}));
console.log(result); // prints the result
})();
TL schema
Parameters
Whether to delete the specified message as well
Whether to delete all @replies messages from this user as well
Whether to also report this user for spam
Result
Updates
Possible errors
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.