Remove unnecessary code

This commit is contained in:
Alex Kotov 2023-01-14 21:25:34 +04:00
parent 467d40d026
commit 24866a1157
No known key found for this signature in database
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 0 additions and 11 deletions

View File

@ -21,14 +21,3 @@ class Matrix:
async def on_message(self, room, event):
print(room, event, file=sys.stderr)
def upgrade_room(self, room, telegram_nickname):
event_dict = nio.event_builders.event_builder.EventBuilder(
name=telegram_nickname
).as_dict()
client.room_send(
room_id=room,
message_type=event_dict["type"],
content=event_dict["content"],
) # предположу что оно так работает
# https://matrix-nio.readthedocs.io/en/latest/nio.html#module-nio.event_builders.state_events