telegram-moderator/README.md
2018-01-29 01:29:58 +02:00

870 B

Telegram Group Chat Logger

This is a bot that logs public Group Chats to an SQL Database.

Installation

  • Required: Python 3.X , PostgreSQL, Telegram Bot
  • Clone this repo
  • pip install requirements.txt

Bot/Group Setup

Running the bot

  • Create a Database, eg. origindb
  • Store your Telegram Bot Token in an environment variable, eg. echo $ORIGINTOKEN
  • Add your DB credentials to model.py eg. engine = create_engine('postgresql://postgres:<password>@localhost:5432/<databasename>')
  • Run: python model.py to setup the DB tables, etc.
  • Run: python bot.py to start logger