diff --git a/src/bot/mtproto-api/workrooms.ts b/src/bot/mtproto-api/workrooms.ts index 7ec8a5a..293dc36 100644 --- a/src/bot/mtproto-api/workrooms.ts +++ b/src/bot/mtproto-api/workrooms.ts @@ -186,7 +186,7 @@ export async function reopenChat(context: Context<"issues.reopened", SupportedEv pinMessages: true, untilDate: 0, // forever }), - peer: chatPeer, + peer: new mtProto.api.InputPeerChat({ chatId: chatPeer.chatId }), }) );