我正在尝试电报机器人和python。我的问题是如何使我的python程序持续检查发送到电报机器人的消息?
例如:
while checkForIncomingMessages: print(latestMessage) if latestMessage == "ifconfig": # execute ifconfig command on laptop
提前感谢!
[telegrambot的github页面上有一些示例bot。
echobot2