Crates.io | tg-media-bot |
lib.rs | tg-media-bot |
version | 0.1.0 |
source | src |
created_at | 2022-01-13 17:53:18.813359 |
updated_at | 2022-01-13 17:53:18.813359 |
description | Telegram bot for aliasing media |
homepage | |
repository | https://github.com/bragov4ik/tg-media-bot |
max_upload_size | |
id | 513433 |
size | 88,755 |
Telegram bot written in rust for aliasing different media (currently only stickers are supported).
Initially, no aliases are specified. They can be added using /add
command, which starts an addition process:
After that, you can use specified aliases enclosed in colons in your messages. The bot will send the associated media to the chat:
The bot is (hopefully still) running at http://t.me/textmedia_bot.
/start
and /help
Older versions may work, however they were not tested.
You can use cargo install
or manually clone into repository then either install on a machine or build and run in the folder.
TELOXIDE_TOKEN
enviromental variablecargo install --git https://github.com/bragov4ik/tg-media-bot.git
tg-media-bot
command (if cargo installation folder is in your PATH
)cargo install
inside the foldertg-media-bot
to run (if does not work check that cargo installation location is in your PATH
)Clone the repository into any folder
Type cargo run --release
to build and run the project
There is one optional argument - Redis address. You should specify only the address itself, without redis://
prefix.
Usage example: tg-media-bot 127.0.0.1
If any bugs related to the code were found, create an issue with its description.
Kind of sorted according to importance (higher - more preferable)