A minimal, protocol-level Telegram tool to extract internal sticker pack IDs using Telegram’s MTProto layer.
PackOwnerBot inspects Telegram sticker packs and reveals their internal ID — a value not exposed by the standard Telegram Bot API.
This project is intentionally:
- 🔍 Internal-focused (metadata & protocol internals)
- 🧼 Minimal & clean (no UI clutter)
- ⚙️ Tooling-oriented (research & inspection)
A public running instance of this project is available on Telegram:
- Username: @PackOwnerBot
- Link: https://t.me/PackOwnerBot
You can directly interact with the bot by sending a sticker.
This repository supports both major MTProto clients, organized by directory:
telethon/
pyrogram/
Each implementation is standalone and functionally equivalent.
- Raw MTProto access
- Uses
messages.getStickerSet - Reads packed
StickerSet.id - Ideal for low-level inspection & research
- MTProto-based client
- Cleaner abstraction for some workflows
- Same internal ID decoding logic
- Suitable for hybrid Bot API + MTProto setups
This project can operate in a two-layer architecture:
Telegram Bot API
↓
MTProto (Telethon / Pyrogram)
- Bot API → receives updates & commands
- MTProto → fetches internal sticker metadata
This hybrid approach enables access to data impossible to obtain via Bot API alone.
From a single sticker pack:
StickerSet.id (64-bit integer)
Which internally contains:
[ creator_id (32 bits) ][ internal_id (32 bits) ]
internal_id
The creator ID is shown only as derived metadata.
Sticker Pack Info
Creator ID : 93602376
Internal ID: 2
The packed ID is decoded using simple bit operations:
creator_id = sid >> 32
internal_id = sid & 0xFFFFFFFFPackOwnerBot/
├── telethon/
│ └── bot.py
├── pyrogram/
│ └── bot.py
└── README.md
-
Python 3.9+
-
One of the following:
- Telethon
- Pyrogram (+ tgcrypto)
Install dependencies:
pip install telethon
# or
pip install pyrogram tgcryptoSet your credentials inside the script:
API_ID = 12345678
API_HASH = "YOUR_API_HASH"
BOT_TOKEN = "YOUR_BOT_TOKEN"Get API credentials from:
https://my.telegram.org
python bot.py-
Requires MTProto access
-
Cannot be implemented using Bot API alone
-
Some sticker packs may belong to:
- Official Telegram accounts
- Deleted users
- GitHub: @ankit-chaubey
- Telegram: @ankify
- Email: Write Me
Independent developer focused on Telegram internals, MTProto research, and building clean, minimal tooling for real-world use.
https://github.com/ankit-chaubey/PackOwnerBot
This project is released under the MIT License.
You are free to use, modify, and distribute this software with attribution.
⭐ If you found this tiny piece of information useful, please consider forking the repository and giving it a star.
Thank you for your support!