Removed deprecations and new event system, improved other things
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
This commit is contained in:
12
examples/basic_usage.py
Normal file
12
examples/basic_usage.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# -*- 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()
|
Reference in New Issue
Block a user