master
DustyP 6 years ago
parent cc510c3b38
commit 353990a621

@ -173,3 +173,11 @@ class Client:
content['formatted_body'] = formatted_body content['formatted_body'] = formatted_body
await self.send_room_message(room=room, content=content) await self.send_room_message(room=room, content=content)
# TODO send_emote
# TODO send_notice
# TODO send_image
# TODO send_file
# TODO send_audio
# TODO send_location
# TODO send_video

@ -93,5 +93,13 @@ class Room:
async def send_text(self, body: str, formatted_body: str = None, format_type: str = 'org.matrix.custom.html'): async def send_text(self, body: str, formatted_body: str = None, format_type: str = 'org.matrix.custom.html'):
await self.client.send_text(self, body, formatted_body, format_type) await self.client.send_text(self, body, formatted_body, format_type)
# TODO send_emote
# TODO send_notice
# TODO send_image
# TODO send_file
# TODO send_audio
# TODO send_location
# TODO send_video
def __eq__(self, other): def __eq__(self, other):
return other.__class__ == self.__class__ and other.id == self.id return other.__class__ == self.__class__ and other.id == self.id

Loading…
Cancel
Save