matrix_stickers_manager
Project description
matrix_stickers_manager
"Its solution for massive upload your stickers into Matrix."
This code using MSC2545 aka native stickers. Cinny and FluffyChat support this specs already.
Config
Just copy example.config.yaml
to config.yaml
and write your values.
Required room admin token. For protection images also user must be server admin.
Example usage
from matrix_stickers_manager import MatrixStickersManager
manager = MatrixStickersManager()
# Upload multiple images to sticker pack
manager.load_pack_from_folder(
pack_name='My Funny Sticker Pack',
folder_path='stickers/',
room_id='!ahkeeyahPhexohtooh:matrix.your.server',
protect_media=True,
number_as_shortcode=False
)
# Download images from pack
manager.export_pack(
pack_name='My Funny Sticker Pack',
export_folder='stickers/',
room_id='!ahkeeyahPhexohtooh:matrix.your.server',
original_name=True
)
# Delete pack
manager.delete_pack(
pack_name='My Funny Sticker Pack',
room_id='!ahkeeyahPhexohtooh:matrix.your.server',
)
stickers
├── 1.png
├── 2.png
├── 3.png
├── 4.png
Protection media
"Protection works only in Synapse Server API."
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file matrix_stickers_manager-0.4.tar.gz
.
File metadata
- Download URL: matrix_stickers_manager-0.4.tar.gz
- Upload date:
- Size: 71.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01f1064aec50bf87e376d1b923d56a8dfb78b736c8a0b86ea4dc23b7d4f7747c |
|
MD5 | 427be952be5239c1849007557b74a31f |
|
BLAKE2b-256 | ac06edda7ef2b490ccd82749d93f24f75d6eaef19ac72249ec0c4ff252e30375 |
File details
Details for the file matrix_stickers_manager-0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: matrix_stickers_manager-0.4-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71387a162b83ba38179e161efbf0c1d63b7a15123f92cdee0b9fc20d5447593b |
|
MD5 | fef61b96d7f8d8d16afd679b64e3db1a |
|
BLAKE2b-256 | 70cb0122335dffc40898be36d8a755a50c610e2ddfd523d5e9432ca346ac2cc1 |