This script enables you to create your own Telegram bot capable of shortening any long URL.
To utilize this script, you'll first need to create a Telegram bot through Telegram's BotFather. Once you've obtained the API token, insert it into the script when prompted. Subsequently, restart the script to begin using your bot.
apt update
apt upgrade
apt-get install python
apt-get install git
git clone https://github.com/Cyber-Programer/URL-Shortner-Bot-Script
cd URL-Shortner-Bot-Script
pip install -r requirements.txt
python main.pyAfter Run the script....
If you encounter the following output:
[#] Bot Is Running..
[!] Bot API is not valid.Re-run the script.
If you see this output:
[#] Bot Is Running..
[!] I Can't Find Any Bot API
[~] Please Enter Your Bot API
=> Enter your Bot API token when prompted.
[ok] Your Bot Token Is ok. Wait For Adding It On File.
[#] Bot Is Running....
After entering your Bot token, the bot will start running.
- Initiate your bot by sending
/startor/helpcommands. - Follow the instructions provided by the bot.
IF YOU WANT TO CHANGE YOU BOT TOKEN THEN COME TO THSI BOT SCRIPT'S DIRECTORY THEN REMOVE THE API.TEXT FILE AND RE-RUN THE main.py SCRIPT.