报错为:
2018-03-19 06:16:46,307 [ERROR]: telegram.ext.dispatcher (dispatcher.process_update; dispatcher.py:301)
An uncaught error was raised while processing the update
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/telegram/ext/dispatcher.py", line 279, in process_update
handler.handle_update(update, self)
File "/usr/local/lib/python3.6/dist-packages/telegram/ext/messagehandler.py", line 169, in handle_update
return self.callback(dispatcher.bot, update, **optional_args)
File "/usr/local/lib/python3.6/dist-packages/efb_telegram_master/master_message.py", line 70, in msg_thread_creator
threading.Thread(target=self.msg, args=(bot, update)).run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.6/dist-packages/efb_telegram_master/master_message.py", line 108, in msg
return self.process_telegram_message(bot, update)
File "/usr/local/lib/python3.6/dist-packages/efb_telegram_master/master_message.py", line 274, in process_telegram_message
if msg_md_text == escape_markdown(message.text):
File "/usr/local/lib/python3.6/dist-packages/telegram/utils/helpers.py", line 54, in escape_markdown
return re.sub(r'([%s])' % escape_chars, r'\\1', text)
File "/usr/lib/python3.6/re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
TypeError: expected string or bytes-like object
求大佬帮助
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.