发送Telegram信息
图文介绍:







代码如下:
python
pip install pyTelegramBotAPI
import telebot
bot = telebot.TeleBot('2041749079:AAEnuKQzmS-v3jsLlp9fTXUxxxxxxx')
bot.send_message("-555402120", 'Hello world!', parse_mode="Markdown") # 支持多媒体/图片/声音/HTML/markdown 等类型
shell
curl -k --data chat_id="-555402120" --data "text=Have a good journey, Mr. Weyland." "https://api.telegram.org/bot<token>/sendMessage"
Last updated