mirror of
https://github.com/maunium/stickerpicker.git
synced 2024-11-10 05:37:22 +01:00
Merge remote-tracking branch 'celogeek/fixes-ios-and-more'
This commit is contained in:
commit
591137ccb3
@ -42,6 +42,7 @@ if TYPE_CHECKING:
|
||||
url: str
|
||||
info: MediaInfo
|
||||
id: str
|
||||
msgtype: str
|
||||
else:
|
||||
MediaInfo = None
|
||||
StickerInfo = None
|
||||
|
@ -76,4 +76,5 @@ def make_sticker(mxc: str, width: int, height: int, size: int,
|
||||
"mimetype": "image/png",
|
||||
},
|
||||
},
|
||||
"msgtype": "m.sticker",
|
||||
}
|
||||
|
@ -138,11 +138,12 @@ async def main(args: argparse.Namespace) -> None:
|
||||
if args.list:
|
||||
stickers: AllStickers = await client(GetAllStickersRequest(hash=0))
|
||||
index = 1
|
||||
width = len(str(stickers.sets))
|
||||
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]:
|
||||
|
Loading…
Reference in New Issue
Block a user