Skip to content

Commit

Permalink
drop get photo
Browse files Browse the repository at this point in the history
  • Loading branch information
da-maltsev committed Jul 6, 2023
1 parent 0fe80fd commit 27e2f89
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,6 @@
from helpers import DB_ENABLED, enable_logging, in_production, init_sentry


async def get_profile_picture(message: Message) -> str | None:
if message.from_user:
photos = await message.from_user.get_profile_photos()

if photos is not None and photos.total_count > 0:
profile_picture = await photos.photos[0][0].get_file()
return profile_picture.file_path


async def log_message(message: Message | None, action: str | None = ''):
"""Create a log entry for telegram message"""

Expand Down

0 comments on commit 27e2f89

Please sign in to comment.