Facebook Messenger Slave Channel for EH Forwarder Bot, based on ``fbchat``.
Project description
Channel ID: blueset.fbmessenger
EFMS is a channel that connects to Facebook Messenger for EH Forwarder Bot, based on simulation of Facebook Messenger Web, and fbchat.
Beta version
This is an unstable beta version, and its functionality may change at any time.
Requirements
Python >= 3.6
EH Forwarder Bot >= 2.0.0
Getting started
Install required binary dependencies
Install
pip3 install efb-fb-messenger-slave
Enable the channel in the profile’s config.yaml.
The path to the current profile may vary depends on your configuration.
(In EFB 2.0.0a1, the default profile path is ~/.ehforwarderbot/profiles/default )
Sign in
$ efms-auth
And follow the instructions.
Known issues
Messages from threads in MARKETPLACE type (i.e. messages from interested buyers on Facebook Marketplace) cannot be processed.
Live location cannot be updated properly.
Poll messages, reminders and events are not yet supported.
Voice calls are not planned to be supported.
Optional configuration file
EFMS allows user to enable or disable experimental features with the configuration file. It is located at <Path to current profile>/blueset.fbmessenger/config.yaml.
Example
# Experimental flags
# This section can be used to enable experimental functionality.
# However, those features may be changed or removed at any time.
# Options in this section is explained afterward.
flags:
option_one: 10
option_two: false
option_three: "foobar"
Tips and tricks
To send large emoji, send the emoji as text following by S, M, or L as small, medium and large emoji accordingly. For example, to send a large smile emoji, send 😆L.
Experimental flags
The following flags are experimental features, may change, break, or disappear at any time. Use at your own risk.
proxy_links_by_facebook (bool) [Default: false]
Deliver links (including links in share entities and thumbnails) using Facebook’s proxy. Disable this option to show the source directly.
send_link_with_description (bool) [Default: false]
When processing link message from the Master Channel, attach the title and description besides the link when the option is enabled.
show_pending_threads (bool) [Default: false]
When showing the threads list, include threads pending approval.
show_archived_threads (bool) [Default: false]
When showing the threads list, include archived threads.
Vendor-specifics
EFMS’s chats provides the following vendor specific options:
'chat_type' (str): Type of the thread: 'User', 'Page', or 'Group'.
'profile_picture_url' (str): URL to the thread’s profile picture.
Translations support
EFMS supports translated user interface prompts experimentally, by setting the locale environmental variable (LANGUAGE, LC_ALL, LC_MESSAGES or LANG) to one of our supported languages. Meanwhile, you can help to translate this project into your languages on our Crowdin page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for efb-fb-messenger-slave-2.0.0b12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc89116d2079873d7b245250929c40796c0c77070d5ed5f620844b7485f9673f |
|
MD5 | dc1e173ce8335ba9c2da012e7b97582a |
|
BLAKE2b-256 | 933f6cc0b0345bf056c3f5ee36c9fa8c4987080e1db7539f3fc434c687358c2a |
Hashes for efb_fb_messenger_slave-2.0.0b12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02f5e2a4b054d0f662167082e66c64ae04f4c437c2bd7e285ab44b7cd5dd15c8 |
|
MD5 | 090ae27382c90ce04ec753e756d4f44b |
|
BLAKE2b-256 | 633f6543eec42428c9a71bf2b79dd75d10fb6c70710329281fd0f941989bc356 |