Skip to content

Files

Latest commit

 

History

History
75 lines (51 loc) · 1.35 KB

README.md

File metadata and controls

75 lines (51 loc) · 1.35 KB

telegram-repeater-bot

Bootstrap

./install

Usage

Export credentials

export TELEGRAM_APITOKEN=<TOKEN>

Run locally

./serve

Run as container

docker compose up -d --force-recreate

The bot will repeat messages 3 times whose length is no greater than 10 and ends with "!"

If you want to use it in a group and receive all messages, don't forget to /setprivacy at BotFather.

Database

SQLite CLI Client

pip3 install litecli
litecli remote.db

Spin up a local server to view tables

datasette remote.db

Initialize metadata (ONLY done once)

datasette publish vercel remote.db \
  --project=repeater-bot-sqlite \
  --generate-vercel-json > vercel.json

Publish

# install prerequisites
npm i -g vercel


# deploy with config
./scripts/deploy-datasette.sh

References