- Deprecated `sendMessage` and `sendEmoji` in favor of `send` - (Almost) Fully integrated attachment support - Updated tests - General cleanup
13 lines
266 B
Python
13 lines
266 B
Python
# -*- coding: UTF-8 -*-
|
|
|
|
from fbchat import Client
|
|
from fbchat.models import *
|
|
|
|
client = Client('<email>', '<password>')
|
|
|
|
print('Own id: {}'.format(client.uid))
|
|
|
|
client.send(Message(text='Hi me!'), thread_id=client.uid, thread_type=ThreadType.USER)
|
|
|
|
client.logout()
|