Skip to content

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Sep 8, 2024
1 parent 7981cbd commit 709346c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/bot/mtproto-api/workrooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,13 @@ export async function createChat(context: Context<"issues.labeled", SupportedEve
}

try {

const botEntity = await mtProto.client.getEntity(config.botId);

await mtProto.client.invoke(
new mtProto.api.messages.AddChatUser({
chatId: chatIdBigInt,
userId: config.botId,
userId: botEntity.id,
fwdLimit: 50,
})
);
Expand Down

0 comments on commit 709346c

Please sign in to comment.