Skip to main content

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

This version

0.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrix_stickers_manager-0.4.tar.gz (71.7 kB view hashes)

Uploaded Source

Built Distribution

matrix_stickers_manager-0.4-py2.py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page