Giter Club home page Giter Club logo

Comments (5)

HammyHavoc avatar HammyHavoc commented on June 8, 2024

So after running sudo pip install configparser and sudo pip install pathlib, I get this:

ImportError: No module named fbchat.models

from chatplug.

HammyHavoc avatar HammyHavoc commented on June 8, 2024

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.

HammyHavoc avatar HammyHavoc commented on June 8, 2024

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.

HammyHavoc avatar HammyHavoc commented on June 8, 2024

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.

HammyHavoc avatar HammyHavoc commented on June 8, 2024

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 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.