Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

AH-dark/call-the-police-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Call The Police Bot

A telegram bot that helps you to call the police.

It just for fun, don't be serious.

Usage

  • /help - Show help message
  • /callpolice - Call the police, the bot will return a message with the emojis of a police car.

Run

Before you start, you need to create a bot on Telegram and get the token.

To prepare the environment, you need to install the Cargo and Rust compiler. You can install it using rustup.

After that, you can clone the repository and run the bot.

Configuration

We provide some environment variables to configure the bot:

  • TELOXIDE_TOKEN - The token of the bot on Telegram
  • TELEGRAM_API_URL - The URL of the Telegram API (default: https://api.telegram.org)
  • OTEL_TRACE_EXPORTER_ENDPOINT - The endpoint of the OpenTelemetry exporter (default: http://localhost:4317)
  • OTEL_TRACE_EXPORTER - The type of the OpenTelemetry exporter (default: otlp_grpc, available: otlp_grpc, otlp_http)
  • OTEL_TRACE_SAMPLE_RATE - The sample rate of the OpenTelemetry exporter (default: 1.0)
  • OTEL_METRICS_EXPORTER - The type of the OpenTelemetry metrics exporter (available: prometheus)
  • OTEL_METRICS_EXPORTER_ENDPOINT - The endpoint of the OpenTelemetry metrics exporter (default: localhost:9090)
  • RUST_LOG - The log level of the application (available: trace, debug, info, warn, error)

License

This project is licensed under the GNU Affero General Public License v3.0.

About

A Telegram Bot that helps you call the police

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors