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 bc0b938 commit 3d07de6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bot/mtproto-api/workrooms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function createChat(context: Context<"issues.labeled", SupportedEve
}

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

await mtProto.client.invoke(
new mtProto.api.messages.AddChatUser({
Expand Down
1 change: 1 addition & 0 deletions src/types/plugin-inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const pluginSettingsSchema = T.Object({
supergroupChatId: T.Integer(),
supergroupChatName: T.String(),
botId: T.Transform(T.Unknown()).Decode((value) => Number(value)).Encode((value) => value.toString()),
botUsername: T.String(),
});

export const pluginSettingsValidator = new StandardValidator(pluginSettingsSchema);
Expand Down

0 comments on commit 3d07de6

Please sign in to comment.