This method is easier, faster. Recommended for most users.
token
needed for uploading and downloading Telegram stickers
(Note: If you don't want to do this, you can still upload stickers manually by using this: https://t.me/stickers)
- Contact botfather on telegram: https://t.me/botfather
- Follow instructions here to create a bot and get token: https://core.telegram.org/bots/features#creating-a-new-bot
- The token looks like this:
110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw
- You need to send
/start
to your newly created bot
user_id
needed for uploading Telegram stickers. Note that the user_id should be from a real account, not from the bot account.
(Note: If you don't want to do this, you can still upload stickers manually by using this: https://t.me/stickers)
Follow instruction from this post: https://stackoverflow.com/a/52667196
Sticker pack created by bot should end with this suffix as enforced by Telegram.
To avoid this, upload telegram stickers by using Telethon or manually using https://t.me/stickers
This method is much slower during upload, but can avoid problem of sticker link ends with _by_xxxbot.
Reference: https://core.telegram.org/api/obtaining_api_id#obtaining-api-id
- Visit https://my.telegram.org
- Login using your phone number
- Go to "API development tools"
- Fill form
- App title: sticker-convert
- Short name: sticker-convert
- URL: www.telegram.org
- Platform: Desktop
- Description: sticker-convert
- Note down api_id and api_hash
- For GUI, press "Generate" next to "Telethon authorization". For CLI, use "--telethon-setup".
- Enter "api_id" and "api_hash" when prompted
- Enter phone number with country code (e.g. "+447700900142")
- A verification code will be sent to your Telegram account. Enter the verification code.
- Setup complete
Note: api_id, api_hash are saved and "telethon-x.session" file will generated in credentials directory. You need not set up Telethon next time as long as these info are present.