This library provides a pure Python interface for the Messenger Bot API such as
Facebook, Telegram, Slack.
all in one. Feel free to add other messenger support.
In addition to the pure API implementation, this library features a number of high-level classes to make the development of bots easy and straightforward.
The best way to learn and understand this simple package is by example. So here are some examples for you to review this url
Python 3 required!
This framework assumes you are using Python 3. Get the latest version at Python's download page
The first step to contributing to Python Bot is to get a copy of the source code.
From the command line, use the cd
command to navigate to the directory
where you'll want your local copy of Python Bot to live.
Download the Python Bot source code repository using the following command:
$ git clone https://github.com/python-bot/python-bot.git
Now that you have a local copy of Python Bot.
Create a new virtualenv by running:
$ python3 -m venv ~/.virtualenvs/python_bot
The path is where the new environment will be saved on your computer.
On some versions of Ubuntu the above command might fail. Use the
virtualenv
package instead, first making sure you havepip3
:
$ sudo apt-get install python3-pip
$ # Prefix the next command with sudo if it gives a permission denied error
$ pip3 install virtualenv
$ virtualenv --python=`which python3` ~/.virtualenvs/python_bot
The final step in setting up your virtualenv is to activate it:
$ source ~/.virtualenvs/python_bot/bin/activate
The installed version of Python Bot is now pointing at your local copy.
Contributions of all sizes are welcome:coffee:. You can also help by reporting bugs. It would be very helpful.
You may copy, distribute and modify the software provided that modifications are described and licensed for free under LGPL-3. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.