小编Mey*_*imi的帖子

在bale bot中获取客户端位置

我有一个打包机器人.我需要获得客户位置的经纬度.我使用了LocationFilter,但是我收到了这个错误.

2018-06-10 14:10:41,980  dispatcher.py:143  ERROR:
"'JsonMessage' object has no attribute 'text'"
Traceback (most recent call last):
  File "/home/ehsan/PycharmProjects/example_bots/balebot/dispatcher.py", line 139, in process_fat_seq_update
    handler.handle_update(self, update)
  File "/home/ehsan/PycharmProjects/example_bots/balebot/handlers/message_handler.py", line 29, in handle_update
    return self.callback(dispatcher.bot, update)
  File "/home/ehsan/PycharmProjects/example_bots/examples/document_conversion.py", line 43, in conversation_starter
    message = update.get_effective_message().text
AttributeError: 'JsonMessage' object has no attribute 'text'
Run Code Online (Sandbox Code Playgroud)

有任何想法吗?

location bots python-3.x bale-messenger balebot

5
推荐指数
1
解决办法
53
查看次数

标签 统计

bale-messenger ×1

balebot ×1

bots ×1

location ×1

python-3.x ×1