Telegram 贴纸包下载插件
Project description
安装
使用nb-cli [推荐]
nb plugin install nonebot-plugin-tg-stickers-downloads
使用pip
pip install nonebot-plugin-tg-stickers-downloads
使用
命令用法:
/tgsd https://t.me/addstickers/<StickerPackName>
示例:
/tgsd https://t.me/addstickers/TgStickerPackDemo
外部依赖安装(macOS / Linux)
说明:
.webm -> .gif需要ffmpeg(可选gifsicle优化体积).webp -> .png默认使用 Pillow;配置tgsd_imagemagick_path时优先使用 ImageMagick
macOS(Homebrew):
brew install ffmpeg gifsicle imagemagick
Linux(Debian/Ubuntu):
sudo apt update
sudo apt install -y ffmpeg gifsicle imagemagick
Linux(Fedora):
sudo dnf install -y ffmpeg gifsicle ImageMagick
如果你的可执行文件不在系统 PATH 中,请在配置里显式填写:
tgsd_ffmpeg_pathtgsd_gifsicle_pathtgsd_imagemagick_path
外部依赖安装 (Windows)
点击展开
我不知道
配置项
配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可
tgsd_bot_token [必填]
- 类型:
str - 默认值:
None - 说明:用于获取贴纸包信息与文件下载地址的 Telegram Bot Token
tgsd_proxy [选填]
- 类型:
str - 默认值:
None - 说明: 配置用于访问 Telegram Bot Api 的代理 例如
tgsd_proxy="http://127.0.0.1:6152"
tgsd_ffmpeg_path [选填]
- 类型:
str - 默认值:
None - 说明:
ffmpeg可执行文件的绝对路径. 用于.webm -> .gif转换; 不填写时将自动从系统PATH中查找ffmpeg
tgsd_gifsicle_path [选填]
- 类型:
str - 默认值:
None - 说明:
gifsicle可执行文件的绝对路径. 用于对生成的 GIF 进行进一步压缩优化; 不填写时将自动从系统PATH中查找, 找不到则跳过优化
tgsd_imagemagick_path [选填]
- 类型:
str - 默认值:
None - 说明:ImageMagick 可执行文件路径(
magick或convert)仅在配置该项时优先使用 ImageMagick 进行.webp -> .png转换; 未配置时默认使用 Pillow
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_tg_stickers_downloads-0.1.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_tg_stickers_downloads-0.1.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
881cc3a761ac496a024c8e4d5d2734fe9db3c3fafa66da9de3a64db40f430614
|
|
| MD5 |
a5bbb49d2656593fae1c4bcfcd25eadc
|
|
| BLAKE2b-256 |
aa8db4f37831f99ccf6ad150293816e0e1dea3ab8c23afd835fb6b8be52f0f70
|
File details
Details for the file nonebot_plugin_tg_stickers_downloads-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_tg_stickers_downloads-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.2 {"installer":{"name":"uv","version":"0.11.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1f31f98a83f954a940f25e9cca6bc8058ab08c8433b3dbf13027425c8400645
|
|
| MD5 |
90cc3d89bb636b1d84ade3809521949e
|
|
| BLAKE2b-256 |
2e36d63f0b871996d8632403c6820683b53b88505d5aa6ff11273704eb814be4
|