Mr-Sunglasses / VidLibreBot

Open-Bot for Telegram
https://t.me/Source_101_bot
Creative Commons Zero v1.0 Universal
10 stars 10 forks source link
hactoberfest telegram-bot

Pastebin-Telegram 📺

Open-Bot for Telegram

GitHub issues GitHub forks GitHub stars GitHub license Open Source Love svg1 PRs Welcome contributions welcome GitHub contributors

BROWSER USAGE

https://paste.rs/web

API USAGE

POST https://paste.rs/

Send the raw data along. Will respond with a link to the paste.

Pasting is heavily rate limited.


GET https://paste.rs/<id>

Retrieve the paste with the given id as plain-text.


GET https://paste.rs/<id>.<ext>

Retrieve the paste with the given id. If ext is a known code file extension, the paste is syntax highlighted and returned as HTML. If ext is a known file extension, the paste is returned with the extension's corresponding Content-Type. Otherwise, the paste is returned as plain text.


DELETE https://paste.rs/<id>

Delete the paste with the given id.

Examples

Invoke-RestMethod -Uri "https://paste.rs" -Method Post -InFile .\file.txt

echo "Hi!" | Invoke-RestMethod -Uri "https://paste.rs" -Method Post

Invoke-RestMethod -Uri "https://paste.rs/<id>" -Method Delete

function Paste([string]$file) {
              $Data = if ($file) {Get-Content $file} else {$input}
              Invoke-RestMethod -Uri "https://paste.rs" -Method Post -Body $Data
          }

Run Through Docker

docker build -t container_name .

docker run -e TOKEN=TELEGRAM_BOT_TOKEN -e username=INTA_USER-NAME -e password=INSTA_PASSWORD container_name:latest

💪 Thanks to all Wonderful Contributors

Thanks a lot for spending your time helping Pastebin-Telegram grow.
Thanks a lot! Keep rocking 🍻

Contributors

🙏 Support++

This project needs your shiny star ⭐.
Don't forget to leave a star ⭐️

forthebadge made-with-python forthebadge