Refactor message sending

This commit is contained in:
Mads Marquart
2020-01-09 16:15:52 +01:00
parent 6d6f779d26
commit a1b3fd3ffa
8 changed files with 131 additions and 181 deletions

View File

@@ -10,7 +10,7 @@ class EchoBot(fbchat.Client):
# If you're not the author, echo
if author_id != self.session.user_id:
thread.send(message_object)
thread.send_text(message_object.text)
session = fbchat.Session.login("<email>", "<password>")