Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kevinnadar22/url-shortener-v2

URL Shortener for Adlinkfly Based Websites
https://github.com/kevinnadar22/url-shortener-v2

batch-shortener bot droplink heroku shortener telegram telegram-bot url-shortener

Last synced: about 5 hours ago
JSON representation

URL Shortener for Adlinkfly Based Websites

Awesome Lists containing this project

README

        

# URL Shortener Bot V2

![Fork](https://img.shields.io/github/forks/kevinnadar22/URL-Shortener-V2?style=for-the-badge)
![Stars](https://img.shields.io/github/stars/kevinnadar22/URL-Shortener-V2?color=%23&style=for-the-badge)
![License](https://img.shields.io/github/license/kevinnadar22/URL-Shortener-V2?style=for-the-badge)
![Issues](https://img.shields.io/github/issues/kevinnadar22/URL-Shortener-V2?style=for-the-badge)

---





Logo

URL Shortener Bot V2


A Shortener and Convertor Bot


·
Report Bug
·
Features
·
Deploy
·
Variables


Table of Contents


  1. Description

  2. Usage

  3. Commands


  4. About


  5. Deploy

  6. Tech Stack

  7. Support

  8. Disclaimer

  9. Credits

---

## Description

> **Now this bot can be used by users also. Only admin has access to channel support. Bot Owner API will be used in channel post converting. You can restrict users from using this bot by setting env `IS_PRIVATE` to True**

**This Is Just An Simple Advance Shortener and Converter Bot Completely Rewritten Version Of [URL Shortener](https://github.com/t2links/URL-Shortener-bot)**

**Just Send Any Link To Short. It Will Short Link or Save it to your MDisk Account**

## Usage

\***\*How To Use Me!?\*\***

- -> Send any link or post of links

- -> Add me to your channel as admin with full previlages to convert channel's post

> For more information about usages, see the [documentation](https://github.com/kevinnadar22/URL-Shortener-V2/wiki/Usage)

## Commands

```
start - start it
help - help Command
about - about Command
method - to set your preferred method
shortener_api - set shortener api
mdisk_api - set mdisk api
header - set header
footer - set footer
username - set username to replace others
banner_image - set banner image
me - know about you
base_site - change base site
include_domain - set include domain
exclude_domain - set exclude domain
stats - Stats of the server and bot

Admin only use commands

batch -100XX - to convert link for multiple posts
logs - Send the log messages
restart - restart / re-deploy the server
ban - to ban users
unban - to unban users
info - get user info
```

## About

### Features

- [x] Shortener
- [x] Mdisk Convertor
- [x] Channels Support
- [x] Batch Support
- [x] Multiple Methods Available
- [x] Bypass Shortener Links
- [x] [Hyperlink Support](https://example.com/)
- [x] [Request Features](https://t.me/ask_admin001)

### Required Variables

| Variable Name | Value |
| -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `API_ID` (required) | Telegram api_id obtained from . |
| `API_HASH` (required) | Telegram api_hash obtained from . |
| `BOT_TOKEN` (required) | Create a bot using @BotFather, and get the Telegram API token. |
| `ADMINS` | ID of Admins. Separate multiple Admins by comma |
| `OWNER_ID` (required) | ID of Owner. |
| `DATABASE_URL` (required) | [mongoDB](https://www.mongodb.com) URI. Get this value from [mongoDB](https://www.mongodb.com). For more help watch this [video](https://youtu.be/1G1XwEOnxxo) |
| `DATABASE_NAME` (required) | Name of the database in [mongoDB](https://www.mongodb.com). For more help watch this [video](https://youtu.be/1G1XwEOnxxo) |

### Optional Variables

> For more information about optional variables see the [wiki documentation](https://github.com/kevinnadar22/URL-Shortener-V2/wiki/About#optional-variables)

## Deploy

You can deploy this bot anywhere.

| | Name | Deploy |
| ------------------------------------------------------ | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![Replit](assets/img/replit.jpg) | Replit (Recommended) | [See Guide](/guides/replit.md) |
| [![Heroku](assets/img/heroku.png)](https://heroku.com) | Heroku | [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/kevinnadar22/URL-Shortener-V2) |
| ![Koyeb](assets/img/koyeb.png) | Koyeb | [![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/apps/deploy?type=git&repository=kevinnadar22/url-shortener-v2&name=url-shortener-v2&run_command=python3%20-m%20main&branch=main) |
| ![VPS](assets/img/vps.png) | VPS | [See Guide](/guides/vps.md) |

## Tech Stack

**Language:** [Python](https://www.python.org/) 3.10.2

**Library:** [Pyrogram](https://github.com/pyrogram/pyrogram) 2.0.30

## Support

Contact Our [DEV](https://www.telegram.dog/ask_admin001) For Support/Assistance

Report Bugs, Give Feature Requests There..
Do Fork And Star The Repository If You Liked It.

## Disclaimer

[![GNU Affero General Public License v3.0](https://www.gnu.org/graphics/agplv3-155x51.png)](https://www.gnu.org/licenses/agpl-3.0.en.html#header)
Licensed under [GNU AGPL v3.0.](LICENSE)
Selling The Codes To Other People For Money Is _Strictly Prohibited_.

## Credits

- [Thanks To Me](https://github.com/Kevinnadar22)