Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lorenzo9uerra/tgbot

Simple Telegram Bot to upload files from command line
https://github.com/lorenzo9uerra/tgbot

Last synced: about 1 month ago
JSON representation

Simple Telegram Bot to upload files from command line

Awesome Lists containing this project

README

        

# TGbot

This is a very simple telegram bot meant to easily upload files from command
line.

## Installation

Clone the repo:\
`git clone https://github.com/lnwor/tgbot && cd tgbot`

Install the package:\
`cargo install --path .`

Create the configuration file with your token here: `~/.config/tgbot.yml`.

An example of configuration file can be found at the root of the repo.

```yaml
token: "abcdefghijklmnopqrstuvwxyz123456789"
```

## Usage

After you set up your configuration file, to use the bot you just have to run
the following command:\
`tgbot /path/to/file "caption to add to the file"`

### Limits

- The telegram Bot API has a limit of 50MB per file.
- After 1 minute of upload time the connection times out.