如何使用python持续检查传入我的电报机器人的消息?
我正在试验电报机器人和python。我的问题是如何让python程序持续检查发送到电报机器人的消息 例如:如何使用python持续检查传入我的电报机器人的消息?,python,python-3.x,chatbot,telegram-bot,python-telegram-bot,Python,Python 3.x,Chatbot,Telegram Bot,Python Telegram Bot,我正在试验电报机器人和python。我的问题是如何让python程序持续检查发送到电报机器人的消息 例如: while checkForIncomingMessages: print(latestMessage) if latestMessage == "ifconfig": # execute ifconfig command on laptop 提前谢谢 telegrambot的github页面上有一些示例bot
while checkForIncomingMessages:
print(latestMessage)
if latestMessage == "ifconfig":
# execute ifconfig command on laptop
提前谢谢 telegrambot的github页面上有一些示例bot