#!/usr/bin/env bash

set -euo pipefail

ROOT_DIR="$(cd "$(dirname "$0")" && pwd)"

export RHO_TELEGRAM_APP_ROOT="$ROOT_DIR"
export RHO_TELEGRAM_ROOT="${RHO_TELEGRAM_ROOT:-$ROOT_DIR}"

exec cargo run --quiet --manifest-path "$ROOT_DIR/telegram-bridge/Cargo.toml" -- "$@"
