Skip to content
Just focus on your bots.
Branch: master
Clone or download
MarcoBuster and matteb99 Update master to release 0.6
Update master to release 0.6
Latest commit c71ace5 Mar 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.netlify deploy the botogram website to netlify Feb 1, 2019
botogram Update master to release 0.6 Mar 26, 2019
docs Update master to release 0.6 Mar 26, 2019
i18n Changed old years text to 2018 Aug 20, 2018
tests Changed site from botogram.pietroalbini.org to botogram.dev, changed … Mar 17, 2019
website add favicon.ico and nginx config for doc, fix Dockerfile, remove debu… Mar 17, 2019
.gitattributes And ignore also this from GitHub language stats Jul 18, 2015
.gitignore
.travis.yml
AUTHORS Update master to release 0.6 Mar 26, 2019
Dockerfile Update master to release 0.6 Mar 26, 2019
LICENSE
MANIFEST.in
README.md Update master to release 0.6 Mar 26, 2019
nginx-doc.conf Fix indentation in nginx-doc.conf and deleted IDE files Mar 17, 2019
requirements-build.in
requirements-build.txt Update pinned development dependencies Jun 10, 2016
requirements-docs.in Use pip-tools to manage development dependencies Feb 28, 2016
requirements-docs.txt Update pinned development dependencies Jun 10, 2016
requirements-lint.in Use pip-tools to manage development dependencies Feb 28, 2016
requirements-lint.txt Update development dependencies Feb 28, 2016
requirements-test.in
requirements-test.txt bump pinned requests Oct 29, 2018
requirements-tools.in
requirements-tools.txt Update pinned development dependencies Jun 10, 2016
setup.py Update master to release 0.6 Mar 26, 2019
tasks.py Changed site from botogram.pietroalbini.org to botogram.dev, changed … Mar 17, 2019

README.md

botogram Build Status News channel

Just focus on your bots.

botogram is a Python framework, which allows you to focus just on creating your Telegram bots, without worrying about the underlying Bots API.

While most of the libraries for Telegram out there just wrap the Bots API, botogram focuses heavily on the development experience, aiming to provide you the best API possible. Most of the Telegram implementation details are managed by botogram, so you can just focus on your bot.

import botogram
bot = botogram.create("YOUR-API-KEY")

@bot.command("hello")
def hello_command(chat, message, args):
    """Say hello to the world!"""
    chat.send("Hello world")

if __name__ == "__main__":
    bot.run()

You can find the documentation at botogram.dev. Also, you can get all the news about botogram in its Telegram channel.

Please note botogram currently doesn't support some of the upstream API features. All of them will be implemented in botogram 1.0

Supported Python versions: 3.4+ License: MIT

Installation

You can install easily botogram with pip (be sure to have Python 3.4 or higher installed):

$ python3 -m pip install botogram2

If you want to install from the source code, you can clone the repository and install it with setuptools. Be sure to have Python 3.4 (or a newer version), pip, virtualenv, setuptools and invoke installed:

$ git clone https://github.com/python-botogram/botogram.git
$ cd botogram
$ invoke install

On some Linux systems you might need to wrap the invoke install command with sudo, if you don't have root privileges.

You can’t perform that action at this time.