Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 11, 2024
1 parent 727a6a3 commit 8eeccd0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bot/mtproto-api/workrooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,14 +230,12 @@ export async function reopenChat(context: Context<"issues.reopened", SupportedEv

const { userIds } = users;

console.log("userIds", userIds);

for (let i = 0; i < userIds.length; i++) {
if (userIds[i] === context.config.botId) {
continue;
}

const user = await mtProto.client.getEntity(userIds[i].userId);
const user = await mtProto.client.getEntity(userIds[i]);
await mtProto.client.invoke(
new mtProto.api.messages.AddChatUser({
chatId: chat.chatId,
Expand Down

0 comments on commit 8eeccd0

Please sign in to comment.