@borg.on(admin_cmd(pattern='packinfo'))
async def _(event):
    if event.fwd_from:
        return
    if (not event.is_reply):
        (await event.edit("Reply to any sticker to get it's pack info."))
        return
    rep_msg = (await event.get_reply_message())
    if (not rep_msg.document):
        (await event.edit("Reply to any sticker to get it's pack info."))
        return
    stickerset_attr_s = rep_msg.document.attributes
    stickerset_attr = find_instance(stickerset_attr_s, DocumentAttributeSticker)
    if (not stickerset_attr.stickerset):
        (await event.edit('sticker does not belong to a pack.'))
        return
    get_stickerset = (await borg(GetStickerSetRequest(InputStickerSetID(id=stickerset_attr.stickerset.id, access_hash=stickerset_attr.stickerset.access_hash))))
    pack_emojis = []
    for document_sticker in get_stickerset.packs:
        if (document_sticker.emoticon not in pack_emojis):
            pack_emojis.append(document_sticker.emoticon)
    (await event.edit(f'''**Sticker Title:** `{get_stickerset.set.title}
`**Sticker Short Name:** `{get_stickerset.set.short_name}`
**Official:** `{get_stickerset.set.official}`
**Archived:** `{get_stickerset.set.archived}`
**Stickers In Pack:** `{len(get_stickerset.packs)}`
**Emojis In Pack:** {' '.join(pack_emojis)}'''))
@borg.on(admin_cmd(pattern='packinfo'))
async def _(event):
    if event.fwd_from:
        return
    if (not event.is_reply):
        (await event.edit("Reply to any sticker to get it's pack info."))
        return
    rep_msg = (await event.get_reply_message())
    if (not rep_msg.document):
        (await event.edit("Reply to any sticker to get it's pack info."))
        return
    stickerset_attr_s = rep_msg.document.attributes
    stickerset_attr = find_instance(stickerset_attr_s, DocumentAttributeSticker)
    if (not stickerset_attr.stickerset):
        (await event.edit('sticker does not belong to a pack.'))
        return
    get_stickerset = (await borg(GetStickerSetRequest(InputStickerSetID(id=stickerset_attr.stickerset.id, access_hash=stickerset_attr.stickerset.access_hash))))
    pack_emojis = []
    for document_sticker in get_stickerset.packs:
        if (document_sticker.emoticon not in pack_emojis):
            pack_emojis.append(document_sticker.emoticon)
    (await event.edit(f'**Sticker Title:** `{get_stickerset.set.title}
`**Sticker Short Name:** `{get_stickerset.set.short_name}`
**Official:** `{get_stickerset.set.official}`
**Archived:** `{get_stickerset.set.archived}`
**Stickers In Pack:** `{len(get_stickerset.packs)}`
**Emojis In Pack:** {' '.join(pack_emojis)}'))