diff --git a/build/lib/sticker/__init__.py b/build/lib/sticker/__init__.py new file mode 100644 index 0000000..86e4dc2 --- /dev/null +++ b/build/lib/sticker/__init__.py @@ -0,0 +1,2 @@ +__version__ = "0.1.0+dev" +__author__ = "Tulir Asokan " diff --git a/build/lib/sticker/download_thumbnails.py b/build/lib/sticker/download_thumbnails.py new file mode 100644 index 0000000..e082914 --- /dev/null +++ b/build/lib/sticker/download_thumbnails.py @@ -0,0 +1,58 @@ +# maunium-stickerpicker - A fast and simple Matrix sticker picker widget. +# Copyright (C) 2025 Tulir Asokan +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +from pathlib import Path +from typing import Dict +import argparse +import asyncio +import json + +from aiohttp import ClientSession +from yarl import URL + +from .lib import matrix, util + +parser = argparse.ArgumentParser() +parser.add_argument("--config", + help="Path to JSON file with Matrix homeserver and access_token", + type=str, default="config.json", metavar="file") +parser.add_argument("path", help="Path to the sticker pack JSON file", type=str) + + +async def main(args: argparse.Namespace) -> None: + await matrix.load_config(args.config) + with util.open_utf8(args.path) as pack_file: + pack = json.load(pack_file) + print(f"Loaded existing pack meta from {args.path}") + + stickers_data: Dict[str, bytes] = {} + async with ClientSession() as sess: + for sticker in pack["stickers"]: + dl_url = URL(matrix.homeserver_url) / "_matrix/client/v1/media/download" / sticker["url"].removeprefix("mxc://") + print("Downloading", sticker["url"]) + async with sess.get(dl_url, headers={"Authorization": f"Bearer {matrix.access_token}"}) as resp: + resp.raise_for_status() + stickers_data[sticker["url"]] = await resp.read() + + print("All stickers downloaded, generating thumbnails...") + util.add_thumbnails(pack["stickers"], stickers_data, Path(args.path).parent) + print("Done!") + +def cmd(): + asyncio.run(main(parser.parse_args())) + + +if __name__ == "__main__": + cmd() diff --git a/build/lib/sticker/get_version.py b/build/lib/sticker/get_version.py new file mode 100644 index 0000000..3149eb0 --- /dev/null +++ b/build/lib/sticker/get_version.py @@ -0,0 +1,50 @@ +import subprocess +import shutil +import os + +from . import __version__ + +cmd_env = { + "PATH": os.environ["PATH"], + "HOME": os.environ["HOME"], + "LANG": "C", + "LC_ALL": "C", +} + + +def run(cmd): + return subprocess.check_output(cmd, stderr=subprocess.DEVNULL, env=cmd_env) + + +if (os.path.exists("../.git") or os.path.exists(".git")) and shutil.which("git"): + try: + git_revision = run(["git", "rev-parse", "HEAD"]).strip().decode("ascii") + git_revision_url = f"https://github.com/maunium/stickerpicker/commit/{git_revision}" + git_revision = git_revision[:8] + except (subprocess.SubprocessError, OSError): + git_revision = "unknown" + git_revision_url = None + + try: + git_tag = run(["git", "describe", "--exact-match", "--tags"]).strip().decode("ascii") + except (subprocess.SubprocessError, OSError): + git_tag = None +else: + git_revision = "unknown" + git_revision_url = None + git_tag = None + +git_tag_url = (f"https://github.com/maunium/stickerpicker/releases/tag/{git_tag}" + if git_tag else None) + +if git_tag and __version__ == git_tag[1:].replace("-", ""): + version = __version__ + linkified_version = f"[{version}]({git_tag_url})" +else: + if not __version__.endswith("+dev"): + __version__ += "+dev" + version = f"{__version__}.{git_revision}" + if git_revision_url: + linkified_version = f"{__version__}.[{git_revision}]({git_revision_url})" + else: + linkified_version = version diff --git a/build/lib/sticker/lib/__init__.py b/build/lib/sticker/lib/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/build/lib/sticker/lib/matrix.py b/build/lib/sticker/lib/matrix.py new file mode 100644 index 0000000..2216b04 --- /dev/null +++ b/build/lib/sticker/lib/matrix.py @@ -0,0 +1,90 @@ +# maunium-stickerpicker - A fast and simple Matrix sticker picker widget. +# Copyright (C) 2020 Tulir Asokan +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +from typing import Optional, TYPE_CHECKING +import json + +from aiohttp import ClientSession +from yarl import URL + +access_token: Optional[str] = None +homeserver_url: Optional[str] = None + +upload_url: Optional[URL] = None + +if TYPE_CHECKING: + from typing import TypedDict + + + class MediaInfo(TypedDict): + w: int + h: int + size: int + mimetype: str + thumbnail_url: Optional[str] + thumbnail_info: Optional['MediaInfo'] + + + class StickerInfo(TypedDict, total=False): + body: str + url: str + info: MediaInfo + id: str + msgtype: str +else: + MediaInfo = None + StickerInfo = None + + +async def load_config(path: str) -> None: + global access_token, homeserver_url, upload_url + try: + with open(path) as config_file: + config = json.load(config_file) + homeserver_url = config["homeserver"] + access_token = config["access_token"] + except FileNotFoundError: + print("Matrix config file not found. Please enter your homeserver and access token.") + homeserver_url = input("Homeserver URL: ") + access_token = input("Access token: ") + whoami_url = URL(homeserver_url) / "_matrix" / "client" / "v3" / "account" / "whoami" + if whoami_url.scheme not in ("https", "http"): + whoami_url = whoami_url.with_scheme("https") + user_id = await whoami(whoami_url, access_token) + with open(path, "w") as config_file: + json.dump({ + "homeserver": homeserver_url, + "user_id": user_id, + "access_token": access_token, + }, config_file) + print(f"Wrote config to {path}") + + upload_url = URL(homeserver_url) / "_matrix" / "media" / "v3" / "upload" + + +async def whoami(url: URL, access_token: str) -> str: + headers = {"Authorization": f"Bearer {access_token}"} + async with ClientSession() as sess, sess.get(url, headers=headers) as resp: + resp.raise_for_status() + user_id = (await resp.json())["user_id"] + print(f"Access token validated (user ID: {user_id})") + return user_id + + +async def upload(data: bytes, mimetype: str, filename: str) -> str: + url = upload_url.with_query({"filename": filename}) + headers = {"Content-Type": mimetype, "Authorization": f"Bearer {access_token}"} + async with ClientSession() as sess, sess.post(url, data=data, headers=headers) as resp: + return (await resp.json())["content_uri"] diff --git a/build/lib/sticker/lib/util.py b/build/lib/sticker/lib/util.py new file mode 100644 index 0000000..1d2b84c --- /dev/null +++ b/build/lib/sticker/lib/util.py @@ -0,0 +1,94 @@ +# maunium-stickerpicker - A fast and simple Matrix sticker picker widget. +# Copyright (C) 2020 Tulir Asokan +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +from functools import partial +from io import BytesIO +import os.path +import json +from pathlib import Path +from typing import Dict, List + +from PIL import Image + +from . import matrix + +open_utf8 = partial(open, encoding='UTF-8') + +def convert_image(data: bytes, max_w=256, max_h=256) -> (bytes, int, int): + image: Image.Image = Image.open(BytesIO(data)).convert("RGBA") + new_file = BytesIO() + image.save(new_file, "png") + w, h = image.size + if w > max_w or h > max_h: + # Set the width and height to lower values so clients wouldn't show them as huge images + if w > h: + h = int(h / (w / max_w)) + w = max_w + else: + w = int(w / (h / max_h)) + h = max_h + return new_file.getvalue(), w, h + + +def add_to_index(name: str, output_dir: str) -> None: + index_path = os.path.join(output_dir, "index.json") + try: + with open_utf8(index_path) as index_file: + index_data = json.load(index_file) + except (FileNotFoundError, json.JSONDecodeError): + index_data = {"packs": []} + if "homeserver_url" not in index_data and matrix.homeserver_url: + index_data["homeserver_url"] = matrix.homeserver_url + if name not in index_data["packs"]: + index_data["packs"].append(name) + with open_utf8(index_path, "w") as index_file: + json.dump(index_data, index_file, indent=" ") + print(f"Added {name} to {index_path}") + + +def make_sticker(mxc: str, width: int, height: int, size: int, + body: str = "") -> matrix.StickerInfo: + return { + "body": body, + "url": mxc, + "info": { + "w": width, + "h": height, + "size": size, + "mimetype": "image/png", + + # Element iOS compatibility hack + "thumbnail_url": mxc, + "thumbnail_info": { + "w": width, + "h": height, + "size": size, + "mimetype": "image/png", + }, + }, + "msgtype": "m.sticker", + } + + +def add_thumbnails(stickers: List[matrix.StickerInfo], stickers_data: Dict[str, bytes], output_dir: str) -> None: + thumbnails = Path(output_dir, "thumbnails") + thumbnails.mkdir(parents=True, exist_ok=True) + + for sticker in stickers: + image_data, _, _ = convert_image(stickers_data[sticker["url"]], 128, 128) + + name = sticker["url"].split("/")[-1] + thumbnail_path = thumbnails / name + thumbnail_path.write_bytes(image_data) \ No newline at end of file diff --git a/build/lib/sticker/pack.py b/build/lib/sticker/pack.py new file mode 100644 index 0000000..1a0bb41 --- /dev/null +++ b/build/lib/sticker/pack.py @@ -0,0 +1,150 @@ +# maunium-stickerpicker - A fast and simple Matrix sticker picker widget. +# Copyright (C) 2020 Tulir Asokan +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +from pathlib import Path +from typing import Dict, Optional +from hashlib import sha256 +import mimetypes +import argparse +import os.path +import asyncio +import string +import json + +try: + import magic +except ImportError: + print("[Warning] Magic is not installed, using file extensions to guess mime types") + magic = None + +from .lib import matrix, util + + +def convert_name(name: str) -> str: + name_translate = { + ord(" "): ord("_"), + } + allowed_chars = string.ascii_letters + string.digits + "_-/.#" + return "".join(filter(lambda char: char in allowed_chars, name.translate(name_translate))) + + +async def upload_sticker(file: str, directory: str, old_stickers: Dict[str, matrix.StickerInfo] + ) -> Optional[matrix.StickerInfo]: + if file.startswith("."): + return None + path = os.path.join(directory, file) + if not os.path.isfile(path): + return None + + if magic: + mime = magic.from_file(path, mime=True) + else: + mime, _ = mimetypes.guess_type(file) + if not mime.startswith("image/"): + return None + + print(f"Processing {file}", end="", flush=True) + try: + with open(path, "rb") as image_file: + image_data = image_file.read() + except Exception as e: + print(f"... failed to read file: {e}") + return None + name = os.path.splitext(file)[0] + + # If the name starts with "number-", remove the prefix + name_split = name.split("-", 1) + if len(name_split) == 2 and name_split[0].isdecimal(): + name = name_split[1] + + sticker_id = f"sha256:{sha256(image_data).hexdigest()}" + print(".", end="", flush=True) + if sticker_id in old_stickers: + sticker = { + **old_stickers[sticker_id], + "body": name, + } + print(f".. using existing upload") + else: + image_data, width, height = util.convert_image(image_data) + print(".", end="", flush=True) + mxc = await matrix.upload(image_data, "image/png", file) + print(".", end="", flush=True) + sticker = util.make_sticker(mxc, width, height, len(image_data), name) + sticker["id"] = sticker_id + print(" uploaded", flush=True) + return sticker + + +async def main(args: argparse.Namespace) -> None: + await matrix.load_config(args.config) + + dirname = os.path.basename(os.path.abspath(args.path)) + meta_path = os.path.join(args.path, "pack.json") + try: + with util.open_utf8(meta_path) as pack_file: + pack = json.load(pack_file) + print(f"Loaded existing pack meta from {meta_path}") + except FileNotFoundError: + pack = { + "title": args.title or dirname, + "id": args.id or convert_name(dirname), + "stickers": [], + } + old_stickers = {} + else: + old_stickers = {sticker["id"]: sticker for sticker in pack["stickers"]} + pack["stickers"] = [] + + stickers_data: Dict[str, bytes] = {} + for file in sorted(os.listdir(args.path)): + sticker = await upload_sticker(file, args.path, old_stickers=old_stickers) + if sticker: + stickers_data[sticker["url"]] = Path(args.path, file).read_bytes() + pack["stickers"].append(sticker) + + with util.open_utf8(meta_path, "w") as pack_file: + json.dump(pack, pack_file) + print(f"Wrote pack to {meta_path}") + + if args.add_to_index: + picker_file_name = f"{pack['id']}.json" + picker_pack_path = os.path.join(args.add_to_index, picker_file_name) + with util.open_utf8(picker_pack_path, "w") as pack_file: + json.dump(pack, pack_file) + print(f"Copied pack to {picker_pack_path}") + + util.add_thumbnails(pack["stickers"], stickers_data, args.add_to_index) + util.add_to_index(picker_file_name, args.add_to_index) + + +parser = argparse.ArgumentParser() +parser.add_argument("--config", + help="Path to JSON file with Matrix homeserver and access_token", + type=str, default="config.json", metavar="file") +parser.add_argument("--title", help="Override the sticker pack displayname", type=str, + metavar="title") +parser.add_argument("--id", help="Override the sticker pack ID", type=str, metavar="id") +parser.add_argument("--add-to-index", help="Sticker picker pack directory (usually 'web/packs/')", + type=str, metavar="path") +parser.add_argument("path", help="Path to the sticker pack directory", type=str) + + +def cmd(): + asyncio.run(main(parser.parse_args())) + + +if __name__ == "__main__": + cmd() diff --git a/build/lib/sticker/scalar_convert.py b/build/lib/sticker/scalar_convert.py new file mode 100644 index 0000000..76a0101 --- /dev/null +++ b/build/lib/sticker/scalar_convert.py @@ -0,0 +1,56 @@ +# maunium-stickerpicker - A fast and simple Matrix sticker picker widget. +# Copyright (C) 2020 Tulir Asokan +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +import sys +import json + +index_path = "../web/packs/index.json" + +try: + with util.open_utf8(index_path) as index_file: + index_data = json.load(index_file) +except (FileNotFoundError, json.JSONDecodeError): + index_data = {"packs": []} + +with util.open_utf8(sys.argv[-1]) as file: + data = json.load(file) + +for pack in data["assets"]: + title = pack["name"].title() + if "images" not in pack["data"]: + print(f"Skipping {title}") + continue + pack_id = f"scalar-{pack['asset_id']}" + stickers = [] + for sticker in pack["data"]["images"]: + sticker_data = sticker["content"] + sticker_data["id"] = sticker_data["url"].split("/")[-1] + stickers.append(sticker_data) + pack_data = { + "title": title, + "id": pack_id, + "stickers": stickers, + } + filename = f"scalar-{pack['name'].replace(' ', '_')}.json" + pack_path = f"web/packs/{filename}" + with util.open_utf8(pack_path, "w") as pack_file: + json.dump(pack_data, pack_file) + print(f"Wrote {title} to {pack_path}") + if filename not in index_data["packs"]: + index_data["packs"].append(filename) + +with util.open_utf8(index_path, "w") as index_file: + json.dump(index_data, index_file, indent=" ") +print(f"Updated {index_path}") diff --git a/build/lib/sticker/stickerimport.py b/build/lib/sticker/stickerimport.py new file mode 100644 index 0000000..2b9ff12 --- /dev/null +++ b/build/lib/sticker/stickerimport.py @@ -0,0 +1,168 @@ +# maunium-stickerpicker - A fast and simple Matrix sticker picker widget. +# Copyright (C) 2020 Tulir Asokan +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +from typing import Dict, Tuple +import argparse +import asyncio +import os.path +import json +import re + +from telethon import TelegramClient +from telethon.tl.functions.messages import GetAllStickersRequest, GetStickerSetRequest +from telethon.tl.types.messages import AllStickers +from telethon.tl.types import InputStickerSetShortName, Document, DocumentAttributeSticker +from telethon.tl.types.messages import StickerSet as StickerSetFull + +from .lib import matrix, util + + +async def reupload_document(client: TelegramClient, document: Document) -> Tuple[matrix.StickerInfo, bytes]: + print(f"Reuploading {document.id}", end="", flush=True) + data = await client.download_media(document, file=bytes) + print(".", end="", flush=True) + data, width, height = util.convert_image(data) + print(".", end="", flush=True) + mxc = await matrix.upload(data, "image/png", f"{document.id}.png") + print(".", flush=True) + return util.make_sticker(mxc, width, height, len(data)), data + + +def add_meta(document: Document, info: matrix.StickerInfo, pack: StickerSetFull) -> None: + for attr in document.attributes: + if isinstance(attr, DocumentAttributeSticker): + info["body"] = attr.alt + info["id"] = f"tg-{document.id}" + info["net.maunium.telegram.sticker"] = { + "pack": { + "id": str(pack.set.id), + "short_name": pack.set.short_name, + }, + "id": str(document.id), + "emoticons": [], + } + + +async def reupload_pack(client: TelegramClient, pack: StickerSetFull, output_dir: str) -> None: + pack_path = os.path.join(output_dir, f"{pack.set.short_name}.json") + try: + os.mkdir(os.path.dirname(pack_path)) + except FileExistsError: + pass + + print(f"Reuploading {pack.set.title} with {pack.set.count} stickers " + f"and writing output to {pack_path}") + + already_uploaded = {} + try: + with util.open_utf8(pack_path) as pack_file: + existing_pack = json.load(pack_file) + already_uploaded = {int(sticker["net.maunium.telegram.sticker"]["id"]): sticker + for sticker in existing_pack["stickers"]} + print(f"Found {len(already_uploaded)} already reuploaded stickers") + except FileNotFoundError: + pass + + stickers_data: Dict[str, bytes] = {} + reuploaded_documents: Dict[int, matrix.StickerInfo] = {} + for document in pack.documents: + try: + reuploaded_documents[document.id] = already_uploaded[document.id] + print(f"Skipped reuploading {document.id}") + except KeyError: + reuploaded_documents[document.id], data = await reupload_document(client, document) + # Always ensure the body and telegram metadata is correct + add_meta(document, reuploaded_documents[document.id], pack) + stickers_data[reuploaded_documents[document.id]["url"]] = data + + for sticker in pack.packs: + if not sticker.emoticon: + continue + for document_id in sticker.documents: + doc = reuploaded_documents[document_id] + # If there was no sticker metadata, use the first emoji we find + if doc["body"] == "": + doc["body"] = sticker.emoticon + doc["net.maunium.telegram.sticker"]["emoticons"].append(sticker.emoticon) + + with util.open_utf8(pack_path, "w") as pack_file: + json.dump({ + "title": pack.set.title, + "id": f"tg-{pack.set.id}", + "net.maunium.telegram.pack": { + "short_name": pack.set.short_name, + "hash": str(pack.set.hash), + }, + "stickers": list(reuploaded_documents.values()), + }, pack_file, ensure_ascii=False) + print(f"Saved {pack.set.title} as {pack.set.short_name}.json") + + util.add_thumbnails(list(reuploaded_documents.values()), stickers_data, output_dir) + util.add_to_index(os.path.basename(pack_path), output_dir) + + +pack_url_regex = re.compile(r"^(?:(?:https?://)?(?:t|telegram)\.(?:me|dog)/addstickers/)?" + r"([A-Za-z0-9-_]+)" + r"(?:\.json)?$") + +parser = argparse.ArgumentParser() + +parser.add_argument("--list", help="List your saved sticker packs", action="store_true") +parser.add_argument("--session", help="Telethon session file name", default="sticker-import") +parser.add_argument("--config", + help="Path to JSON file with Matrix homeserver and access_token", + type=str, default="config.json") +parser.add_argument("--output-dir", help="Directory to write packs to", default="web/packs/", + type=str) +parser.add_argument("pack", help="Sticker pack URLs to import", action="append", nargs="*") + + +async def main(args: argparse.Namespace) -> None: + await matrix.load_config(args.config) + client = TelegramClient(args.session, 298751, "cb676d6bae20553c9996996a8f52b4d7") + await client.start() + + if args.list: + stickers: AllStickers = await client(GetAllStickersRequest(hash=0)) + index = 1 + width = len(str(len(stickers.sets))) + print("Your saved sticker packs:") + for saved_pack in stickers.sets: + print(f"{index:>{width}}. {saved_pack.title} " + f"(t.me/addstickers/{saved_pack.short_name})") + index += 1 + elif args.pack[0]: + input_packs = [] + for pack_url in args.pack[0]: + match = pack_url_regex.match(pack_url) + if not match: + print(f"'{pack_url}' doesn't look like a sticker pack URL") + return + input_packs.append(InputStickerSetShortName(short_name=match.group(1))) + for input_pack in input_packs: + pack: StickerSetFull = await client(GetStickerSetRequest(input_pack, hash=0)) + await reupload_pack(client, pack, args.output_dir) + else: + parser.print_help() + + await client.disconnect() + + +def cmd() -> None: + asyncio.run(main(parser.parse_args())) + + +if __name__ == "__main__": + cmd() diff --git a/build/lib/sticker/version.py b/build/lib/sticker/version.py new file mode 100644 index 0000000..9ef5795 --- /dev/null +++ b/build/lib/sticker/version.py @@ -0,0 +1,6 @@ +# Generated in setup.py + +git_tag = None +git_revision = '3366dbc5' +version = '0.1.0+dev.3366dbc5' +linkified_version = '0.1.0+dev.[3366dbc5](https://github.com/maunium/stickerpicker/commit/3366dbc5002046be058a71e7ed310811a122c081)' diff --git a/config.json b/config.json new file mode 100644 index 0000000..f331f79 --- /dev/null +++ b/config.json @@ -0,0 +1 @@ +{"homeserver": "https://matrix-client.matrix.org", "user_id": "@veritanuda:matrix.org", "access_token": "syt_dmVyaXRhbnVkYQ_KPAKivcusqPpJctFTfEu_0K98e8"} \ No newline at end of file diff --git a/maunium_stickerpicker.egg-info/PKG-INFO b/maunium_stickerpicker.egg-info/PKG-INFO new file mode 100644 index 0000000..7be42d4 --- /dev/null +++ b/maunium_stickerpicker.egg-info/PKG-INFO @@ -0,0 +1,77 @@ +Metadata-Version: 2.4 +Name: maunium-stickerpicker +Version: 0.1.0+dev.3366dbc5 +Summary: A fast and simple Matrix sticker picker widget +Home-page: https://github.com/maunium/stickerpicker +Author: Tulir Asokan +Author-email: tulir@maunium.net +Classifier: Development Status :: 4 - Beta +Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) +Classifier: Framework :: AsyncIO +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 +Classifier: Programming Language :: Python :: 3.9 +Requires-Python: ~=3.6 +Description-Content-Type: text/markdown +License-File: LICENSE +Requires-Dist: aiohttp +Requires-Dist: yarl +Requires-Dist: pillow +Requires-Dist: telethon +Requires-Dist: cryptg +Requires-Dist: python-magic +Dynamic: author +Dynamic: author-email +Dynamic: classifier +Dynamic: description +Dynamic: description-content-type +Dynamic: home-page +Dynamic: license-file +Dynamic: requires-dist +Dynamic: requires-python +Dynamic: summary + +# Maunium sticker picker +A fast and simple Matrix sticker picker widget. Tested on Element Web, Android & iOS. + +## Discussion +Matrix room: [`#stickerpicker:maunium.net`](https://matrix.to/#/#stickerpicker:maunium.net) + +## Instructions +For setup and usage instructions, please visit the [wiki](https://github.com/maunium/stickerpicker/wiki): + +* [Creating packs](https://github.com/maunium/stickerpicker/wiki/Creating-packs) +* [Enabling the widget](https://github.com/maunium/stickerpicker/wiki/Enabling-the-widget) +* [Hosting on GitHub pages](https://github.com/maunium/stickerpicker/wiki/Hosting-on-GitHub-pages) + +If you prefer video tutorials, [Brodie Robertson](https://www.youtube.com/c/BrodieRobertson) has made a great video on setting up the picker and creating some packs: https://youtu.be/Yz3H6KJTEI0. + +## Comparison with other sticker pickers + +* Scalar is the default integration manager in Element, which can't be self-hosted and only supports predefined sticker packs. +* [Dimension](https://github.com/turt2live/matrix-dimension) is an alternate integration manager. It can be self-hosted, but it's more difficult than Maunium sticker picker. +* Maunium sticker picker is just a sticker picker rather than a full integration manager. It's much simpler than integration managers, but currently has to be set up manually per-user. + +| Feature | Scalar | Dimension | Maunium sticker picker | +|---------------------------------|--------|-----------|------------------------| +| Free software | ❌ | ✔️ | ✔️ | +| Custom sticker packs | ❌ | ✔️ | ✔️ | +| Telegram import | ❌ | ✔️ | ✔️ | +| Works on Element mobiles | ✔️ | ❌ | ✔️ | +| Easy multi-user setup | ✔️ | ✔️ | ❌[#7][#7] | +| Frequently used stickers at top | ❌ | ❌ | ✔️ | + +[#7]: https://github.com/maunium/stickerpicker/issues/7 + +## Preview +### Element Web +![Element Web](preview-element-web.png) + +### Element Android +![Element Android](preview-element-android.png) + +### Element iOS (dark theme) +![Element iOS](preview-element-ios.png) diff --git a/maunium_stickerpicker.egg-info/SOURCES.txt b/maunium_stickerpicker.egg-info/SOURCES.txt new file mode 100644 index 0000000..ebeb96f --- /dev/null +++ b/maunium_stickerpicker.egg-info/SOURCES.txt @@ -0,0 +1,19 @@ +LICENSE +README.md +setup.py +maunium_stickerpicker.egg-info/PKG-INFO +maunium_stickerpicker.egg-info/SOURCES.txt +maunium_stickerpicker.egg-info/dependency_links.txt +maunium_stickerpicker.egg-info/entry_points.txt +maunium_stickerpicker.egg-info/requires.txt +maunium_stickerpicker.egg-info/top_level.txt +sticker/__init__.py +sticker/download_thumbnails.py +sticker/get_version.py +sticker/pack.py +sticker/scalar_convert.py +sticker/stickerimport.py +sticker/version.py +sticker/lib/__init__.py +sticker/lib/matrix.py +sticker/lib/util.py \ No newline at end of file diff --git a/maunium_stickerpicker.egg-info/dependency_links.txt b/maunium_stickerpicker.egg-info/dependency_links.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/maunium_stickerpicker.egg-info/dependency_links.txt @@ -0,0 +1 @@ + diff --git a/maunium_stickerpicker.egg-info/entry_points.txt b/maunium_stickerpicker.egg-info/entry_points.txt new file mode 100644 index 0000000..05bd31f --- /dev/null +++ b/maunium_stickerpicker.egg-info/entry_points.txt @@ -0,0 +1,4 @@ +[console_scripts] +sticker-download-thumbnails = sticker.download_thumbnails:cmd +sticker-import = sticker.stickerimport:cmd +sticker-pack = sticker.pack:cmd diff --git a/maunium_stickerpicker.egg-info/requires.txt b/maunium_stickerpicker.egg-info/requires.txt new file mode 100644 index 0000000..6d89dbf --- /dev/null +++ b/maunium_stickerpicker.egg-info/requires.txt @@ -0,0 +1,6 @@ +aiohttp +yarl +pillow +telethon +cryptg +python-magic diff --git a/maunium_stickerpicker.egg-info/top_level.txt b/maunium_stickerpicker.egg-info/top_level.txt new file mode 100644 index 0000000..d4117fd --- /dev/null +++ b/maunium_stickerpicker.egg-info/top_level.txt @@ -0,0 +1 @@ +sticker diff --git a/sticker-import.session b/sticker-import.session new file mode 100644 index 0000000..dc44b76 Binary files /dev/null and b/sticker-import.session differ diff --git a/sticker/__pycache__/__init__.cpython-313.pyc b/sticker/__pycache__/__init__.cpython-313.pyc new file mode 100644 index 0000000..61607b8 Binary files /dev/null and b/sticker/__pycache__/__init__.cpython-313.pyc differ diff --git a/sticker/__pycache__/get_version.cpython-313.pyc b/sticker/__pycache__/get_version.cpython-313.pyc new file mode 100644 index 0000000..c072b22 Binary files /dev/null and b/sticker/__pycache__/get_version.cpython-313.pyc differ diff --git a/web/packs/MadlyAboutYouLine.json b/web/packs/MadlyAboutYouLine.json new file mode 100644 index 0000000..9c09f76 --- /dev/null +++ b/web/packs/MadlyAboutYouLine.json @@ -0,0 +1 @@ +{"title": "Madly About You", "id": "tg-1569031431030571071", "net.maunium.telegram.pack": {"short_name": "MadlyAboutYouLine", "hash": "-1889068302"}, "stickers": [{"body": "😘", "url": "mxc://matrix.org/vLCGnSqSklkegpIekDGHhpgp", "info": {"w": 256, "h": 256, "size": 208459, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/vLCGnSqSklkegpIekDGHhpgp", "thumbnail_info": {"w": 256, "h": 256, "size": 208459, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574174", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574174", "emoticons": ["😘"]}}, {"body": "😘", "url": "mxc://matrix.org/cGTjBhhoKePDExrCXkikFlGS", "info": {"w": 256, "h": 256, "size": 201146, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/cGTjBhhoKePDExrCXkikFlGS", "thumbnail_info": {"w": 256, "h": 256, "size": 201146, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574175", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574175", "emoticons": ["😘"]}}, {"body": "😘", "url": "mxc://matrix.org/rcprMYRREoWFRpfIwgBMuCiY", "info": {"w": 256, "h": 256, "size": 196580, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/rcprMYRREoWFRpfIwgBMuCiY", "thumbnail_info": {"w": 256, "h": 256, "size": 196580, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574176", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574176", "emoticons": ["😘", "😚"]}}, {"body": "😓", "url": "mxc://matrix.org/KOFBlvGaPwzApXxJlkiPzbnR", "info": {"w": 256, "h": 256, "size": 193803, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/KOFBlvGaPwzApXxJlkiPzbnR", "thumbnail_info": {"w": 256, "h": 256, "size": 193803, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574177", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574177", "emoticons": ["😓", "🙇"]}}, {"body": "🤗", "url": "mxc://matrix.org/vvZuFIrszqpQyTOXBdZdktjc", "info": {"w": 256, "h": 256, "size": 181051, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/vvZuFIrszqpQyTOXBdZdktjc", "thumbnail_info": {"w": 256, "h": 256, "size": 181051, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574178", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574178", "emoticons": ["🤗", "👐"]}}, {"body": "❤", "url": "mxc://matrix.org/KkvIbFnakZhoeEQqPkdWHxEY", "info": {"w": 256, "h": 256, "size": 214352, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/KkvIbFnakZhoeEQqPkdWHxEY", "thumbnail_info": {"w": 256, "h": 256, "size": 214352, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574179", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574179", "emoticons": ["❤"]}}, {"body": "🙏", "url": "mxc://matrix.org/bEalTgVvTBrUIZRqmHTlZiSt", "info": {"w": 256, "h": 256, "size": 149347, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/bEalTgVvTBrUIZRqmHTlZiSt", "thumbnail_info": {"w": 256, "h": 256, "size": 149347, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574180", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574180", "emoticons": ["🙏"]}}, {"body": "😆", "url": "mxc://matrix.org/ovhVcQBrwvNBNowXBCWAtZII", "info": {"w": 256, "h": 256, "size": 177729, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/ovhVcQBrwvNBNowXBCWAtZII", "thumbnail_info": {"w": 256, "h": 256, "size": 177729, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574181", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574181", "emoticons": ["😆"]}}, {"body": "🤐", "url": "mxc://matrix.org/iMJpjuxSuRTrFCnefcEsucqM", "info": {"w": 256, "h": 256, "size": 205900, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/iMJpjuxSuRTrFCnefcEsucqM", "thumbnail_info": {"w": 256, "h": 256, "size": 205900, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574182", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574182", "emoticons": ["🤐"]}}, {"body": "😒", "url": "mxc://matrix.org/SmkRUgOyRnfKQHPZJeoZpwwB", "info": {"w": 256, "h": 256, "size": 118794, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/SmkRUgOyRnfKQHPZJeoZpwwB", "thumbnail_info": {"w": 256, "h": 256, "size": 118794, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574183", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574183", "emoticons": ["😒", "😑"]}}, {"body": "😄", "url": "mxc://matrix.org/dhnACfyvZOYbHyEYpTEIOOZr", "info": {"w": 256, "h": 256, "size": 221080, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/dhnACfyvZOYbHyEYpTEIOOZr", "thumbnail_info": {"w": 256, "h": 256, "size": 221080, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574184", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574184", "emoticons": ["😄", "😁"]}}, {"body": "😳", "url": "mxc://matrix.org/BWstssUKuEzSMogBISkMtKxf", "info": {"w": 256, "h": 256, "size": 123988, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/BWstssUKuEzSMogBISkMtKxf", "thumbnail_info": {"w": 256, "h": 256, "size": 123988, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574185", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574185", "emoticons": ["😳", "😵"]}}, {"body": "😤", "url": "mxc://matrix.org/KGWJkfaAWjfsMSOlFcnLPbNP", "info": {"w": 256, "h": 256, "size": 151923, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/KGWJkfaAWjfsMSOlFcnLPbNP", "thumbnail_info": {"w": 256, "h": 256, "size": 151923, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574186", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574186", "emoticons": ["😤", "😠"]}}, {"body": "☺️", "url": "mxc://matrix.org/QNXbdqeptTrvQWjjOPhHHQPa", "info": {"w": 256, "h": 256, "size": 153230, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/QNXbdqeptTrvQWjjOPhHHQPa", "thumbnail_info": {"w": 256, "h": 256, "size": 153230, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574187", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574187", "emoticons": ["❤", "☺"]}}, {"body": "😍", "url": "mxc://matrix.org/qxWIUUCozUqJWaAQiwOSaDbK", "info": {"w": 256, "h": 256, "size": 149173, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/qxWIUUCozUqJWaAQiwOSaDbK", "thumbnail_info": {"w": 256, "h": 256, "size": 149173, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574188", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574188", "emoticons": ["😍"]}}, {"body": "😠", "url": "mxc://matrix.org/zfVDftMtFSRstSzbuIyWTruS", "info": {"w": 256, "h": 256, "size": 198636, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/zfVDftMtFSRstSzbuIyWTruS", "thumbnail_info": {"w": 256, "h": 256, "size": 198636, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574189", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574189", "emoticons": ["😠", "😡"]}}, {"body": "😃", "url": "mxc://matrix.org/CINcMplrWrcUIVZAZLxdCgcm", "info": {"w": 256, "h": 256, "size": 197905, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/CINcMplrWrcUIVZAZLxdCgcm", "thumbnail_info": {"w": 256, "h": 256, "size": 197905, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574190", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574190", "emoticons": ["😃"]}}, {"body": "😊", "url": "mxc://matrix.org/tgeYZBETAiKYFyErsaTJZnMq", "info": {"w": 256, "h": 256, "size": 167184, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/tgeYZBETAiKYFyErsaTJZnMq", "thumbnail_info": {"w": 256, "h": 256, "size": 167184, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574191", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574191", "emoticons": ["☺", "😊"]}}, {"body": "❤", "url": "mxc://matrix.org/DqMxPeUsPApalTvjhzvNMdhi", "info": {"w": 256, "h": 256, "size": 150317, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/DqMxPeUsPApalTvjhzvNMdhi", "thumbnail_info": {"w": 256, "h": 256, "size": 150317, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574192", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574192", "emoticons": ["❤", "😍"]}}, {"body": "😘", "url": "mxc://matrix.org/SvGvsSpjCZBHKQeKFxPnPTxM", "info": {"w": 256, "h": 256, "size": 191561, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/SvGvsSpjCZBHKQeKFxPnPTxM", "thumbnail_info": {"w": 256, "h": 256, "size": 191561, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574193", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574193", "emoticons": ["😘"]}}, {"body": "😞", "url": "mxc://matrix.org/gxDwybWdkJhPjOzHhNJOfSwR", "info": {"w": 256, "h": 256, "size": 146952, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/gxDwybWdkJhPjOzHhNJOfSwR", "thumbnail_info": {"w": 256, "h": 256, "size": 146952, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574194", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574194", "emoticons": ["🙇", "😞", "😔"]}}, {"body": "👌", "url": "mxc://matrix.org/FcIWNJBZhGiFvbsSysXmUsop", "info": {"w": 256, "h": 256, "size": 195536, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/FcIWNJBZhGiFvbsSysXmUsop", "thumbnail_info": {"w": 256, "h": 256, "size": 195536, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574195", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574195", "emoticons": ["👌"]}}, {"body": "🤗", "url": "mxc://matrix.org/pQqSHdbQbmTRxlrKIvIeOgIx", "info": {"w": 256, "h": 256, "size": 148865, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/pQqSHdbQbmTRxlrKIvIeOgIx", "thumbnail_info": {"w": 256, "h": 256, "size": 148865, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574196", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574196", "emoticons": ["🤗"]}}, {"body": "😘", "url": "mxc://matrix.org/NykhJAqvFvknOSRUJvJiwpmb", "info": {"w": 256, "h": 256, "size": 182377, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/NykhJAqvFvknOSRUJvJiwpmb", "thumbnail_info": {"w": 256, "h": 256, "size": 182377, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574197", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574197", "emoticons": ["😘", "🤗"]}}, {"body": "😘", "url": "mxc://matrix.org/pBcJjAgWItRvltdPNsbkvvsJ", "info": {"w": 256, "h": 256, "size": 189990, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/pBcJjAgWItRvltdPNsbkvvsJ", "thumbnail_info": {"w": 256, "h": 256, "size": 189990, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574198", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574198", "emoticons": ["😘"]}}, {"body": "😘", "url": "mxc://matrix.org/eYQfxcnzwKnYwyegSmKQaZqv", "info": {"w": 256, "h": 256, "size": 205691, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/eYQfxcnzwKnYwyegSmKQaZqv", "thumbnail_info": {"w": 256, "h": 256, "size": 205691, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574199", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574199", "emoticons": ["😘"]}}, {"body": "😊", "url": "mxc://matrix.org/bVyfGlEBHIsDcmzuIYIavIkd", "info": {"w": 256, "h": 256, "size": 175889, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/bVyfGlEBHIsDcmzuIYIavIkd", "thumbnail_info": {"w": 256, "h": 256, "size": 175889, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574200", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574200", "emoticons": ["☺", "😊"]}}, {"body": "😛", "url": "mxc://matrix.org/CwOgyvDmtEQclIbOEYfdiKbf", "info": {"w": 256, "h": 256, "size": 200189, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/CwOgyvDmtEQclIbOEYfdiKbf", "thumbnail_info": {"w": 256, "h": 256, "size": 200189, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574201", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574201", "emoticons": ["😛"]}}, {"body": "😪", "url": "mxc://matrix.org/vMtXxdKeutXrvRumimfxgDXr", "info": {"w": 256, "h": 256, "size": 204942, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/vMtXxdKeutXrvRumimfxgDXr", "thumbnail_info": {"w": 256, "h": 256, "size": 204942, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574202", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574202", "emoticons": ["😪", "😴"]}}, {"body": "😤", "url": "mxc://matrix.org/gHYsBUQftnWZzuBRrKJIbSMq", "info": {"w": 256, "h": 256, "size": 137972, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/gHYsBUQftnWZzuBRrKJIbSMq", "thumbnail_info": {"w": 256, "h": 256, "size": 137972, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574203", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574203", "emoticons": ["😤", "😠"]}}, {"body": "😋", "url": "mxc://matrix.org/obgIKzZwbAwHeWJvvgkftzcw", "info": {"w": 256, "h": 256, "size": 201481, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/obgIKzZwbAwHeWJvvgkftzcw", "thumbnail_info": {"w": 256, "h": 256, "size": 201481, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574204", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574204", "emoticons": ["😋", "🤤"]}}, {"body": "😔", "url": "mxc://matrix.org/uSfGGAhudrItSvcleTMYerdK", "info": {"w": 256, "h": 256, "size": 158517, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/uSfGGAhudrItSvcleTMYerdK", "thumbnail_info": {"w": 256, "h": 256, "size": 158517, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574205", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574205", "emoticons": ["😞", "😔"]}}, {"body": "🙁", "url": "mxc://matrix.org/ubSSMGoaqzlSlvVHQYGzAFAK", "info": {"w": 256, "h": 256, "size": 137689, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/ubSSMGoaqzlSlvVHQYGzAFAK", "thumbnail_info": {"w": 256, "h": 256, "size": 137689, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574206", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574206", "emoticons": ["🙁", "😕"]}}, {"body": "👔", "url": "mxc://matrix.org/koYgAPvyDbrPBzEwaJRpCcIJ", "info": {"w": 256, "h": 256, "size": 223170, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/koYgAPvyDbrPBzEwaJRpCcIJ", "thumbnail_info": {"w": 256, "h": 256, "size": 223170, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574207", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574207", "emoticons": ["👔"]}}, {"body": "😘", "url": "mxc://matrix.org/GICuAHNihyYZLggZxAolAJXG", "info": {"w": 256, "h": 256, "size": 199519, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/GICuAHNihyYZLggZxAolAJXG", "thumbnail_info": {"w": 256, "h": 256, "size": 199519, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574208", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574208", "emoticons": ["😘"]}}, {"body": "😋", "url": "mxc://matrix.org/wKOWSKdkhlwzqurrRnrIKdIb", "info": {"w": 256, "h": 256, "size": 159909, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/wKOWSKdkhlwzqurrRnrIKdIb", "thumbnail_info": {"w": 256, "h": 256, "size": 159909, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574209", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574209", "emoticons": ["😋", "😜"]}}, {"body": "😤", "url": "mxc://matrix.org/HGrNvrvIJdwbKLDtffeazSDJ", "info": {"w": 256, "h": 256, "size": 198546, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/HGrNvrvIJdwbKLDtffeazSDJ", "thumbnail_info": {"w": 256, "h": 256, "size": 198546, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574210", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574210", "emoticons": ["😤"]}}, {"body": "😀", "url": "mxc://matrix.org/axrDhPZRteFXsLGGmqiQwSHQ", "info": {"w": 256, "h": 256, "size": 149083, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/axrDhPZRteFXsLGGmqiQwSHQ", "thumbnail_info": {"w": 256, "h": 256, "size": 149083, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574211", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574211", "emoticons": ["😄", "😀"]}}, {"body": "😘", "url": "mxc://matrix.org/AfzyHoLdZmsectMEQqYFgeKS", "info": {"w": 256, "h": 256, "size": 198843, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/AfzyHoLdZmsectMEQqYFgeKS", "thumbnail_info": {"w": 256, "h": 256, "size": 198843, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574212", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574212", "emoticons": ["😘"]}}, {"body": "🌄", "url": "mxc://matrix.org/NkdcasXakOftGeaKCsosVDqz", "info": {"w": 256, "h": 256, "size": 162366, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/NkdcasXakOftGeaKCsosVDqz", "thumbnail_info": {"w": 256, "h": 256, "size": 162366, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030574213", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030574213", "emoticons": ["🌄", "🌅"]}}, {"body": "🔚", "url": "mxc://matrix.org/wzwTNxMTLqJZAOAAGjeQMBjm", "info": {"w": 256, "h": 256, "size": 74215, "mimetype": "image/png", "thumbnail_url": "mxc://matrix.org/wzwTNxMTLqJZAOAAGjeQMBjm", "thumbnail_info": {"w": 256, "h": 256, "size": 74215, "mimetype": "image/png"}}, "msgtype": "m.sticker", "id": "tg-1569031431030575969", "net.maunium.telegram.sticker": {"pack": {"id": "1569031431030571071", "short_name": "MadlyAboutYouLine"}, "id": "1569031431030575969", "emoticons": ["🔚"]}}]} \ No newline at end of file diff --git a/web/packs/index.json b/web/packs/index.json new file mode 100644 index 0000000..07ecf70 --- /dev/null +++ b/web/packs/index.json @@ -0,0 +1,6 @@ +{ + "packs": [ + "MadlyAboutYouLine.json" + ], + "homeserver_url": "https://matrix-client.matrix.org" +} \ No newline at end of file diff --git a/web/packs/thumbnails/AfzyHoLdZmsectMEQqYFgeKS b/web/packs/thumbnails/AfzyHoLdZmsectMEQqYFgeKS new file mode 100644 index 0000000..461a4f4 Binary files /dev/null and b/web/packs/thumbnails/AfzyHoLdZmsectMEQqYFgeKS differ diff --git a/web/packs/thumbnails/BWstssUKuEzSMogBISkMtKxf b/web/packs/thumbnails/BWstssUKuEzSMogBISkMtKxf new file mode 100644 index 0000000..449f0a9 Binary files /dev/null and b/web/packs/thumbnails/BWstssUKuEzSMogBISkMtKxf differ diff --git a/web/packs/thumbnails/CINcMplrWrcUIVZAZLxdCgcm b/web/packs/thumbnails/CINcMplrWrcUIVZAZLxdCgcm new file mode 100644 index 0000000..ee084c8 Binary files /dev/null and b/web/packs/thumbnails/CINcMplrWrcUIVZAZLxdCgcm differ diff --git a/web/packs/thumbnails/CwOgyvDmtEQclIbOEYfdiKbf b/web/packs/thumbnails/CwOgyvDmtEQclIbOEYfdiKbf new file mode 100644 index 0000000..2df1195 Binary files /dev/null and b/web/packs/thumbnails/CwOgyvDmtEQclIbOEYfdiKbf differ diff --git a/web/packs/thumbnails/DqMxPeUsPApalTvjhzvNMdhi b/web/packs/thumbnails/DqMxPeUsPApalTvjhzvNMdhi new file mode 100644 index 0000000..40433e8 Binary files /dev/null and b/web/packs/thumbnails/DqMxPeUsPApalTvjhzvNMdhi differ diff --git a/web/packs/thumbnails/FcIWNJBZhGiFvbsSysXmUsop b/web/packs/thumbnails/FcIWNJBZhGiFvbsSysXmUsop new file mode 100644 index 0000000..e4ad4ff Binary files /dev/null and b/web/packs/thumbnails/FcIWNJBZhGiFvbsSysXmUsop differ diff --git a/web/packs/thumbnails/GICuAHNihyYZLggZxAolAJXG b/web/packs/thumbnails/GICuAHNihyYZLggZxAolAJXG new file mode 100644 index 0000000..a180f87 Binary files /dev/null and b/web/packs/thumbnails/GICuAHNihyYZLggZxAolAJXG differ diff --git a/web/packs/thumbnails/HGrNvrvIJdwbKLDtffeazSDJ b/web/packs/thumbnails/HGrNvrvIJdwbKLDtffeazSDJ new file mode 100644 index 0000000..4b59e94 Binary files /dev/null and b/web/packs/thumbnails/HGrNvrvIJdwbKLDtffeazSDJ differ diff --git a/web/packs/thumbnails/KGWJkfaAWjfsMSOlFcnLPbNP b/web/packs/thumbnails/KGWJkfaAWjfsMSOlFcnLPbNP new file mode 100644 index 0000000..64dce79 Binary files /dev/null and b/web/packs/thumbnails/KGWJkfaAWjfsMSOlFcnLPbNP differ diff --git a/web/packs/thumbnails/KOFBlvGaPwzApXxJlkiPzbnR b/web/packs/thumbnails/KOFBlvGaPwzApXxJlkiPzbnR new file mode 100644 index 0000000..421ec9a Binary files /dev/null and b/web/packs/thumbnails/KOFBlvGaPwzApXxJlkiPzbnR differ diff --git a/web/packs/thumbnails/KkvIbFnakZhoeEQqPkdWHxEY b/web/packs/thumbnails/KkvIbFnakZhoeEQqPkdWHxEY new file mode 100644 index 0000000..87a2f28 Binary files /dev/null and b/web/packs/thumbnails/KkvIbFnakZhoeEQqPkdWHxEY differ diff --git a/web/packs/thumbnails/NkdcasXakOftGeaKCsosVDqz b/web/packs/thumbnails/NkdcasXakOftGeaKCsosVDqz new file mode 100644 index 0000000..b29f421 Binary files /dev/null and b/web/packs/thumbnails/NkdcasXakOftGeaKCsosVDqz differ diff --git a/web/packs/thumbnails/NykhJAqvFvknOSRUJvJiwpmb b/web/packs/thumbnails/NykhJAqvFvknOSRUJvJiwpmb new file mode 100644 index 0000000..a0305de Binary files /dev/null and b/web/packs/thumbnails/NykhJAqvFvknOSRUJvJiwpmb differ diff --git a/web/packs/thumbnails/QNXbdqeptTrvQWjjOPhHHQPa b/web/packs/thumbnails/QNXbdqeptTrvQWjjOPhHHQPa new file mode 100644 index 0000000..826c9e0 Binary files /dev/null and b/web/packs/thumbnails/QNXbdqeptTrvQWjjOPhHHQPa differ diff --git a/web/packs/thumbnails/SmkRUgOyRnfKQHPZJeoZpwwB b/web/packs/thumbnails/SmkRUgOyRnfKQHPZJeoZpwwB new file mode 100644 index 0000000..ac11055 Binary files /dev/null and b/web/packs/thumbnails/SmkRUgOyRnfKQHPZJeoZpwwB differ diff --git a/web/packs/thumbnails/SvGvsSpjCZBHKQeKFxPnPTxM b/web/packs/thumbnails/SvGvsSpjCZBHKQeKFxPnPTxM new file mode 100644 index 0000000..8b2adbb Binary files /dev/null and b/web/packs/thumbnails/SvGvsSpjCZBHKQeKFxPnPTxM differ diff --git a/web/packs/thumbnails/axrDhPZRteFXsLGGmqiQwSHQ b/web/packs/thumbnails/axrDhPZRteFXsLGGmqiQwSHQ new file mode 100644 index 0000000..828833d Binary files /dev/null and b/web/packs/thumbnails/axrDhPZRteFXsLGGmqiQwSHQ differ diff --git a/web/packs/thumbnails/bEalTgVvTBrUIZRqmHTlZiSt b/web/packs/thumbnails/bEalTgVvTBrUIZRqmHTlZiSt new file mode 100644 index 0000000..eea7be1 Binary files /dev/null and b/web/packs/thumbnails/bEalTgVvTBrUIZRqmHTlZiSt differ diff --git a/web/packs/thumbnails/bVyfGlEBHIsDcmzuIYIavIkd b/web/packs/thumbnails/bVyfGlEBHIsDcmzuIYIavIkd new file mode 100644 index 0000000..a086967 Binary files /dev/null and b/web/packs/thumbnails/bVyfGlEBHIsDcmzuIYIavIkd differ diff --git a/web/packs/thumbnails/cGTjBhhoKePDExrCXkikFlGS b/web/packs/thumbnails/cGTjBhhoKePDExrCXkikFlGS new file mode 100644 index 0000000..1d3c4f2 Binary files /dev/null and b/web/packs/thumbnails/cGTjBhhoKePDExrCXkikFlGS differ diff --git a/web/packs/thumbnails/dhnACfyvZOYbHyEYpTEIOOZr b/web/packs/thumbnails/dhnACfyvZOYbHyEYpTEIOOZr new file mode 100644 index 0000000..cff7259 Binary files /dev/null and b/web/packs/thumbnails/dhnACfyvZOYbHyEYpTEIOOZr differ diff --git a/web/packs/thumbnails/eYQfxcnzwKnYwyegSmKQaZqv b/web/packs/thumbnails/eYQfxcnzwKnYwyegSmKQaZqv new file mode 100644 index 0000000..83fec5e Binary files /dev/null and b/web/packs/thumbnails/eYQfxcnzwKnYwyegSmKQaZqv differ diff --git a/web/packs/thumbnails/gHYsBUQftnWZzuBRrKJIbSMq b/web/packs/thumbnails/gHYsBUQftnWZzuBRrKJIbSMq new file mode 100644 index 0000000..8d5b8c7 Binary files /dev/null and b/web/packs/thumbnails/gHYsBUQftnWZzuBRrKJIbSMq differ diff --git a/web/packs/thumbnails/gxDwybWdkJhPjOzHhNJOfSwR b/web/packs/thumbnails/gxDwybWdkJhPjOzHhNJOfSwR new file mode 100644 index 0000000..9691d0a Binary files /dev/null and b/web/packs/thumbnails/gxDwybWdkJhPjOzHhNJOfSwR differ diff --git a/web/packs/thumbnails/iMJpjuxSuRTrFCnefcEsucqM b/web/packs/thumbnails/iMJpjuxSuRTrFCnefcEsucqM new file mode 100644 index 0000000..e0ee179 Binary files /dev/null and b/web/packs/thumbnails/iMJpjuxSuRTrFCnefcEsucqM differ diff --git a/web/packs/thumbnails/koYgAPvyDbrPBzEwaJRpCcIJ b/web/packs/thumbnails/koYgAPvyDbrPBzEwaJRpCcIJ new file mode 100644 index 0000000..b9c1d27 Binary files /dev/null and b/web/packs/thumbnails/koYgAPvyDbrPBzEwaJRpCcIJ differ diff --git a/web/packs/thumbnails/obgIKzZwbAwHeWJvvgkftzcw b/web/packs/thumbnails/obgIKzZwbAwHeWJvvgkftzcw new file mode 100644 index 0000000..de9228d Binary files /dev/null and b/web/packs/thumbnails/obgIKzZwbAwHeWJvvgkftzcw differ diff --git a/web/packs/thumbnails/ovhVcQBrwvNBNowXBCWAtZII b/web/packs/thumbnails/ovhVcQBrwvNBNowXBCWAtZII new file mode 100644 index 0000000..93801d1 Binary files /dev/null and b/web/packs/thumbnails/ovhVcQBrwvNBNowXBCWAtZII differ diff --git a/web/packs/thumbnails/pBcJjAgWItRvltdPNsbkvvsJ b/web/packs/thumbnails/pBcJjAgWItRvltdPNsbkvvsJ new file mode 100644 index 0000000..6b83967 Binary files /dev/null and b/web/packs/thumbnails/pBcJjAgWItRvltdPNsbkvvsJ differ diff --git a/web/packs/thumbnails/pQqSHdbQbmTRxlrKIvIeOgIx b/web/packs/thumbnails/pQqSHdbQbmTRxlrKIvIeOgIx new file mode 100644 index 0000000..d1ac13d Binary files /dev/null and b/web/packs/thumbnails/pQqSHdbQbmTRxlrKIvIeOgIx differ diff --git a/web/packs/thumbnails/qxWIUUCozUqJWaAQiwOSaDbK b/web/packs/thumbnails/qxWIUUCozUqJWaAQiwOSaDbK new file mode 100644 index 0000000..b3fe261 Binary files /dev/null and b/web/packs/thumbnails/qxWIUUCozUqJWaAQiwOSaDbK differ diff --git a/web/packs/thumbnails/rcprMYRREoWFRpfIwgBMuCiY b/web/packs/thumbnails/rcprMYRREoWFRpfIwgBMuCiY new file mode 100644 index 0000000..8ee69e0 Binary files /dev/null and b/web/packs/thumbnails/rcprMYRREoWFRpfIwgBMuCiY differ diff --git a/web/packs/thumbnails/tgeYZBETAiKYFyErsaTJZnMq b/web/packs/thumbnails/tgeYZBETAiKYFyErsaTJZnMq new file mode 100644 index 0000000..8cbab5d Binary files /dev/null and b/web/packs/thumbnails/tgeYZBETAiKYFyErsaTJZnMq differ diff --git a/web/packs/thumbnails/uSfGGAhudrItSvcleTMYerdK b/web/packs/thumbnails/uSfGGAhudrItSvcleTMYerdK new file mode 100644 index 0000000..a08b1a4 Binary files /dev/null and b/web/packs/thumbnails/uSfGGAhudrItSvcleTMYerdK differ diff --git a/web/packs/thumbnails/ubSSMGoaqzlSlvVHQYGzAFAK b/web/packs/thumbnails/ubSSMGoaqzlSlvVHQYGzAFAK new file mode 100644 index 0000000..e4f0338 Binary files /dev/null and b/web/packs/thumbnails/ubSSMGoaqzlSlvVHQYGzAFAK differ diff --git a/web/packs/thumbnails/vLCGnSqSklkegpIekDGHhpgp b/web/packs/thumbnails/vLCGnSqSklkegpIekDGHhpgp new file mode 100644 index 0000000..0a32224 Binary files /dev/null and b/web/packs/thumbnails/vLCGnSqSklkegpIekDGHhpgp differ diff --git a/web/packs/thumbnails/vMtXxdKeutXrvRumimfxgDXr b/web/packs/thumbnails/vMtXxdKeutXrvRumimfxgDXr new file mode 100644 index 0000000..f6e5a6f Binary files /dev/null and b/web/packs/thumbnails/vMtXxdKeutXrvRumimfxgDXr differ diff --git a/web/packs/thumbnails/vvZuFIrszqpQyTOXBdZdktjc b/web/packs/thumbnails/vvZuFIrszqpQyTOXBdZdktjc new file mode 100644 index 0000000..d359b9d Binary files /dev/null and b/web/packs/thumbnails/vvZuFIrszqpQyTOXBdZdktjc differ diff --git a/web/packs/thumbnails/wKOWSKdkhlwzqurrRnrIKdIb b/web/packs/thumbnails/wKOWSKdkhlwzqurrRnrIKdIb new file mode 100644 index 0000000..a723190 Binary files /dev/null and b/web/packs/thumbnails/wKOWSKdkhlwzqurrRnrIKdIb differ diff --git a/web/packs/thumbnails/wzwTNxMTLqJZAOAAGjeQMBjm b/web/packs/thumbnails/wzwTNxMTLqJZAOAAGjeQMBjm new file mode 100644 index 0000000..9b0a327 Binary files /dev/null and b/web/packs/thumbnails/wzwTNxMTLqJZAOAAGjeQMBjm differ diff --git a/web/packs/thumbnails/zfVDftMtFSRstSzbuIyWTruS b/web/packs/thumbnails/zfVDftMtFSRstSzbuIyWTruS new file mode 100644 index 0000000..0d0a3cc Binary files /dev/null and b/web/packs/thumbnails/zfVDftMtFSRstSzbuIyWTruS differ