Telegram Bot to shorten urls with Kutt.it This is very feature-light and breaks easily, but it does the trick.
Setup is super simple:
- Create a kutt.it account and set it up with the domain you want to shorten to
- Host this somewhere. I am running it on repl.it
- Set the following environment variables:
API_KEY
is your Kutt API KeyDOMAIN
is the domain to shorten toBOT_TOKEN
is the token for the Telegram botUSERNAME
is the Telegram username authorized to shorten links.LOGGING_CHAT_ID
is the channel ID for logging messages to be sent to. Note: Before adding bot to logging channel, it's suggested that you go to BotFather, enable groups for the bot and disable group privacy mode. Then, after adding the bot to the logging channel and getting the channel id, disable groups and enable privacy mode.