JusticeBoi / Telegram-File-Sender-Bot

Command Line Tool to send files to yourself/groups.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram File Sender Bot

I had this need to send compressed files/folders through the command line to my telegram bot, and this small script came in handy.

Usage

  • Find your chat_id by: (your bot token is the token from the botfather )
curl https://api.telegram.org/bot**YourBOTToken**/getUpdates
  • Fill chatid and bot_taken variables inside the script

  • Send Files by:

./SendTelegram file1 file2 file3

Dependencies

  • curl
  • tar

I believe these dependencies are present in most linux machines.

Sources

Some helpful links that made this script possible:

About

Command Line Tool to send files to yourself/groups.

License:GNU General Public License v3.0