Update to texts sending to rooms

This commit is contained in:
Dawid Rejowski 2022-09-13 03:34:39 +02:00
parent 1b10650b71
commit e875da34f6
2 changed files with 3 additions and 3 deletions

View file

@ -46,8 +46,8 @@ class Command:
switch = { switch = {
MatrixReuploader.STATUS_DOWNLOADING: f'Downloading stickerpack {pack_name}...', MatrixReuploader.STATUS_DOWNLOADING: f'Downloading stickerpack {pack_name}...',
MatrixReuploader.STATUS_UPLOADING: f'Uploading stickerpack {pack_name}...', MatrixReuploader.STATUS_UPLOADING: f'Uploading stickerpack {pack_name}...',
MatrixReuploader.STATUS_UPDATING_ROOM_STATE: f'Uploading stickerpack {pack_name}...', MatrixReuploader.STATUS_UPDATING_ROOM_STATE: f'Updating room state...',
MatrixReuploader.STATUS_OK: 'Done 😄', MatrixReuploader.STATUS_OK: 'Done',
MatrixReuploader.STATUS_NO_PERMISSION: ( MatrixReuploader.STATUS_NO_PERMISSION: (
'I do not have permissions to create any stickerpack in this room\n' 'I do not have permissions to create any stickerpack in this room\n'
'Please, give me mod 🙏' 'Please, give me mod 🙏'

View file

@ -11,7 +11,7 @@ from sticker_types import MatrixStickerset
async def send_text_to_room(client: AsyncClient, room_id: str, message: str): async def send_text_to_room(client: AsyncClient, room_id: str, message: str):
content = { content = {
"msgtype": "m.text", "msgtype": "m.notice",
"body": message, "body": message,
} }
return await client.room_send( return await client.room_send(