我正在创建一个在在线词典中搜索单词的telegram bot,当我需要在telegram中创建用于在字典中搜索的命令时,问题就来了,现在我有了这个:
from rae import Drae
drae = Drae()
if text.startswith('/'):
if text =='/define':
drae.search(u' ') # The problem is here, I don't know how to implement the command and the word who the client wants to search.
setEnabled(chat_id, True)
这个怎么样。在
相关问题 更多 >
编程相关推荐