mirror of
https://github.com/wah-su/stickerbridge.git
synced 2025-04-05 15:54:41 +00:00
Update to texts sending to rooms
This commit is contained in:
parent
1b10650b71
commit
e875da34f6
2 changed files with 3 additions and 3 deletions
|
@ -46,8 +46,8 @@ class Command:
|
|||
switch = {
|
||||
MatrixReuploader.STATUS_DOWNLOADING: f'Downloading stickerpack {pack_name}...',
|
||||
MatrixReuploader.STATUS_UPLOADING: f'Uploading stickerpack {pack_name}...',
|
||||
MatrixReuploader.STATUS_UPDATING_ROOM_STATE: f'Uploading stickerpack {pack_name}...',
|
||||
MatrixReuploader.STATUS_OK: 'Done 😄',
|
||||
MatrixReuploader.STATUS_UPDATING_ROOM_STATE: f'Updating room state...',
|
||||
MatrixReuploader.STATUS_OK: 'Done',
|
||||
MatrixReuploader.STATUS_NO_PERMISSION: (
|
||||
'I do not have permissions to create any stickerpack in this room\n'
|
||||
'Please, give me mod 🙏'
|
||||
|
|
|
@ -11,7 +11,7 @@ from sticker_types import MatrixStickerset
|
|||
|
||||
async def send_text_to_room(client: AsyncClient, room_id: str, message: str):
|
||||
content = {
|
||||
"msgtype": "m.text",
|
||||
"msgtype": "m.notice",
|
||||
"body": message,
|
||||
}
|
||||
return await client.room_send(
|
||||
|
|
Loading…
Add table
Reference in a new issue