Giter Site home page Giter Site logo

julianyaman / dhbw-telegram-bot Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 122 KB

A PoC Telegram bot as the examination performance for the Web Engineering lecture on the DHBW Friedrichshafen, Germany. (Prüfungsleistung für Web Engineering TIT19-Kurs)

Python 100.00%
dhbw friedrichshafen tit tit19

dhbw-telegram-bot's Introduction

LikeUber

Inhaltsverzeichnis:

Benutzung

python main.py 

Einführung

In dieser Arbeit soll der Prototyp einer Mitfahrzentrale konzipiert und technisch umgesetzt werden. Die Mitfahrzentrale soll von den Anwendern ausschließlich ̈uber Telegram bedient werden konnen, eine Administration kann serverseitig ̈uber eine Konfigurationsdatei im Format JSON erfolgen. Fur die Anwender sollen allumfängliche Funktionen zur Nutzung der Mitfahrzentrale implementiert werden

Installation

Um den Bot zu nutzen, sollte man dieses Repository klonen oder als ZIP von GitHub herunterladen und auf dem eigenen PC/Server speichern.

Es empfiehlt sich für einen dauerhaften Betrieb des Bots (24/7), diesen auf einem Server zu starten.

Nun wird die Bibliothek python-telegram-bot benötigt und muss installiert werden.

pip install python-telegram-bot --upgrade

Konfiguration

Im Ordner data befindet sich die Datei example.bot.json. Diese sollte in bot.json umbenannt werden und wird den Token für den Bot beinhalten.

Einen Telegram Bot und einen dazugehörigen Token erhält man über den offiziellen Bot BotFather.

Eine Einführung zu Telegram Bots und wie der BotFather genutzt wird, kann auf der Hilfeseite für Bots von Telegram gefunden werden.

Sobald man einen Token erhalten hat, setzt man diesen in den Placeholder in der bot.json im Ordner data ein.

{
  "token": "my-token"
}

Hinweise

Es sollte darauf geachtet werden, dass in den Speicherfiles location.json und users.json leere Arrays enthalten sind, bevor man den Bot zum ersten Mal startet.

Mitwirkende

  • Julian Yaman
  • Gary Lude
  • Niklas Leinz
  • Lars Strölin
  • Moritz Gärtner

Kontakt

Durch folgende Kanäle kann Kontakt aufgenommen werden


Made remotely with ❤️ (and partly on Arch Linux)

dhbw-telegram-bot's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

dhbw-telegram-bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.