Telegram bot for controlling spam, logging, and more
Go to file
2018-01-29 02:25:17 +02:00
bot.py MVP for a logger 2018-01-29 01:29:58 +02:00
LICENSE Initial commit 2018-01-25 19:51:46 -07:00
model.py MVP for a logger 2018-01-29 01:29:58 +02:00
README.md MVP for a logger 2018-01-29 01:29:58 +02:00
requirements.txt added requirements.txt file 2018-01-29 02:25:17 +02:00

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