我正在使用Python创建Telegram Messenger的机器人。
我正在使用以下功能:
def telegram_bot_sendtexHTML(bot_message):
bot_token = 'token'
bot_chatID = 'id'
send_text = 'https://api.telegram.org/bot' + bot_token + '/sendMessage?chat_id=' + bot_chatID + '&parse_mode=HTML&text=' + bot_message
response = requests.get(send_text)
return response.json()
我有一个要使用此功能发送的在线图像列表(带有URL链接。)>
例如:https://media.wordpress.com/picture1.jpg
如何在我的函数中插入此lik,以便能够直接发送图片(而不是图片的链接?)>
我正在使用Python为Telegram Messenger创建机器人。我正在使用以下功能:def telegram_bot_sendtexHTML(bot_message):bot_token ='token'bot_chatID ='id'send_text ='...
telegram_bot_sendtexHTML
功能更改为telegram_bot_sendImage
;