2018-02-09 18:24:09 -07:00
2018-02-09 18:24:09 -07:00
2018-01-25 19:51:46 -07:00
2018-02-09 18:13:09 -07:00
2018-01-31 08:30:07 -07:00
2018-02-06 11:29:46 -07:00
2018-02-01 21:02:19 -07:00

Telegram Bot

NOTE Development version of bot than does message monitoring and more.

Installation

  • Required: Python 3.x, pip, PostgreSQL
  • Clone this repo
  • pip install --upgrade -r requirements.txt

Telegram Bot Setup

export TELEGRAM_BOT_TOKEN="4813829027:ADJFKAf0plousH2EZ2jBfxxRWFld3oK34ya"

Database setup

  • Store database URL in environment variable.
export TELEGRAM_BOT_POSTGRES_URL="postgresql://<user>:<password>@localhost:5432/<databasename>"
  • Run: python model.py to setup the DB tables.

Running the bot

  • Run: python bot.py to start logger
  • Messages will be displayed on stdout as they are logged.
Description
Telegram bot for controlling spam, logging, and more
Readme 110 KiB
Languages
Python 94.8%
Shell 5.1%