import requests
token = ''
data = {'chat_id': 123, 'caption': 'optional'}
url = f'https://api.telegram.org/bot{token}/sendPhoto'
with open('C:/file.png', 'rb') as photo:
msg = requests.post(url=url, data=data, files={'photo': photo})
print(msg.json())
Решение не мое.