Add option for non-native replies. Fixes #42

This commit is contained in:
Tulir Asokan
2018-02-08 15:02:31 +02:00
parent fb90605557
commit 9eff63c220
4 changed files with 41 additions and 16 deletions
+4
View File
@@ -275,6 +275,10 @@ class IntentAPI:
events.remove(event_id)
self.set_pinned_messages(room_id, events)
def get_event(self, room_id, event_id):
self.ensure_joined(room_id)
return self.client._send("GET", f"/rooms/{room_id}/event/{event_id}")
def set_typing(self, room_id, is_typing=True, timeout=5000):
self.ensure_joined(room_id)
return self.client.set_typing(room_id, is_typing, timeout)