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 5d59645 commit 4602c39
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bot/mtproto-api/workrooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ export async function createChat(context: Context<"issues.labeled", SupportedEve

context.logger.info("Creating chat with name: ", { chatName });

const bot = new Api.InputUserSelf()
const self = new Api.InputUserSelf()
const bot = new Api.User({ id: BigInt(config.botId) });

const chat = await mtProto.client.invoke(
new mtProto.api.messages.CreateChat({
title: chatName,
users: [bot]
users: [bot.id, self],
})
);

Expand Down

0 comments on commit 4602c39

Please sign in to comment.