Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.36 KB

README.md

File metadata and controls

18 lines (13 loc) · 1.36 KB

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.