Skip to content

LifeOnLin3/botogram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

botogram

A microframework for Telegram bots

botogram is a MIT-licensed microframework, which aims to simplify the creation of Telegram bots. It offers a concise, simple API, which allows you to spend all your creativity in the bot, without worrying about anything else.

It also provides a robust, fully scalable bot runner process, which will be able to process fastly high workloads. And as if this isn't enough, it has builtin support for commands, with an automatically-generated /help command.

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")

bot.run()

You can find the documentation at botogram.pietroalbini.io.

Installation

botogram is currently in development, so a release doesn't exist yet.
But if you want to install it anyway, you can clone the repository and install it with setuptools. Be sure to have Python 3, pip and setuptools installed:

$ git clone https://github.com/pietroalbini/botogram.git
$ cd botogram
$ pip install .

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

About

A Python microframework for Telegram bots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%