Patches to enhance EFB functionality
Main Function
- Telegram administrator can send messages
- Automatically mark read on WeChat (received messages on telegram will mark read)
- In a group, only one note is displayed when the note has the same name (or one is included by the other)
/update_info command adds WeChat group member information to telegram group description(supported)- 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)
- Delete unnecessary messages when receiving pictures, videos, files, for example: sent a picture. [1]
- Applet sharing adds "Applet:" title prefix to distinguish regular links
- Use
rm`to reply to the message sent by yourself (telegram message cannot be edited )
compatible version
EFB 2.1.0
ETM 2.2.4
EWS 2.0.4
Usage
The /update_info command will bind the current group to the WeChat chat one-to-one correspondence
The /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
The /release_group command will delete all WeChat sessions bound to the telegram group
Add 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)
tg_mp: -12334557 # telegram group id
Config
file path ~/.ehforwarderbot/profiles/default/patch.PatchMiddleware/config.yaml
auto_mark_as_read: True # auto mark as read in wechat phone client
remove_emoji_in_title: True # wouldn't remove emoji in telegram group title if this is set False
strikethrough_recall_msg: True # strikethrough instead of replying to a recall message
Installation
pip3 install efb-patch-middleware
~/.ehforwarderbot/profiles/default/config.yaml file add to configuration enable middleware
master_channel: blueset.telegram
slave_channels:
- blueset.wechat
middlewares:
- patch.PatchMiddleware
Data Backup
Data is saved under .ehforwarderbot/profiles/default/patch.PatchMiddleware/tg_group.db
Difference between /update_info and /relate_group
/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
/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
[1]: Forward picture-type messages received by WeChat end usually with author name, remove picture title when forwarding such messages
Metadata
Release files for efb-patch-middleware-itchat-uos 2.0.24
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| efb-patch-middleware-itchat-uos-2.0.24.tar.gz | 35.6 kB | Without provenance | Details for efb-patch-middleware-itchat-uos-2.0.24.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| efb_patch_middleware_itchat_uos-2.0.24-py3-none-any.whl | Python 3 | none | any | Details for efb_patch_middleware_itchat_uos-2.0.24-py3-none-any.whl |
Total release size: 69.9 kB
Release files / efb-patch-middleware-itchat-uos-2.0.24.tar.gz
| Download URL | efb-patch-middleware-itchat-uos-2.0.24.tar.gz |
|---|---|
| Size | 35.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3af8ad5ae4c866739697186aab17d3f859cbb50694dab8ef43edd9777381de5d
|
|
BLAKE2b-256 checksum How to use checksums |
709e3326d38a6c666ec47965cf7bc2c47cfcd76f85225e219f9fe5ba4e1286e2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Release files / efb_patch_middleware_itchat_uos-2.0.24-py3-none-any.whl
| Download URL | efb_patch_middleware_itchat_uos-2.0.24-py3-none-any.whl |
|---|---|
| Size | 34.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bbbad52e3a87caebdd4759fd9a3f3b17f6935db40c3388bc96f9b983b9e729f0
|
|
BLAKE2b-256 checksum How to use checksums |
169f3ff0ba031965e0134e05425c2d449dbd9042e2b667e53d0e0de26e33ba3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.7
|
Security for efb-patch-middleware-itchat-uos 2.0.24
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.