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

Method buildRequest

aban/aban.ts:948–965  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

946 await client.invoke(
947 new Api.channels.EditBanned({
948 channel: chatId,
949 participant: resolvedParticipant,
950 bannedRights,
951 })
952 );
953 }
954
955 static async banUser(
956 client: TelegramClient,
957 chatId: any,
958 userId: number,
959 until: number = 0,
960 participant?: any
961 ): Promise<boolean> {
962 try {
963 const resolvedParticipant = await this.resolveParticipant(client, userId, participant);
964 const rights = new Api.ChatBannedRights({
965 untilDate: until,
966 viewMessages: true,
967 sendMessages: true,
968 sendMedia: true,

Callers

nothing calls this directly

Calls 2

getBasicGroupChatIdMethod · 0.95
resolveChannelInputFunction · 0.85

Tested by

no test coverage detected