mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 00:35:36 +00:00
getstickers 添加提醒
This commit is contained in:
parent
6b0c9c09d3
commit
3f4107e49d
@ -9,13 +9,8 @@ from telethon.errors import MessageNotModifiedError
|
||||
from telethon.errors.rpcerrorlist import StickersetInvalidError
|
||||
from pagermaid import working_dir
|
||||
from telethon.tl.types import (
|
||||
DocumentAttributeFilename,
|
||||
DocumentAttributeSticker,
|
||||
InputMediaUploadedDocument,
|
||||
InputPeerNotifySettings,
|
||||
InputStickerSetID,
|
||||
InputStickerSetShortName,
|
||||
MessageMediaPhoto
|
||||
)
|
||||
from pagermaid.listener import listener
|
||||
from pagermaid.utils import alias_command
|
||||
@ -29,7 +24,9 @@ except ImportError:
|
||||
|
||||
|
||||
@listener(is_plugin=True, outgoing=True, command=alias_command("getstickers"),
|
||||
description="获取整个贴纸包的贴纸,false 关闭 tgs 转 gif;任意值开启下载所有贴纸包;转 gif 需要手动安装 pypi 依赖 lottie[gif] 。",
|
||||
description="获取整个贴纸包的贴纸,false 关闭 tgs 转 gif;任意值开启下载所有贴纸包;\n"
|
||||
"转 gif 需要手动安装 pypi 依赖 lottie[gif] \n"
|
||||
"Ubuntu 转换出错请先运行 `-sh apt install libpangocairo-1.0-0 -y`。",
|
||||
parameters="<任意值>")
|
||||
async def getstickers(context):
|
||||
tgs_gif = True
|
||||
|
Loading…
Reference in New Issue
Block a user