Skip to content
forked from rocats/repeater

A magic telegram bot to repeat words

Notifications You must be signed in to change notification settings

rocats/repeater-v2

 
 

Repository files navigation

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

About

A magic telegram bot to repeat words

Topics

Resources

Stars

Watchers

Forks

Languages

  • Python 87.7%
  • Dockerfile 8.5%
  • Shell 3.8%