diff --git a/src/bot/mtproto-api/workrooms.ts b/src/bot/mtproto-api/workrooms.ts index 87ab605..c417393 100644 --- a/src/bot/mtproto-api/workrooms.ts +++ b/src/bot/mtproto-api/workrooms.ts @@ -209,7 +209,7 @@ export async function reopenChat(context: Context<"issues.reopened", SupportedEv await mtProto.client.invoke( new mtProto.api.messages.EditChatAdmin({ - chatId, + chatId: chat.chatId, isAdmin: true, userId: chatCreator, })