Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kevinnadar22/url-shortener-v2
- Owner: kevinnadar22
- License: agpl-3.0
- Created: 2022-02-10T12:19:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-30T07:58:57.000Z (about 1 month ago)
- Last Synced: 2024-12-30T08:35:38.297Z (about 1 month ago)
- Topics: batch-shortener, bot, droplink, heroku, shortener, telegram, telegram-bot, url-shortener
- Language: Python
- Homepage: https://telegram.me/wagmihuobibot
- Size: 476 KB
- Stars: 39
- Watchers: 2
- Forks: 186
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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)---
Table of Contents
---
## 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 botAdmin 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)