Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make username always a string to avoid errors in the user pipeline.
  • Loading branch information
Nikita Pozdnyakov committed Jun 21, 2024
1 parent 49d589e commit 5a700b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion social_core/backends/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_user_details(self, response):
last_name = response.get("last_name", "")
fullname = f"{first_name} {last_name}".strip()
return {
"username": response.get("username") or response[self.ID_KEY],
"username": response.get("username") or str(response[self.ID_KEY]),
"first_name": first_name,
"last_name": last_name,
"fullname": fullname,
Expand Down

0 comments on commit 5a700b0

Please sign in to comment.