基本上我试图理解这个api是如何工作的,通过执行以下操作我无法将消息传递到我的频道(我'从我的电报账户发送/测试命令)。另外,我如何使用JobQueue并每隔3小时发送一次自动消息,例如?文档说明不适用于我。 def test(bot, update):
update.send_message(chat_id='@channelid', text='this is a test')
我已经写了一个Python机器人(用于电报)运行在无限循环,其目标是加载特定页面的内容,搜索使用下面的代码有一定的句子和单词: response = requests.get(url)
content = response.content.decode("utf8")
for m in re.finditer("words to find", content):
起初每个东西看起来很完美