Created
January 21, 2020 08:46
-
-
Save hrj/f851e5e395349364441ac8989bda2785 to your computer and use it in GitHub Desktop.
matrix test script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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