Skip to content

MasterEagle23/OpenMensaAPIv2Bot

Repository files navigation

Telegram Bot for OpenMensa Canteen Menu

This project is a simple Telegram bot that allows users to retrieve and interact with the daily meal menu of a specific canteen using the OpenMensa API. The bot allows users to get meal information for a given canteen and date, set default canteens, and access help information. It leverages the Telegram Bot API and various Python libraries to run the bot and handle requests.

Features

  • Get Daily Canteen Menus: Users can retrieve the meal menu for a specific canteen and date.
  • Set Default Canteen: Users can set a default canteen to avoid repeatedly entering it in the future.
  • Bot Commands: The bot supports the following commands:
    • /get meals [date] [canteen_id]: Retrieve the meal menu for a given date and canteen.
    • /set default_canteen [value]: Set a specific setting, such as the default canteen.
    • /help: Get the help text.

Prerequisites

Before running this bot, make sure you have the following:

  • Python 3.x
  • Telegram Bot API key (you can get it by creating a bot on BotFather)
  • docker compose

Deployment

  1. Navigate to the directory.
  2. docker compose up -d

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors