Comments (5)
So after running sudo pip install configparser
and sudo pip install pathlib
, I get this:
ImportError: No module named fbchat.models
from chatplug.
Now I've run pip install fbchat
, and now when running python main.py
I get this:
ImportError: No module named pyrogram.api
from chatplug.
So I finally get the script running! Yay! :- )
Now I just have to deal with this:
Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/fbchat/client.py", line 1542, in _parseMessage thread_id=thread_id, thread_type=thread_type, ts=ts, metadata=metadata, msg=m) File "/home/hammyhavoc/ChatPlug/facegram/fbclienthandler.py", line 9, in onMessage self.bridge.facebookMessageHandler(author_id, message_object, thread_id, thread_type) File "/home/hammyhavoc/ChatPlug/facegram/bridge.py", line 29, in facebookMessageHandler thread = self.networkClient.createConversation(thread_id) File "/home/hammyhavoc/ChatPlug/facegram/networkclient.py", line 49, in createConversation title=thread.name File "/home/hammyhavoc/.local/lib/python3.6/site-packages/pyrogram/client/client.py", line 865, in send r = self.session.send(data, retries, timeout) File "/home/hammyhavoc/.local/lib/python3.6/site-packages/pyrogram/session/session.py", line 413, in send return self._send(data, timeout=timeout) File "/home/hammyhavoc/.local/lib/python3.6/site-packages/pyrogram/session/session.py", line 400, in _send Error.raise_it(result, type(data)) File "/home/hammyhavoc/.local/lib/python3.6/site-packages/pyrogram/api/errors/error.py", line 71, in raise_it )(x=x) pyrogram.api.errors.exceptions.bad_request_400.UsersTooFew: [400 USERS_TOO_FEW]: Not enough users (to create a chat, for example)
I get this when a message is received.
from chatplug.
I try a manual import and get this error:
Traceback (most recent call last): File "/home/hammyhavoc/.local/lib/python3.6/site-packages/pyrogram/client/dispatcher/dispatcher.py", line 174, in update_worker else None) File "/home/hammyhavoc/.local/lib/python3.6/site-packages/pyrogram/client/dispatcher/dispatcher.py", line 128, in dispatch handler.callback(*args) File "/home/hammyhavoc/ChatPlug/facegram/commands_handler.py", line 33, in handleImport client.send_message("Exception occured while importing data") TypeError: send_message() missing 1 required positional argument: 'text'
from chatplug.
Finally figured it out; the username in the config.ini refers to the user that you want to receive the messages on, not the user with the API credentials; could do with being spaced out accordingly or reworded in the config.ini to be less confusing.
from chatplug.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatplug.