TwesBot
A Telegram bot made with Python. This bot is implemented using the python-telegram-bot wrapper!
how to use?
-
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!
-
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
- Install or upgrade SQLAlchemy with:
$ pip install SQLAlchemy --upgrade
-
Change the token and database info in
settings.py
. -
Setup the database using:
$ python
>>> import database as db
>>> db.Base.metadata.create_all(db.engine)
-
Run your bot using:
./twesbot.py
-
Start talking to your bot!