Esempio n. 1
0
 def send_mark_seen(self, recipient_id):
     """Send a message through this channel."""
     print('send mark')
     mark_seen = SenderAction(sender_action='mark_seen')
     self.messenger_client.send_action(mark_seen.to_dict(),
                                       {"sender": {
                                           "id": recipient_id
                                       }})
Esempio n. 2
0
 def test_mark_seen(self):
     res = SenderAction(sender_action='mark_seen')
     expected = 'mark_seen'
     assert expected == res.to_dict()
 def test_mark_seen(self):
     res = SenderAction(sender_action='mark_seen')
     expected = 'mark_seen'
     assert expected == res.to_dict()
Esempio n. 4
0
 def test_typing_off(self):
     res = SenderAction(sender_action='typing_off')
     expected = 'typing_off'
     assert expected == res.to_dict()
 def test_typing_off(self):
     res = SenderAction(sender_action='typing_off')
     expected = 'typing_off'
     assert expected == res.to_dict()