Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.
/ brevis Public archive

Telegram Bot to shorten urls with Kutt.it

License

Notifications You must be signed in to change notification settings

saharshxyz/brevis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brevis Run on Repl.it

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:

  1. Create a kutt.it account and set it up with the domain you want to shorten to
  2. Host this somewhere. I am running it on repl.it
  3. Set the following environment variables:
    1. API_KEY is your Kutt API Key
    2. DOMAIN is the domain to shorten to
    3. BOT_TOKEN is the token for the Telegram bot
    4. USERNAME is the Telegram username authorized to shorten links.
    5. 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.

About

Telegram Bot to shorten urls with Kutt.it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published