Closed navneethnarendra closed 5 years ago
Can you try running with debug information enabled, and then giving some of that output? (make sure to remove all personal data)
# -*- coding: utf-8 -*-
from fbchat import Client
from fbchat.models import *
import logging
logging.basicConfig(level=logging.DEBUG)
client = Client(<id>, <pwd>, logging_level=logging.DEBUG)
client.send(Message(<text>), thread_id=<groupId>, thread_type=ThreadType.GROUP)
client.logout()
And is it possible for you to try running on another python version (e.g. Python 3.7)?
it worked by swapping to ThreadType.PAGE Thanks though for your quick response @madsmtm
Description of the problem
cannot send messages to valid groups or pages
Code to reproduce
running the script as below
Example code
Traceback
Environment information
fbchat
version fbchat 1.4.1$ python -m pip list