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

Function runPassActions

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

Source from the content-addressed store, hash-verified

495 settings: new Api.InputPeerNotifySettings({ muteUntil: 0, showPreviews: true, silent: false })
496 }));
497 } catch (e) { log(LogLevel.ERROR, `unmute failed ${userId}`, e); }
498}
499
500async function unarchiveChat(client: TelegramClient, userId: number) {
501 try {
502 const peer = await resolveInputPeer(client, userId);
503 await client.invoke(new Api.folders.EditPeerFolders({
504 folderPeers: [new Api.InputFolderPeer({ peer, folderId: 0 })]
505 }));
506 } catch (e) { log(LogLevel.ERROR, `unarchive failed ${userId}`, e); }

Callers 1

handleReplyFunction · 0.85

Calls 3

unmuteChatFunction · 0.85
unarchiveChatFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected