Skip to content

Commit

Permalink
fix: check bot account before sending notification
Browse files Browse the repository at this point in the history
  • Loading branch information
siderai committed May 23, 2023
1 parent 702c796 commit a8278e6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions botx/bots/mixins/requests/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ async def call_method( # noqa: WPS211
"""
if credentials is not None:
debug_bot_id = credentials.bot_id
host = cast(str, credentials.host)
bot_id = cast(UUID, credentials.bot_id)
method.configure(
host=host,
host=cast(CredentialsSearchProtocol, self).get_account_by_bot_id(bot_id).host,
token=cast(CredentialsSearchProtocol, self).get_token_for_bot(bot_id),
)
else:
Expand Down

0 comments on commit a8278e6

Please sign in to comment.