2023-04-25 11:25:53 +00:00
|
|
|
from nio import (
|
|
|
|
RoomMessageText,
|
|
|
|
MegolmEvent,
|
|
|
|
InviteEvent,
|
|
|
|
Event,
|
|
|
|
SyncResponse,
|
|
|
|
JoinResponse,
|
|
|
|
InviteEvent,
|
|
|
|
OlmEvent,
|
2023-05-01 15:04:01 +00:00
|
|
|
MegolmEvent,
|
2023-05-01 15:49:26 +00:00
|
|
|
RoomMemberEvent,
|
2023-04-25 11:25:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
from .test import test_callback
|
|
|
|
from .sync import sync_callback
|
|
|
|
from .invite import room_invite_callback
|
|
|
|
from .join import join_callback
|
|
|
|
from .message import message_callback
|
2023-05-01 15:49:26 +00:00
|
|
|
from .roommember import roommember_callback
|
2023-04-25 11:25:53 +00:00
|
|
|
|
|
|
|
RESPONSE_CALLBACKS = {
|
|
|
|
SyncResponse: sync_callback,
|
|
|
|
JoinResponse: join_callback,
|
|
|
|
}
|
|
|
|
|
|
|
|
EVENT_CALLBACKS = {
|
|
|
|
Event: test_callback,
|
|
|
|
InviteEvent: room_invite_callback,
|
|
|
|
RoomMessageText: message_callback,
|
|
|
|
MegolmEvent: message_callback,
|
2023-05-01 15:49:26 +00:00
|
|
|
RoomMemberEvent: roommember_callback,
|
2023-04-25 11:25:53 +00:00
|
|
|
}
|