0

Нужно получить url аватарки, используя requests. Есть токен бота и ID сервера, ID пользователя.

1 ответ 1

0
url = member.avatar_url
img_data = requests.get(url).content
with open('test.jpg', 'wb') as handler:
    handler.write(img_data)

эта штука сохранит картинку в файл test.jpg

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.