LukasMandok / telegram_coffee_bot_backend

chart for telegram coffee bot backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Telegram Coffee Tally Bot

python docker bot for managing a coffee list spreadsheet on google spreadsheet

Copyright Disclaimer:

This code for the docker deployment is mostly copied & adapted from xstar97 using the reddit-auto-reply bot as a baseline: Link to github repo

Important sources:

cron-telebot:

nice implementation of python-telegram-bot with fastapi source code

Tutorial for python-telegram-bot:

tutorial

official WebApp example for python-telegram-bot:

example

Docker configuration:

version: "0.0.1"

services:
  reddit-auto-reply:
    image: ghcr.io/lukasmandok/telegram_coffee_bot_backend:latest
    ports:
      - "8080:3000"
    environment:
      - TELEGRAM_TOKEN=${TELEGRAM_TOKEN}
      - BOT_HOST=${BOT_HOST}

      - GSHEET_SSID=${GSHEET_SSID}
    #   - BOT_STATE=production
    #   - REDIS_HOST=localhost
    #   - REDIS_PASSWORD=password
    #   - REDIS_PORT=6379
    #   - CLIENT_ID=reddit_client_id
    #   - CLIENT_SECRET=reddit_client_secret
    #   - USERNAME=REDDIT_USER
    #   - PASSWORD=REDDIT_PASS
    #   - EXCLUDE_USERS=user1,user2 #delim by ,
    #   - COMMENT_TEXT="Hello world!"
    restart: unless-stopped

About

chart for telegram coffee bot backend

License:GNU General Public License v3.0


Languages

Language:Python 82.3%Language:Dockerfile 12.6%Language:Shell 5.1%