Giter Club home page Giter Club logo

efb-wechat-comwechat-slave's Introduction

EH Forwarder Bot

Python >= 3.6

GitHub Discussions

Telegram

Documentation

Tests status

PyPI release

Downloads per month

Codacy grade

Translate this project

Banner

Codename EH Forwarder Bot (EFB) is an extensible message tunneling chat bot framework which delivers messages to and from multiple platforms and remotely control your accounts.

Read the Documentation. For tips, tricks and community contributed articles, see project wiki.

Getting Started

  1. Install the framework:

    pip3 install ehforwarderbot
  2. Install modules from the module repository.
  3. Enable and set up modules:

    efb-wizard
  4. Launch EFB:

    ehforwarderbot

Feel like contributing?

Everyone is welcomed to raise an issue or submit a pull request, just remember to read through and follow the contribution guideline before you do so.

License

EFB framework is licensed under GNU Affero General Public License 3.0 or later versions:

EH Forwarder Bot: An extensible message tunneling chat bot framework.
Copyright (C) 2016 - 2020 Eana Hufwe, and the EH Forwarder Bot contributors
All rights reserved.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

Translation support

EFB supports translated user interface prompts, by setting the locale environmental variable (LANGUAGE, LC_ALL, LC_MESSAGES or LANG) to one of our supported languages. Our documentation is also available in different languages. You can help to translate this project into your languages on our Crowdin page.

efb-wechat-comwechat-slave's People

Contributors

0honus0 avatar ojhdt avatar qq-war avatar retx0 avatar rongronggg9 avatar yangchuansheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

efb-wechat-comwechat-slave's Issues

python-telegram-bot wasn't properly installed

启动slave端后报错

comwechat-slave  | /app/venv/lib/python3.12/site-packages/telegram/utils/request.py:54: UserWarning: python-telegram-bot wasn't properly installed. Please refer to README.rst on how to properly install.
comwechat-slave  |   warnings.warn(
comwechat-slave  | Traceback (most recent call last):
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/utils/request.py", line 36, in <module>
comwechat-slave  |     import telegram.vendor.ptb_urllib3.urllib3 as urllib3
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/vendor/ptb_urllib3/urllib3/__init__.py", line 7, in <module>
comwechat-slave  |     from .connectionpool import (
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 11, in <module>
comwechat-slave  |     from .exceptions import (
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/vendor/ptb_urllib3/urllib3/exceptions.py", line 2, in <module>
comwechat-slave  |     from .packages.six.moves.http_client import (
comwechat-slave  | ModuleNotFoundError: No module named 'telegram.vendor.ptb_urllib3.urllib3.packages.six.moves'
comwechat-slave  | 
comwechat-slave  | During handling of the above exception, another exception occurred:
comwechat-slave  | 
comwechat-slave  | Traceback (most recent call last):
comwechat-slave  |   File "/app/venv/bin/ehforwarderbot", line 8, in <module>
comwechat-slave  |     sys.exit(main())
comwechat-slave  |              ^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/ehforwarderbot/__main__.py", line 330, in main
comwechat-slave  |     conf = config.load_config()
comwechat-slave  |            ^^^^^^^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/ehforwarderbot/config.py", line 45, in load_config
comwechat-slave  |     channel = utils.locate_module(data['master_channel'], 'master')
comwechat-slave  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/ehforwarderbot/utils.py", line 145, in locate_module
comwechat-slave  |     return i.load()
comwechat-slave  |            ^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2518, in load
comwechat-slave  |     return self.resolve()
comwechat-slave  |            ^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/pkg_resources/__init__.py", line 2524, in resolve
comwechat-slave  |     module = __import__(self.module_name, fromlist=['__name__'], level=0)
comwechat-slave  |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/efb_telegram_master/__init__.py", line 11, in <module>
comwechat-slave  |     import telegram  # lgtm [py/import-and-import-from]
comwechat-slave  |     ^^^^^^^^^^^^^^^
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/__init__.py", line 187, in <module>
comwechat-slave  |     from .bot import Bot
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/bot.py", line 107, in <module>
comwechat-slave  |     from telegram.utils.request import Request
comwechat-slave  |   File "/app/venv/lib/python3.12/site-packages/telegram/utils/request.py", line 44, in <module>
comwechat-slave  |     import urllib3.contrib.appengine as appengine  # type: ignore[no-redef]
comwechat-slave  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
comwechat-slave  | ModuleNotFoundError: No module named 'urllib3.contrib.appengine'
comwechat-slave exited with code 1

我尝试替换了python-telegram-bot的版本,发现又指定了要用13.11,我看docekr镜象最近还有更新过,请问你有遇见同样的问题吗

comwechat启动错误

root@VM-20-2-ubuntu:~/efb-wechat-comwechat-slave# docker logs comwechat
--2023-01-14 14:51:16-- https://github.com/ljc545w/ComWeChatRobot/releases/download/3.7.0.30-0.0.5/3.7.0.30-0.0.5.zip
正在连接 10.0.20.2:7890... 已连接。
已发出 Proxy 请求,正在等待回应... 302 Found
位置:https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/26741169-111b-4e78-94b1-b261215d71a1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230114%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230114T065116Z&X-Amz-Expires=300&X-Amz-Signature=9ee9237083d302468b72f5e15d37dc4379f9754187bfdd0afa71e50732bc3f7d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.0.5.zip&response-content-type=application%2Foctet-stream [跟随至新的 URL]
--2023-01-14 14:51:16-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/26741169-111b-4e78-94b1-b261215d71a1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230114%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230114T065116Z&X-Amz-Expires=300&X-Amz-Signature=9ee9237083d302468b72f5e15d37dc4379f9754187bfdd0afa71e50732bc3f7d&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.0.5.zip&response-content-type=application%2Foctet-stream
正在连接 10.0.20.2:7890... 已连接。
已发出 Proxy 请求,正在等待回应... 200 OK
长度:309756 (302K) [application/octet-stream]
正在保存至: “comwechat.zip”

 0K .......... .......... .......... .......... .......... 16% 1.44M 0s
50K .......... .......... .......... .......... .......... 33% 3.48M 0s

100K .......... .......... .......... .......... .......... 49% 7.39M 0s
150K .......... .......... .......... .......... .......... 66% 8.07M 0s
200K .......... .......... .......... .......... .......... 82% 8.93M 0s
250K .......... .......... .......... .......... .......... 99% 10.8M 0s
300K .. 100% 4.65T=0.07s

2023-01-14 14:51:17 (4.19 MB/s) - 已保存 “comwechat.zip” [309756/309756])

Archive: comwechat.zip
creating: comwechat/http/
inflating: comwechat/http/SWeChatRobot.dll
inflating: comwechat/http/wxDriver.dll
inflating: comwechat/http/wxDriver.lib
inflating: comwechat/http/wxDriver.py
inflating: comwechat/http/wxDriver64.dll
inflating: comwechat/http/wxDriver64.lib
creating: comwechat/com/
inflating: comwechat/com/CWeChatRobot.exe
inflating: comwechat/com/DWeChatRobot.dll
inflating: comwechat/com/wxRobot.py
/usr/bin/xauth: file /root/.Xauthority does not exist

New Xtigervnc server 'localhost.localdomain:5 (root)' on port 5905 for display :5.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd localhost.localdomain:5 to connect to the VNC server.

ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: 没有那个文件或目录
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: 没有那个文件或目录
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: 没有那个文件或目录
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: 没有那个文件或目录
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: 没有那个文件或目录
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: 没有那个文件或目录
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: 没有那个文件或目录
ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: 没有那个文件或目录
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
---All in one 微信 ComRobot 容器---
2023-01-14 14:51:16 启动容器中...
等待 5 秒再 hook
2023-01-14 14:52:43 正在退出容器...
2023-01-14 14:52:43 退出微信...
2023-01-14 14:52:43 退出Hook程序...
2023-01-14 14:52:43 退出VNC...
2023-01-14 14:52:43 感谢使用.

Docker映像会自动退出

docker启动后几秒钟就自动退出,以下是log

--2023-01-05 16:26:28--  https://github.com/ljc545w/ComWeChatRobot/releases/download/3.7.0.30-0.1.0-pre/3.7.0.30-0.1.0-pre.zip
正在解析主机 github.com (github.com)... 192.30.255.113
正在连接 github.com (github.com)|192.30.255.113|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 302 Found
位置:https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/ccafc479-3ef8-400a-ac99-e9c8ca5abfcf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230105T082629Z&X-Amz-Expires=300&X-Amz-Signature=a49f230687351a57070fdad0fd5c9d63cfd3bdd962545382edb5536dfb92952b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.1.0-pre.zip&response-content-type=application%2Foctet-stream [跟随至新的 URL]
--2023-01-05 16:26:29--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/469317973/ccafc479-3ef8-400a-ac99-e9c8ca5abfcf?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230105%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230105T082629Z&X-Amz-Expires=300&X-Amz-Signature=a49f230687351a57070fdad0fd5c9d63cfd3bdd962545382edb5536dfb92952b&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=469317973&response-content-disposition=attachment%3B%20filename%3D3.7.0.30-0.1.0-pre.zip&response-content-type=application%2Foctet-stream
正在解析主机 objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.110.133, 185.199.108.133, 185.199.109.133, ...
正在连接 objects.githubusercontent.com (objects.githubusercontent.com)|185.199.110.133|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:386996 (378K) [application/octet-stream]
正在保存至: “comwechat.zip”
     0K .......... .......... .......... .......... .......... 13%  400K 1s
    50K .......... .......... .......... .......... .......... 26%  144M 0s
   100K .......... .......... .......... .......... .......... 39%  843K 0s
   150K .......... .......... .......... .......... .......... 52%  115M 0s
   200K .......... .......... .......... .......... .......... 66%  846K 0s
   250K .......... .......... .......... .......... .......... 79%  119M 0s
   300K .......... .......... .......... .......... .......... 92%  107M 0s
   350K .......... .......... .......                         100%  475K=0.3s
2023-01-05 16:26:30 (1.22 MB/s) - 已保存 “comwechat.zip” [386996/386996])
Archive:  comwechat.zip
   creating: comwechat/com/
  inflating: comwechat/com/CWeChatRobot.exe  
  inflating: comwechat/com/DWeChatRobot.dll  
  inflating: comwechat/com/wxRobot.py  
   creating: comwechat/http/
  inflating: comwechat/http/SWeChatRobot.dll  
  inflating: comwechat/http/wxDriver.dll  
  inflating: comwechat/http/wxDriver.lib  
  inflating: comwechat/http/wxDriver.py  
  inflating: comwechat/http/wxDriver64.dll  
  inflating: comwechat/http/wxDriver64.lib  
/usr/bin/xauth:  file /root/.Xauthority does not exist
New Xtigervnc server '<MachineName>:5 (root)' on port 5905 for display :5.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd <MachineName>:5 to connect to the VNC server.
---All in one 微信 ComRobot 容器---
2023-01-05 16:26:28 启动容器中...
等待 5 秒再 hook
2023-01-05 16:26:38 感谢使用.

重启若干次后有一次没有退出,但VNC连进去之后是黑屏,鼠标右键有弹出菜单,菜单中的功能都无法使用。

efb-wechat-comwechat-slave install error

Collecting cairocffi
Using cached http://mirrors.cloud.tencent.com/pypi/packages/f4/10/82a8384882b4a7096256ee5c3fba65b6a0be67f08e8de130cd3627edb12f/cairocffi-1.4.0.tar.gz (69 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 0.1.43ubuntu1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/pkg_resources/init.py:116: PkgResourcesDeprecationWarning: 1.1build1 is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3/dist-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
WARNING: The repository located at mirrors.cloud.tencent.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.cloud.tencent.com'.
ERROR: Could not find a version that satisfies the requirement cffi>=1.1.0 (from versions: none)
ERROR: No matching distribution found for cffi>=1.1.0
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/setuptools/installer.py", line 82, in fetch_build_egg
subprocess.check_call(cmd)
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmphre7tb54', '--quiet', 'cffi>=1.1.0']' returned non-zero exit status 1.

  The above exception was the direct cause of the following exception:
  
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 34, in <module>
    File "/tmp/pip-install-s7fi2tgy/cairocffi_21d0486685734b73a451180816d338a3/setup.py", line 10, in <module>
      setup(
    File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 152, in setup
      _install_setup_requires(attrs)
    File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 147, in _install_setup_requires
      dist.fetch_build_eggs(dist.setup_requires)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 812, in fetch_build_eggs
      resolved_dists = pkg_resources.working_set.resolve(
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 771, in resolve
      dist = best[req.key] = env.best_match(
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1056, in best_match
      return self.obtain(req, installer)
    File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1068, in obtain
      return installer(requirement)
    File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 883, in fetch_build_egg
      return fetch_build_egg(self, req)
    File "/usr/lib/python3/dist-packages/setuptools/installer.py", line 84, in fetch_build_egg
      raise DistutilsError(str(e)) from e
  distutils.errors.DistutilsError: Command '['/usr/bin/python3', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmphre7tb54', '--quiet', 'cffi>=1.1.0']' returned non-zero exit status 1.
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Error occurred while getting chats from %. ETM will report no chat from this channel until further noticed.

docker已经启动,已经登陆VNC扫码成功,新版本的弹窗已经关闭
efb所有相关用的都是github的版本
在取消comwechat-slave后打开qq-slave,efb正常运行
单独使用comwechat-slave时,在telegram中使用/chat命令后没有返回任何联系人

docker的log:

   300K .......... .......... .......... .......... .......... 91%  381M 0s
   350K .......... .......... ..........                      100%  355M=0.001s

2023-08-21 16:11:09 (271 MB/s) - 已保存 “comwechat.zip” [390095/390095])

Archive:  comwechat.zip
   creating: comwechat/com/
  inflating: comwechat/com/CWeChatRobot.exe
  inflating: comwechat/com/DWeChatRobot.dll
  inflating: comwechat/com/wxRobot.py
replace comwechat/http/SWeChatRobot.dll? [y]es, [n]o, [A]ll, [N]one, [r]ename:  NULL
(EOF or read error, treating as "[N]one" ...)
/usr/bin/xauth:  file /root/.Xauthority does not exist

New Xtigervnc server 'one.lan:5 (root)' on port 5905 for display :5.
Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd /root/.vnc/passwd one.lan:5 to connect to the VNC server.

ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
dbus[31]: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file ../../../dbus/dbus-connection.c line 3544.
This is normally a bug in some application using the D-Bus library.

  D-Bus not built with -rdynamic so unable to print a backtrace
wine: Assertion failed at address F7F1D579 (thread 0058), starting debugger...
2023-08-21 09:15:39: basic_code_modules.cc:73: ERROR: Module rsaenh.dll could not be stored
2023-08-21 09:15:39: basic_code_modules.cc:73: ERROR: Module api-ms-win-downlevel-shell32-l1 could not be stored
2023-08-21 09:15:39: basic_code_modules.cc:73: ERROR: Module api-ms-win-downlevel-shell32-l1 could not be stored
2023-08-21 09:15:39: basic_code_modules.cc:73: ERROR: Module rsaenh.dll could not be stored
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave

DevTools listening on ws://127.0.0.1:10250/devtools/browser/54e7af05-74b2-4010-8712-756bfd63e463
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave

DevTools listening on ws://127.0.0.1:10250/devtools/browser/5f976cb3-9645-48bf-93f9-5bbe049ee057
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete
MESA-INTEL: warning: Haswell Vulkan support is incomplete

efb的log:

Started EH Forwarder Bot Service.
2023-08-21 16:35:50,235 - __main__ - Level 99 -  Initializing slave honus.comwechat...
2023-08-21 16:35:50,235 [Level 99]: __main__ (__main__.init; __main__.py:129)
     Initializing slave honus.comwechat...
2023-08-21 16:35:50,237 - comwechat - INFO - ComWeChat Slave Channel initialized.
2023-08-21 16:35:50,237 - comwechat - INFO - Version: 1.0.5
2023-08-21 16:35:50,241 - __main__ - Level 99 -  Slave channel ComWechatChannel (honus.comwechat) # Default profile is initialized.
2023-08-21 16:35:50,241 [Level 99]: __main__ (__main__.init; __main__.py:137)
     Slave channel ComWechatChannel (honus.comwechat) # Default profile is initialized.
2023-08-21 16:35:50,241 - __main__ - Level 99 -  Initializing master blueset.telegram...
2023-08-21 16:35:50,241 [Level 99]: __main__ (__main__.init; __main__.py:142)
     Initializing master blueset.telegram...
--- Logging error ---
Traceback (most recent call last):
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/chat_object_cache.py", line 38, in __init__
    chats = module.get_chats()
            ^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 458, in get_chats
    self.GetContactListBySql()
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 677, in GetContactListBySql
    contacts = self.bot.GetContactListBySql()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/wechatrobot/Api.py", line 166, in GetContactListBySql
    ContactList = self.QueryDatabase(db_handle=self.GetDBHandle(), sql=sql)["data"]
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/wechatrobot/Api.py", line 115, in QueryDatabase
    return self.post(WECHAT_DATABASE_QUERY , QueryDatabaseBody(**params))
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/pydantic/main.py", line 159, in __init__
    __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for QueryDatabaseBody
db_handle
  Input should be a valid string [type=string_type, input_value=167412216, input_type=int]
    For further information visit https://errors.pydantic.dev/2.2/v/string_type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 1110, in emit
    msg = self.format(record)
          ^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 953, in format
    return fmt.format(record)
           ^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 687, in format
    record.message = record.getMessage()
                     ^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 377, in getMessage
    msg = msg % self.args
          ~~~~^~~~~~~~~~~
ValueError: unsupported format character ' ' (0x20) at index 42
Call stack:
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 347, in <module>
    main()
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 335, in main
    init(conf)
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 147, in init
    coordinator.add_channel(module(instance_id=instance_id))
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/__init__.py", line 125, in __init__
    self.chat_manager: ChatObjectCacheManager = ChatObjectCacheManager(self)
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/chat_object_cache.py", line 40, in __init__
    self.logger.exception("Error occurred while getting chats from %. "
Message: 'Error occurred while getting chats from %. ETM will report no chat from this channel until further noticed.'
Arguments: ('honus.comwechat',)
--- Logging error ---
Traceback (most recent call last):
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/chat_object_cache.py", line 38, in __init__
    chats = module.get_chats()
            ^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 458, in get_chats
    self.GetContactListBySql()
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_wechat_comwechat_slave/ComWechat.py", line 677, in GetContactListBySql
    contacts = self.bot.GetContactListBySql()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/wechatrobot/Api.py", line 166, in GetContactListBySql
    ContactList = self.QueryDatabase(db_handle=self.GetDBHandle(), sql=sql)["data"]
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/wechatrobot/Api.py", line 115, in QueryDatabase
    return self.post(WECHAT_DATABASE_QUERY , QueryDatabaseBody(**params))
                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/pydantic/main.py", line 159, in __init__
    __pydantic_self__.__pydantic_validator__.validate_python(data, self_instance=__pydantic_self__)
pydantic_core._pydantic_core.ValidationError: 1 validation error for QueryDatabaseBody
db_handle
  Input should be a valid string [type=string_type, input_value=167412216, input_type=int]
    For further information visit https://errors.pydantic.dev/2.2/v/string_type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 1110, in emit
    msg = self.format(record)
          ^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 953, in format
    return fmt.format(record)
           ^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 687, in format
    record.message = record.getMessage()
                     ^^^^^^^^^^^^^^^^^^^
  File "/root/.pyenv/versions/3.11.1/lib/python3.11/logging/__init__.py", line 377, in getMessage
    msg = msg % self.args
          ~~~~^~~~~~~~~~~
ValueError: unsupported format character ' ' (0x20) at index 42
Call stack:
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 347, in <module>
    main()
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 335, in main
    init(conf)
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/ehforwarderbot/__main__.py", line 147, in init
    coordinator.add_channel(module(instance_id=instance_id))
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/__init__.py", line 125, in __init__
    self.chat_manager: ChatObjectCacheManager = ChatObjectCacheManager(self)
  File "/root/.pyenv/versions/efb/lib/python3.11/site-packages/efb_telegram_master/chat_object_cache.py", line 40, in __init__
    self.logger.exception("Error occurred while getting chats from %. "
Message: 'Error occurred while getting chats from %. ETM will report no chat from this channel until further noticed.'
Arguments: ('honus.comwechat',)
2023-08-21 16:35:50,916 - __main__ - Level 99 -  Master channel Telegram Master (blueset.telegram) # Default profile is initialized.
2023-08-21 16:35:50,916 [Level 99]: __main__ (__main__.init; __main__.py:149)
     Master channel Telegram Master (blueset.telegram) # Default profile is initialized.
2023-08-21 16:35:50,916 - __main__ - Level 99 -  All channels initialized.
2023-08-21 16:35:50,916 [Level 99]: __main__ (__main__.init; __main__.py:155)
     All channels initialized.
2023-08-21 16:35:50,916 - __main__ - Level 99 -  All middlewares are initialized.
2023-08-21 16:35:50,916 [Level 99]: __main__ (__main__.init; __main__.py:169)
     All middlewares are initialized.
2023-08-21 16:35:50,916 - apscheduler.scheduler - INFO - Scheduler started

[Feature ask] 在群聊显示非好友用户名

首先感谢作者发布这么好用的产品。

现在碰到的一个问题是如果把群聊绑定到tg的一个group,非好友发消息是会显示wxid,希望能显示非好友的姓名,这样体验会好一点。否则需要切到微信看到底是谁发的消息。

Debug log如下,的确里面只有wxid没有用户名。
comwechat - DEBUG - group_msg:{'extrainfo': '\n\t\n\t\n\t\t5\n\t\t15,15\n\t\n\t1\n\t315\n\tv1_XtkShUpr\n\n', 'filepath': '', 'isSendMsg': 0, 'message': '', 'msgid': 6276896509010873515, 'pid': 32, 'self': 'a31065312', 'sender': '384181767@chatroom', 'sign': 'cbad05b9dbe138f795225b0ab24c035a', 'thumb_path': '', 'time': '2023-02-16 05:11:52', 'timestamp': 1676524312, 'type': 'text', 'wxid': 'wxid_'}

同一时间收到过多消息,会丢弃一部分连接,丢失一些消息

当收到别人逐一转发超过10条消息的,会只能成功转发10条消息,其余的将会丢失.

日志如下

RetryAfter()
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 121, in send_message
self.dispatch_message(msg, msg_template, old_msg_id, tg_dest, silent)
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 172, in dispatch_message
tg_msg = self.slave_message_text(msg, tg_dest, msg_template, reactions, old_msg_id, target_msg_id,
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/slave_message.py", line 327, in slave_message_text
tg_msg = self.bot.send_message(tg_dest,
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 130, in retry_on_chat_migration_wrap
return fn(self, *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 231, in send_message
return self._bot_send_message_fallback(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/efb_telegram_master/bot_manager.py", line 283, in _bot_send_message_fallback
return self.updater.bot.send_message(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 134, in decorator
result = func(*args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 534, in send_message
return self._message( # type: ignore[return-value]
File "/usr/local/lib/python3.9/dist-packages/telegram/ext/extbot.py", line 203, in _message
result = super()._message(
File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 344, in _message
result = self._post(endpoint, data, timeout=timeout, api_kwargs=api_kwargs)
File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 299, in _post
return self.request.post(
File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 361, in post
result = self._request_wrapper(
File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 272, in _request_wrapper
message = str(self._parse(resp.data))
File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 230, in _parse
raise RetryAfter(retry_after)
telegram.error.RetryAfter: Flood control exceeded. Retry in 5.0 seconds
2023-08-06 05:47:10,751 - telegram.vendor.ptb_urllib3.urllib3.connectionpool - WARNING - Connection pool is full, discarding connection: api.telegram.org

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.