Skip to content

Commit

Permalink
fix: disable get_boards_creds for group chats
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyqu committed Mar 30, 2024
1 parent 5b5b3da commit 6ce8a13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tg/handlers/get_board_credentials_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@


def get_board_credentials(update: telegram.Update, tg_context):
if update.message.chat_id < 0:
return
member = next((
member for member in DBClient().get_all_members()
if member.telegram == f"@{get_sender_username(update)}"
Expand Down

0 comments on commit 6ce8a13

Please sign in to comment.