Giter Site home page Giter Site logo

bipuldey19 / url-shortener-bot-for-telegram Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 3.0 115 KB

This bot can shorten your URLs & magnet links. And also can unshorten your shorten URLs.

Home Page: https://t.me/AllInOneUrlShortenerBot

JavaScript 99.61% Shell 0.39%
telegram-bot-api telegram-url telegram-url-shortener-bot url-shortener url-shortener-api url-shortener-bot url-shortener-bot-telegram url-shortener-telegram

url-shortener-bot-for-telegram's Introduction

URL Shortener Bot for Telegram

A Node.js Telegram bot which can shorten or unshorten your URLs. It can also shorten your magnet links.

This Bot won't work in groups. So it will be a wise decision if you disallow groups from bot father. Go to @BotFather > Bot Settings > Allow Groups? > Turn groups off

๐Ÿ› ๏ธ Built by

๐Ÿš€ Features

  • Supports 11 URL Shortener
    • tinyurl.com, cutt.ly, 1pt.co, is.gd, da.gd, v.gd, vo.la, bc.vc, goolnk.com, chilp.it, clck.ru
  • Supports custom alias
    • tinyurl.com, cutt.ly, 1pt.co, is.gd, da.gd, v.gd, vo.la
  • Magnet link Shortener
    • mgnet.me
  • URL Unshortener

โ‰๏ธ How to deploy

  1. Fork this repo
  2. From BotFather make a new bot and copy the BOT_TOKEN and paste it in the sample.env
  3. Write /mybots and select your bot and then **Edit Bot > Edit Commands** and paste the below Commands
  4. unshorten - Unshorten a shortened URL (/unshorten ) ๐Ÿ—œ
    features - Show the list of features ๐Ÿš€
    start - Check if I am alive ๐Ÿคจ
    help - Get some help ๐Ÿ†˜
    
  5. Go to TinyUrl, Cuttly, Vola, Bcvc and sign up to get an api key
  6. Copy the api keys and paste them in the sample.env file
  7. Press Commit New File
  8. Go to Replit and signup with your github account
  9. Press + Create tab
  10. Press Import from Github and select the forked repo
  11. Go to the Secrets tab

  12. Add the sample.env keys and values one by one and click Add new Secret

  13. After adding all 5 Secrets it should look like this

  14. Press the Run button and you should see something like this in the console

  15. Copy the url from the browser preview tab

  16. Add the url in a cron job website to prevent replit from going to sleep
  17. Go to Cron-job and sign up
  18. Then go to the Cronjobs tab and click Create Cronjob button
  19. Give it a title and paste the copied replit url in the URL field then change the Execution Schedule to Every 1 minute(s)

  20. Then press Create. Done! Now just check the bot it should work fine 24/7

๐Ÿ–ผ๏ธ Screenshot

๐Ÿ“จ Feedback

  • If you have any feedback or any suggestions, please reach out to me at Bipul Dey

  • Feel free to give Pull Requests and Bug Report

๐Ÿ–ค Please give this repo a star if you like it. This will encourage me to do more works like this

url-shortener-bot-for-telegram's People

Contributors

bipuldey19 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.