django-telegram-bot icon indicating copy to clipboard operation
django-telegram-bot copied to clipboard

get user's profile photos

Open shamaevnn opened this issue 3 years ago • 2 comments

Use this method to get user photos https://core.telegram.org/bots/api#getuserprofilephotos. Create new "Image" model in tgbot app with user (foreign_key) and telegram_file_id (charfield) fields. Store these images while get_user_and_created?

shamaevnn avatar Aug 28 '21 11:08 shamaevnn

Hello, I would like to clarify and the photo should go somewhere in the chat or be saved somewhere

MaximTkachev1 avatar Aug 04 '22 10:08 MaximTkachev1

Hello, I would like to clarify and the photo should go somewhere in the chat or be saved somewhere

You mean we should store the picture somewhere on Telegram's servers and only store file id in the database?

VeryBigSad avatar Feb 01 '23 11:02 VeryBigSad