Welcome to the Telegram Link Shortener Bot project! This bot allows users to shorten URLs using a simple command. It's built with Node.js, the Telegram Bot API, and MongoDB for data storage.
- Clone this repository:
git clone https://github.com/softmuneeb/tg-bot-link-shorten
- Install dependencies:
npm install
- Set up environment variables: Create a
.env
file in the project root and provide your Telegram Bot Token, MongoDB credentials, and other necessary settings. - To expose local server for testing ../../Downloads/./ngrok http --domain=turtle-allowed-ladybug.ngrok-free.app 4005
- Start the bot:
npm start
Commands for Admins:
- Block User
- Unblock User
- View Users
- View Analytics
Commands for Normal Users:
- Shorten a URL
- Buy a domain name
- Subscribe to plans
- View my subscribed plan
- View my shortened links
- View my domains
- JavaScript: Serves as the foundational development language.
- Telegram Bot API: Enables the creation of a bot and facilitates message reception.
- Node.js: Empowers the development of both server-side logic and the bot itself in JavaScript.
- MongoDB: Used for persistently storing user data, ensuring it remains intact over time.
- GraphQL API: Employed to store domain-related data in Railway Hosting.
- npm: Facilitates the seamless installation of packages and dependencies.
- Blockbee API: Empowers the creation of crypto payments.
- Axios: Enables the invocation of various APIs.
- dotenv: Safely loads and manages environment variables.
- Express: Facilitates the establishment of endpoints for communication with payment gateways through webhooks.
- Fincra API: Used for the creation of bank payments.
- nanoid: Generates concise 5-digit unique identifiers.
If you're interested in contributing to this project, please read the Contributing Guidelines to get started.
This project is licensed under the MIT License.