Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with open('file.jpg', 'rb') as f:
- r = requests.post(url=url, data={'chat_id': '11111111', 'photo': f})
- print(r.json())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement