Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/lorenzo9uerra/tgbot
- Owner: lorenzo9uerra
- License: gpl-3.0
- Created: 2022-02-23T13:52:51.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-23T15:39:33.000Z (almost 3 years ago)
- Last Synced: 2023-11-23T16:33:56.224Z (about 1 year ago)
- Language: Rust
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.