기본적인 메시지 전달 방법
import telepot#추가
import telepot
token = '1586693187:AAHyHFegfJfHh-x4HrgJst2Ktj1z0lr3zZ0'
mc = 'ID입력'
bot = telepot.Bot(token)
bot.sendMessage(mc,"안녕")# 메시지 전달 방법
f = open('sajin.jpg','rb')
bot.sendPhoto(mc,f)#사진 전달 방법
매우 간단하게 메시지 전달 가능
댓글