{"id":19944960,"url":"https://github.com/ehforwarderbot/efb-patch-middleware","last_synced_at":"2025-05-03T16:31:46.761Z","repository":{"id":57425829,"uuid":"230692088","full_name":"ehForwarderBot/efb-patch-middleware","owner":"ehForwarderBot","description":"Patches to enhance EFB functionality","archived":false,"fork":false,"pushed_at":"2022-05-26T10:52:52.000Z","size":114,"stargazers_count":6,"open_issues_count":4,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T09:35:31.419Z","etag":null,"topics":["efb-middleware","eh-forwarder-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ehForwarderBot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"xxooxx","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-12-29T02:19:47.000Z","updated_at":"2023-08-24T01:19:31.000Z","dependencies_parsed_at":"2022-09-11T14:01:54.636Z","dependency_job_id":null,"html_url":"https://github.com/ehForwarderBot/efb-patch-middleware","commit_stats":null,"previous_names":["efb-middleware/patch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-patch-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-patch-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-patch-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ehForwarderBot%2Fefb-patch-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ehForwarderBot","download_url":"https://codeload.github.com/ehForwarderBot/efb-patch-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252216091,"owners_count":21713098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["efb-middleware","eh-forwarder-bot"],"created_at":"2024-11-13T00:23:37.112Z","updated_at":"2025-05-03T16:31:46.472Z","avatar_url":"https://github.com/ehForwarderBot.png","language":"Python","readme":"Patches to enhance EFB functionality\n==========================\n[![PyPI release](https://img.shields.io/pypi/v/efb-patch-middleware.svg)](https://pypi.org/project/efb-patch-middleware/)\n[![Downloads](https://pepy.tech/badge/efb-patch-middleware/month)](https://pypi.org/project/efb-patch-middleware/)\n\n### Main Function\n\n- Telegram administrator can send messages\n- Automatically mark read on WeChat (**received messages on telegram** will mark read)\n- In a group, only one note is displayed when the note has the same name (or one is included by the other)\n- ~~/update_info command adds WeChat group member information to telegram group description~~ (supported)\n- Establish a database to save the tg group and WeChat chat/group name mapping. When there is no binding, try to find a group with the same name and automatically bind (two-way)\n- Delete unnecessary messages when receiving pictures, videos, files, for example: sent a picture. \u003csup\u003e[1]\u003c/sup\u003e\n- Applet sharing adds \"Applet:\" title prefix to distinguish regular links\n- Use \u003ccode\u003erm`\u003c/code\u003e to reply to the message sent by yourself (telegram message cannot be edited )\n\n### compatible version\n\n```text\nEFB 2.1.0\nETM 2.2.4\nEWS 2.0.4\n```\n\n### Usage\n\nThe `/update_info` command will bind the current group to the WeChat chat one-to-one correspondence  \nThe `/relate_group` command binds the WeChat group to the current telegram group, and can be associated with multiple WeChat chats; repeated use will clear the previous binding relationship  \nThe `/release_group` command will delete all WeChat sessions bound to the telegram group  \n\nAdd the following configuration under `blueset.telegram/config.yaml`, and send the public account message to the `-12334557` group (view the id through the `/info` command)\n\n```yaml\ntg_mp: -12334557 # telegram group id\n```\n\n### Config\n\nfile path `~/.ehforwarderbot/profiles/default/patch.PatchMiddleware/config.yaml`  \n\n```yaml\nauto_mark_as_read: True # auto mark as read in wechat phone client\nremove_emoji_in_title: True # wouldn't remove emoji in telegram group title if this is set False\nstrikethrough_recall_msg: True # strikethrough instead of replying to a recall message\n```\n\n### Installation\n\n```bash\npip3 install efb-patch-middleware\n```\n\n`~/.ehforwarderbot/profiles/default/config.yaml` file add to configuration enable middleware\n\n```yaml\nmaster_channel: blueset.telegram\nslave_channels:\n- blueset.wechat\nmiddlewares:\n- patch.PatchMiddleware\n```\n\n### Data Backup\n\nData is saved under `.ehforwarderbot/profiles/default/patch.PatchMiddleware/tg_group.db`\n\n### Difference between `/update_info` and `/relate_group`  \n\n`/update_info` is the original command of efb, which will update the WeChat session avatar and name to the tg group, and only supports binding a WeChat session. Now this command has been extended to synchronize the WeChat session name with the tg group ID. Binding one-to-one correspondence. After the link fails, replace the original failed link with the latest one\n\n`/relate_group` is a new command for middleware. The application scenario is that tg group is used when binding multiple WeChat sessions. (Usually when multiple public accounts are bound to a tg group.) **A message needs to be answered when used**\n\n\u003e [1]: Forward picture-type messages received by WeChat end usually with author name, remove picture title when forwarding such messages\n","funding_links":["https://ko-fi.com/xxooxx"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehforwarderbot%2Fefb-patch-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fehforwarderbot%2Fefb-patch-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fehforwarderbot%2Fefb-patch-middleware/lists"}