Coder Social home page Coder Social logo

libgnu / pastebin-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from buddhhu/pastebin-bot

0.0 0.0 0.0 19 KB

PasteBin Telegram Bot made using PastebinAPI in python.

License: GNU Affero General Public License v3.0

Shell 11.88% Python 88.12%

pastebin-bot's Introduction

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 ๐ŸŒŸ

pastebin-bot's People

Contributors

buddhhu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.