Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get user's profile photos #29

Open
shamaevnn opened this issue Aug 28, 2021 · 2 comments
Open

get user's profile photos #29

shamaevnn opened this issue Aug 28, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@shamaevnn
Copy link
Collaborator

shamaevnn commented Aug 28, 2021

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 shamaevnn created this issue from a note in Django-Telegram-bot v2.0 (To do) Aug 28, 2021
@shamaevnn shamaevnn added the enhancement New feature or request label Nov 25, 2021
@MaximTkachev1
Copy link

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

@VeryBigSad
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

4 participants