Terminal utility, for sending data directly to telegram users from bot via pipes, files or just text.
Project description
Teleout
Pipe stdout and files to telegram
This software uses telegram bots
Powered with love
Examples
ls -la | teleout -u 418878871 -c
- send output ofls -la
to chat418878871
with monospace fontteleout -u 418878871 -f main.py "<b>This is main.py!</b>" --html
- send file main.py, with bolded text "This is main.py!"
Features
- Send files, text messages directly to telegram
- Pipe to teleout(
ls | teleout
will work) - HTML parse mode supported
- Easy install and use
- 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
- From pip
pip install teleout
- From git
wget https://raw.githubusercontent.com/TeaDove/teleout/master/teleout/main.py -O teleout.py && chmod u+x teleout.py
- Get bot token from @BotFather
- Start teleout with
teleout
, enter your token, default chat id. - 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
teleout-1.1.2.tar.gz
(17.2 kB
view details)
File details
Details for the file teleout-1.1.2.tar.gz
.
File metadata
- Download URL: teleout-1.1.2.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89c5589d8806ff1e2ea13efe8b254631379d21a2517414b07b1663a963430bcc |
|
MD5 | 3d3a60a136d6e9a40b2d52777b89d6c7 |
|
BLAKE2b-256 | 168be44f1c03d7c0f153b9de2b9332589c0f2d3e05015970314c0d35912f8c7b |