Eyex Asked:2022-08-17 22:10:39 +0000 UTC2022-08-17 22:10:39 +0000 UTC 2022-08-17 22:10:39 +0000 UTC 如何使用 Telebot 库在 Python c 中编写代码,机器人将在其中将接收到的文本与数组进行比较并给出答案?[关闭] 772 如何使用 Telebot 库在 Python c 中编写代码,机器人将在其中将接收到的文本与数组进行比较并给出答案? python 1 个回答 Voted Best Answer oleksandrigo 2022-08-17T22:20:38Z2022-08-17T22:20:38Z 大概就是这样 list_data = ["1", "2",...] @bot.message_handler(func=lambda msg: msg.text in list_data) def hanle(message: types.Message): ...
大概就是这样