MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / reportSpam

Function reportSpam

pmcaptcha/pmcaptcha.ts:449–457  ·  view source on GitHub ↗
(client: TelegramClient, userId: number)

Source from the content-addressed store, hash-verified

447 } catch (e) { log(LogLevel.ERROR, `report failed ${userId}`, e); }
448}
449
450async function unmuteChat(client: TelegramClient, userId: number) {
451 try {
452 const peer = await client.getInputEntity(userId);
453 await client.invoke(new Api.account.UpdateNotifySettings({
454 peer: new Api.InputNotifyPeer({ peer }),
455 settings: new Api.InputPeerNotifySettings({ muteUntil: 0, showPreviews: true, silent: false })
456 }));
457 } catch (e) { log(LogLevel.ERROR, `unmute failed ${userId}`, e); }
458}
459
460async function unarchiveChat(client: TelegramClient, userId: number) {

Callers 1

runFailActionsFunction · 0.85

Calls 1

logFunction · 0.85

Tested by

no test coverage detected