Giter VIP home page Giter VIP logo

teleout's Introduction

Teleout

Pipe stdout and files to telegram
This software uses telegram bots
Powered with love
Go version: https://github.com/teadove/goteleout

Examples

  • ls -la | teleout -u 418878871 -c - send output of ls -la to chat 418878871 with monospace font
  • teleout -u 418878871 -f main.py "<b>This is main.py!</b>" --html - send file main.py, with bolded text "This is main.py!"

Features

  1. Send files, text messages directly to telegram
  2. Pipe to teleout(ls | teleout will work)
  3. HTML parse mode supported
  4. Easy install and use
  5. Captions for files

Manual

usage: main.py [-h] [-u USER] [-f FILE] [-c] [-F] [-t TOKEN] [-n] [-q] [--html] [--ansi-colors] [message [message ...]]

Pipe stdout and files to telegram(via bots).

positional arguments:
  message               specify text of message to send, overwrites pipes.

optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  specify user with chat_id to send
  -f FILE, --file FILE  send file, text will be sent as caption.
  -c, --code            send text with <code> text to make it monospace, apply tags escaping and send as html
  -F, --force-file      send text in file even if it is shorter than 4096 symbols
  -t TOKEN, --token TOKEN
                        specify telegram api token. if not set will use default
  -n, --new             use with --token or --user to set new default
  -q, --quite           send message without notifications, default is false
  --html                parse as html and apply <b>, <i> etc. tags
  --ansi-colors         don't remove ANSI escape codes from piped strings

Installation

  1. From pip as package
    pip install teleout
    or from git as script
wget https://raw.githubusercontent.com/TeaDove/teleout/master/teleout/main.py -O teleout.py && chmod u+x teleout.py
  1. Get bot token from @BotFather
  2. Start teleout with teleout, enter your token, default chat id. All data will be saved in ~/.config/teleout.json
  3. Enjoy!
    Works fine on Linux and Mac OS.

don't worry, there are no sniffer and smth like that

for feedbacks, write me here
inspired by https://termbin.com

teleout's People

Contributors

teadove avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.