Terminal utility, for sending data directly to telegram users via pipes, files(pure and ziped) or just text.
Project description
Teleout
Pipe stdout and files to telegram
This software uses userbots, so you can send messages from your account
Powered with love(and python with pyrogram)
Examples
ls -la | teleout -u teadove -c
- send output ofls -la
to user @TeaDove with monospace fontteleout -u teadove -f main.py "<b>This is main.py!</b>" --html
- send file main.py, to @TeaDove, with bolded text "This is main.py!"teleout -f data
- zip folder data and send it to Saved Messages
Features
- Send files, directories(they are ziped automatically), 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: teleout [-h] [-u USER] [-f FILE] [-c] [-F] [--new-user] [--new-app] [--html] [--ansi-colors] [message [message ...]]
Pipe stdout and files to telegram(via userbot).
positional arguments:
message specify text of message to send, html parsing enabled, overwrites pipes.
optional arguments:
-h, --help show this help message and exit
-u USER, --user USER specify user to send, default is you.
-f FILE, --file FILE send file, text will be sended as caption. If folder is sended, will zip and send
-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
--new-user reloging to telegram
--new-app enter new api_id/api_hash combination
--html parse as html and apply <b>, <i> etc. tags
--ansi-colors don't remove ANSI escape codes from piped strings
Installation
pip install teleout
- Get api_id and api_hash from here
- Start teleout with
teleout
, enter your api_id, api_hash, loggin, code and password. - Enjoy!
Works fine on Linux and Mac OS.
don't worry, there are no sniffer and smth like that
Requirements
python>=3.7
pyrogram>=1.0.7
tqdm>=4.57.0
tgcrypto
TODO
- UI for sending messages to chats without username
- Bots support
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.0.9.tar.gz
(6.3 kB
view hashes)