Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
EXG1O committed Jul 8, 2024
1 parent ae0495a commit b116ae3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ def login_url(self) -> str:

def get_telegram_user(self) -> Chat | None:
response: Response = requests.get(
f'https://api.telegram.org/bot{settings.TELEGRAM_BOT_TOKEN}/getChat',
# FIXME: The TELEGRAM_BOT_TOKEN parameter is no longer available in the settings.
# f'https://api.telegram.org/bot{settings.TELEGRAM_BOT_TOKEN}/getChat',
'https://api.telegram.org/bot123456789/getChat',
{'chat_id': self.telegram_id},
)

Expand Down

0 comments on commit b116ae3

Please sign in to comment.