Sign inSign up

dmitrydavis/feedback-bot

By dmitrydavis

•Updated over 5 years ago

Telegram Feedback Bot

Image
0

957

dmitrydavis/feedback-bot repository overview

⁠Telegram Feedback Bot

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.

⁠Commands:

/start — send help message

/link <CHAT_ID> — link group to user (for admin)

/unlink — unlink group from user (for admin)

⁠docker-compose.yml example with traefik as a reverse proxy

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

⁠Env vars:

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

Tag summary

Content type

Image

Digest

Size

56.7 MB

Last updated

over 5 years ago

docker pull dmitrydavis/feedback-bot