编写电报机器人时出现问题。它显示“无法解析导入“telegram.ext.updater””

问题描述 投票:0回答:1

Import could not be resolved

我多次尝试从终端安装 telegram-bot-python,也尝试从 cmd 安装它,但什么也没有。有人可以帮忙吗? 我几乎尝试过任何东西,但它让我非常生气。是 Visual Studio 的问题还是我写错了什么?

python pip bots python-import telegram-bot
1个回答
0
投票

您可能使用的是 telegram 而不是 python-telegram-bot,因此请卸载 telegram 和 python-telegram-bot 并仅重新安装 python-telegram-bot

并检查有关更新程序的文档中的更改

希望对你有帮助。

更新程序文档链接

© www.soinside.com 2019 - 2024. All rights reserved.