Skip to content

neocim/steal_stickers_bot

Repository files navigation

steal_stickers_bot

Running The Bot

Preparing

  1. Install rustup, justfile, sqlx-cli.
  2. Install Docker and Docker Compose.
  3. Create your Telegram application following instructions.
  4. Create a new bot with @BotFather.
  5. Clone this repository and change directory:
git clone https://github.com/neocim/steal_stickers_bot
cd steal_stickers_bot/
  1. Optionally run tests, using:
cargo test
  1. Copy config.toml.example, remove .example from name of file and fill it required information.
  2. Copy .env.example, remove .example from name of file and fill it the same required information as in your file config.toml.

Running

  1. First, we need to pull actual image of the bot, so as not to build it ourselves:
just pull-img

You can also build it manually using just compose-build

  1. Then we need to authorize the client. Do it, using:
just auth

A code should be sent to your Telegram account. Enter it into the terminal without any extra characters.

  1. To finally run the bot, use:
just compose-run
  1. After the previous step, bot will start working, but database will be without migrations. To solve it, run the command below (it uses information from .env file):
just -E=./.env run-migrate

If you encounter errors that are directly related to my code (docker errors, bot bugs, etc.), please open an Issue. Thanks :)

License

Licensed under:

About

Bot to steal stickers in Telegram written in Rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages