Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HeySreelal/BitLinker
Just a Telegram Bot to shorten your long links!
https://github.com/HeySreelal/BitLinker
Last synced: 3 months ago
JSON representation
Just a Telegram Bot to shorten your long links!
- Host: GitHub
- URL: https://github.com/HeySreelal/BitLinker
- Owner: HeySreelal
- Created: 2022-01-05T18:06:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-07T14:28:27.000Z (almost 3 years ago)
- Last Synced: 2024-07-18T15:31:46.911Z (4 months ago)
- Language: TypeScript
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BitLinker
Just a Telegram bot to shorten your links. Purely written in Typescript using [node-telegram-bot-api](https://github.com/yagop/node-telegram-bot-api).
If you want to see a test flight, you can check out the [@BitLinkerBot](https://t.me/BitLinkerBot) on Telegram.## Prerequisites:
1. [node.js](https://nodejs.org/en/)
2. [TypeScript](https://www.typescriptlang.org/)## Setup
1. Send `/newbot` to [@BotFather](https://t.me/botfather) and follow the instructions to create a bot.
2. Clone the repo.
3. Run `npm install` to install the dependencies.
4. Add an .env file with following content:
- TOKEN: your bot token (you'll get this from @BotFather on successful bot creation).
- BITLY_TOKEN: Your Access token for bit.ly, [see more here](https://app.bitly.com/settings/api/).
Your `.env` file should look like this:```
TOKEN=
BITLY_TOKEN=
```4. Run `tsc` to compile the code.
5. Run `node bin/main` to run the bot!### You're all set to go! 🚀