🇬🇧 Telegram Link Shortener Bot (11 + 9 Shorteners)
🇹🇷 Telegram Link Kısaltıcı Bot (11 + 9 Kısaltıcı)
🔥 Repo: HuzunluArtemis/ShortenerBot
ShortenerBot:
All supported domains: v.gd, da.gd, is.gd, ttm.sh, clck.ru, chilp.it, osdb, tinyurl, owly
Requires APIKEY: shorte.st, bc.vc, pubiza, linkvertise, bit.ly, post, cutt.ly, adf.ly, shortcm, tinycc, ouo.io
Setting up config file
Required Variables:
BOT_TOKEN
: Telegram Bot Token. Example:3asd2a2sd32:As56das65d2as:ASd2a6s3d26as
APP_ID
: Telegram App ID. Example:32523453
API_HASH
: Telegram Api Hash. Example:asdasdas6d265asd26asd6as1das
AUTH_IDS
: Auth only some groups or users. If you want public, leave it empty or give0
. Example:-100656 56191 -10056561
BOT_USERNAME
: Your bot’s username. without @. Example:ShortenerBot
Other Variables:
OWNER_ID
: Bot’s owner id. Send/id
tot.me/MissRose_bot
in private to get your id Required for logs. If you don’t want, leave it empty- Shortener Variables:
- Not required signup:
v.gd
,da.gd
,is.gd
,ttm.sh
,clck.ru
,chilp.it
,osdb
,owly
- Required signup:
shorte.st
,bc.vc
,pubiza
,linkvertise
,bit.ly
,post
,cutt.ly
,adf.ly
,shortcm
,tinycc
,tinyurl
,ouo.io
shortest
: Enter Api Key if you want.bcvc
: Enter Api Key if you want. bc.vc sample api:"2dgdg5f1fgag7cg6f0622&uid=45634"
pubiza
: Enter Api Key if you want. pubiza sample api:"hsdfgCgdgrsdfgsfgfgsdgLsfgXef mainstream"
. Split api key and ad type with a space. Genel içerik için:mainstream
Yetişkin içerik için:adult
İçerik Kilidi için:content_locker
linkvertise
: Enter Api Key if you want.bitly
: Enter Api Key if you want.post
: Enter Api Key if you want.cuttly
: Enter Api Key if you want.adfly
: Enter Api Key if you want. adfly sample api:"hsdfgCgdgrsdfgsfgfgsdgLsfgXef 51515155"
Split api key and user id with a space.shortcm
: Enter Api Key if you want. shortcm sample api:"hsdfgCgdgrsdfgsfgfgsdgLsfgXef abcdotcom"
Split api key and domain with a space.tinycc
: Enter Api Key if you want. tinycc sample api:"hsdfgCgdgrsdfgsfgfgsdgLsfgXef tinyccusername"
Split api key and username with a space.ouoio
: Enter Api Key if you want.
- Not required signup:
AUTO_DEL_SEC
: Global auto deletion seconds. Default 10.AUTO_SHORT_MOTOR
: If you want auto shorting, fill likeis.gd
. Useful for groups / channels. Auto Shorting. Default None. If you dont want, dont fill.DELETE_AUTO_SHORTENED
: Auto delete, auto-shortened link; afterAUTO_DEL_SEC
secs. Default False.DELETE_COMMAND_SHORTENED
: Auto delete, shortened with command link; fterAUTO_DEL_SEC
secs. Default False.
Deploy
Deploy to Heroku:
- Open me in new tab
- Fill required variables
- Fill app name (or dismiss)
Deploy to Local:
- install python to your machine
git clone https://gitlab.com/HuzunluArtemis/ShortenerBot
cd ShortenerBot
pip install -r requirements.txt
python bot.py
Deploy to Vps:
git clone https://gitlab.com/HuzunluArtemis/ShortenerBot
cd ShortenerBot
- For Debian based distros
sudo apt install python3 && sudo snap install docker
- For Arch and it’s derivatives:
sudo pacman -S docker python
Lisans
You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Yorumlar yüklenmezse JavaScript'i etkinleştir.