PYTHON
[ PY ] telegram send image api / 텔레그램 이미지 전송 / telegram send image
별님달님햇님
2021. 5. 24. 11:29
728x90
import telegram
teken='[token_value]'
chat_id='[chat_id_value]'
bot=telegram.Bot(token)
bot.send_photo(chat_id, open(img, 'rb')
728x90