Skip to content

Instantly share code, notes, and snippets.

@hrj
Created January 21, 2020 08:46
Show Gist options
  • Save hrj/f851e5e395349364441ac8989bda2785 to your computer and use it in GitHub Desktop.
Save hrj/f851e5e395349364441ac8989bda2785 to your computer and use it in GitHub Desktop.
matrix test script
from matrix_client.api import MatrixHttpApi
matrix = MatrixHttpApi("http://localhost:8888")
room = matrix.create_room(alias="!abc")
event1 = matrix.send_message("!abc", "hello")
event2 = matrix.send_message("!abc","world")
all_event = matrix.get_room_messages("!abc","cv","f")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment