/TwesBot

A Telegram bot made with Python.

Primary LanguagePythonMIT LicenseMIT

TwesBot

A Telegram bot made with Python. This bot is implemented using the python-telegram-bot wrapper!

how to use?

  1. Create a new bot or get the bot token from your existing bot by talking to BotFather. If you don't know where to start, use the official tutorial!

  2. Install or upgrade python-telegram-bot with:

$ pip install python-telegram-bot --upgrade

Or you can install from source with:

$ git clone https://github.com/python-telegram-bot/python-telegram-bot --recursive
$ cd python-telegram-bot
$ python setup.py install
  1. Install or upgrade SQLAlchemy with:
$ pip install SQLAlchemy --upgrade
  1. Change the token and database info in settings.py.

  2. Setup the database using:

$ python
>>> import database as db
>>> db.Base.metadata.create_all(db.engine)
  1. Run your bot using: ./twesbot.py

  2. Start talking to your bot!