Skip to content

PasteBin Telegram Bot made using PastebinAPI in python.

License

Notifications You must be signed in to change notification settings

buddhhu/PasteBin-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PasteBin-Bot

Elegant Open Source Pastebin Telegram Bot

Deploy

  • Get your Environment Variables

  • Deploy to Heroku , Click the Icon below to deploy

    Deploy

  • 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

Features

  • 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

Variables

  • 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)

Mandatory Environment Variables

  • API_ID
  • API_HASH
  • BOT_TOKEN
  • PASTEBIN_API_KEY

Extra Environment Variables

  • PASTE_EXPIRY
  • PRIVATE_PASTE

Credits

If this has been helpful and you appreciate our work , support us by giving us a Star 🌟

About

PasteBin Telegram Bot made using PastebinAPI in python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published