Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装后运行ehforwarderbot,提示找不到命令 #43

Closed
mlch911 opened this issue Mar 3, 2019 · 2 comments
Closed

安装后运行ehforwarderbot,提示找不到命令 #43

mlch911 opened this issue Mar 3, 2019 · 2 comments
Labels

Comments

@mlch911
Copy link

mlch911 commented Mar 3, 2019

我通过路径运行后,收到消息会报错。

2019-03-04 02:42:42,804 [ERROR]: efb_telegram_master.slave_message (slave_message.send_message; slave_message.py:208)
    [7106326124764392640] Error occurred while processing message from slave channel.
Message: <EFBMsg, <EFBChat: 笔吧评测室 (4b8724aa) @ WeChat Slave>@<EFBChat: 笔吧评测室 (4b8724aa) @ WeChat Slave> [Image]: ; Attributes: None; Delivering to: <efb_telegram_master.TelegramChannel object at 0x7f1164d6df98>; Edited: False; System message: False; Substitutions: None; Target messages: None; UID: 7106326124764392640; Reactions: {}; File: <tempfile._TemporaryFileWrapper object at 0x7f116426b940> (None @ /tmp/tmpwl3byhlv), image/jpeg; Vendor: {}>
BadRequest()
Traceback (most recent call last):
  File "/usr/local/python3/lib/python3.7/site-packages/efb_telegram_master/slave_message.py", line 140, in send_message
    tg_msg = self.slave_message_image(msg, tg_dest, msg_template, old_msg_id, target_msg_id, reply_markup)
  File "/usr/local/python3/lib/python3.7/site-packages/efb_telegram_master/slave_message.py", line 355, in slave_message_image
    self.bot.send_chat_action(tg_dest, telegram.ChatAction.UPLOAD_PHOTO)
  File "/usr/local/python3/lib/python3.7/site-packages/efb_telegram_master/bot_manager.py", line 364, in send_chat_action
    return self.updater.bot.send_chat_action(*args, **kwargs)
  File "/usr/local/python3/lib/python3.7/site-packages/telegram/bot.py", line 65, in decorator
    result = func(self, *args, **kwargs)
  File "/usr/local/python3/lib/python3.7/site-packages/telegram/bot.py", line 1378, in send_chat_action   
    result = self._request.post(url, data, timeout=timeout)
  File "/usr/local/python3/lib/python3.7/site-packages/telegram/utils/request.py", line 309, in post
    headers={'Content-Type': 'application/json'})
  File "/usr/local/python3/lib/python3.7/site-packages/telegram/utils/request.py", line 223, in _request_wrapper
    raise BadRequest(message)
telegram.error.BadRequest: Chat not found
@blueset blueset transferred this issue from ehForwarderBot/ehForwarderBot Mar 3, 2019
@blueset
Copy link
Member

blueset commented Mar 3, 2019

  1. 请检查您的 pip 所使用的 bin 目录是否在系统的 PATH 环境变量里面。此外,也可尝试使用 python3 -m ehforwarderbot 启动 EFB。
  2. 请检查您的 EFB Telegram Master Channel 的 config.yaml 输入了正确的管理员 ID(与用户名和显示名称不同)。

@blueset blueset closed this as completed Mar 3, 2019
@mlch911
Copy link
Author

mlch911 commented Mar 3, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants