Elegant Open Source Pastebin Telegram Bot
-
Get your Environment Variables
-
Local Deployment
Execute the following commands
git clone https://github.com/buddhhu/PasteBin-Bot
cd PasteBin-Bot
pip install -r requirements.txt
nano sample.env
Fill your Variables in this and save it as .env
.
Now execute python paste-it.py
- Supports readable files too
- For custom paste name -
/paste name
- For custom highlights -
/paste None format
- For custom name and highlights -
/paste name format
- Highlight formats can be found here
-
API_ID
- Get Your API_ID from here -
API_HASH
- Get Your API_HASH from here -
BOT_TOKEN
- Get it from @botfather -
PASTEBIN_API_KEY
- Sign Up/Sign In and get Your PASTEBIN_API_KEY from here -
PASTE_EXPIRY
- Set the key to amount of time you want the Paste to be deleted in i.e 10M (N, 10M, 1H, 10, 1M)
N -Never
10M -10 minutes
1H -1 hour
1D -1 day
1M -1 month
-
PRIVATE_PASTE
- Set the Value (NO, YES)
API_ID
API_HASH
BOT_TOKEN
PASTEBIN_API_KEY
PASTE_EXPIRY
PRIVATE_PASTE
If this has been helpful and you appreciate our work , support us by giving us a Star 🌟