Removed deprecations Removed new event system Added documentation for all events Added FAQ Changed Client.uid to Client.id Improved User model Prepared for support of pages
13 lines
255 B
Python
13 lines
255 B
Python
# -*- coding: UTF-8 -*-
|
|
|
|
from fbchat import Client
|
|
from fbchat.models import *
|
|
|
|
client = Client('<email>', '<password>')
|
|
|
|
print('Own id: {}'.format(client.id))
|
|
|
|
client.sendMessage('Hi me!', thread_id=self.id, thread_type=ThreadType.USER)
|
|
|
|
client.logout()
|