diff --git a/src/bot/mtproto-api/workrooms.ts b/src/bot/mtproto-api/workrooms.ts index 0dca3e4..854d633 100644 --- a/src/bot/mtproto-api/workrooms.ts +++ b/src/bot/mtproto-api/workrooms.ts @@ -187,7 +187,7 @@ export async function reopenChat(context: Context<"issues.reopened", SupportedEv pinMessages: false, untilDate: 0, }), - peer: fetchChat, + peer: await mtProto.client.getPeerId(fetchChat.fullChat.id, true), }) );