Skip to content

Instantly share code, notes, and snippets.

@VictorNine
VictorNine / fbMatter.py
Created February 7, 2019 20:22
facebook module for matterbridge
import json
import requests
from fbchat import log, Client
# Subclass fbchat.Client and override required methods
class FBListener(Client):
def onMessage(self, author_id, message_object, thread_id, thread_type, **kwargs):
self.markAsDelivered(thread_id, message_object.uid)
self.markAsRead(thread_id)

Keybase proof

I hereby claim:

  • I am victornine on github.
  • I am victor9 (https://keybase.io/victor9) on keybase.
  • I have a public key ASDth-uJKgTj3hE3-ODcg39bnLNU11mJryqYym2j1zWVgwo

To claim this, I am signing this object: