Convenient telegram bot forwards messages from users to the owner and gives an opportunity to reply to them. For the most active users, you can create separate chats by adding a bot and using a special command /link.
/start — send help message
/link <CHAT_ID> — link group to user (for admin)
/unlink — unlink group from user (for admin)
version: "3"
services:
bot:
image: dmitrydavis/feedback-bot:0.1.0
restart: unless-stopped
environment:
LOG_LEVEL: INFO
BOT_TOKEN: << YOUR BOT TOKEN >>
BOT_DOMAIN: bot.dmitrydavis.xyz
ADMIN_ID: "1231231234"
volumes:
- ./data:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.bot.rule=Host(`bot.dmitrydavis.xyz`)"
- "traefik.http.routers.bot.tls=true"
- "traefik.http.routers.bot.tls.certresolver=cf"
- "traefik.http.routers.bot.entryPoints=web"
- "traefik.http.services.bot.loadbalancer.server.port=8080"
Also you can change the messages sent by the bot in the messages.yml file
LOG_LEVEL — logging level (INFO is default, may be CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET)
BOT_TOKEN — your bot token, can be obtained from BotFather
BOT_DOMAIN — your bot domain (bot.dmitrydavis.xyz for example)
ADMIN_ID — your telegram ID
DATABASE_PATH — path to sqlite3 database file
DEFAULT_CHAT_ID — chat id that will be used to receive messages from users (equals ADMIN_ID as default)
MESSAGES_PATH — path to messages.yml file
Content type
Image
Digest
Size
56.7 MB
Last updated
over 5 years ago
docker pull dmitrydavis/feedback-bot