Skip to content

Commit 13d1ef9

Browse files
committed
feat: update pybotx
1 parent a907f45 commit 13d1ef9

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/bot/commands/credentials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def add_credentials_handler(message: IncomingMessage, bot: Bot) -> None:
4141

4242
# Normally bot accounts doesn't added on the fly
4343
bot._bot_accounts_storage._bot_accounts.append( # noqa: WPS437
44-
BotAccountWithSecret(id=bot_id, host=host, secret_key=secret_key)
44+
BotAccountWithSecret(cts_host=bot_id, host=host, secret_key=secret_key)
4545
)
4646

4747
await bot.answer_message("Credentials was added")

app/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _build_credentials_from_string(
4545
host, secret_key, bot_id = [
4646
str_value.strip() for str_value in credentials_str.split("@")
4747
]
48-
return BotAccountWithSecret(host=host, secret_key=secret_key, id=UUID(bot_id))
48+
return BotAccountWithSecret(cts_url=host, secret_key=secret_key, id=UUID(bot_id))
4949

5050

5151
settings = AppSettings()

pybotx-submodule

Submodule pybotx-submodule updated 50 files

0 commit comments

Comments
 (0)