Channel suggestions bot for Telegram
- Install Rust:
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install sqlx-cli:
$ cargo install sqlx-cli
- Create
.env
file with:P.S. examples of gifs (mp4 file without audio for telegram) are inTELOXIDE_TOKEN=<telegram bot token> CHANNEL_ID=<telegram channel id> ADMINS_CHAT_ID=<telegram suggestion chat id> DATABASE_URL=sqlite:<db name>.db ACCEPT_FILES=<path to folder or mp4 file | optional> DECLINE_FILES=<path to folder or mp4 file | optional> MSG_PREFIX=<prefix for /msg command. ex.: "*Admin says:* \n" | optional>
responses/accept
andresponses/decline
, respectively. cargo build
orcargo build --release --locked --verbose
for release build.cargo run
- License: © 2021 M.Price.
See the LICENSE file for license rights and limitations (MIT).