Skip to content

SadahamAnuththara24315/Link-Shortner-Tg-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Link-Shortner-Tg-bot1

This is a cool telegram bot to short links. Simply start the bot and send /short [link you want to short]. If you want to deploy this bot follow these steps.

1. Create your own telegram bot.

  1. From @BotFather create new bot and get that bot's api key and replace it with [BOT API KEY].

2. Get ACCESS_TOKEN for bit.ly domain.

  1. Go to bit.ly and create a account. Got to Settings >> API >> (Enter password) > Generate Token and copy that token.
  2. Then Replace it with [ACCESS_TOKEN] in 33th line on bot.py.

3. Get API_TOKEN for cutt.ly domain.

  1. Go to cutt.ly and create a account.
  2. Then Go to API >> API KEY >> Manage APi (Under API key in right side of page) >> (Enter passwaord) > Change API Key.
  3. Then replace it with [API_KEY] in 40th line in bot.py.

4. Then deploy it.

If you don't know how do that join Cyber Hacker to learn it.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages