Skip to main content

Connect telegram bots to your API

Project description

CI:

https://travis-ci.org/jlmadurga/microbot.svg?branch=master https://coveralls.io/repos/github/jlmadurga/microbot/badge.svg?branch=master Requirements Status

PyPI:

https://img.shields.io/pypi/v/microbot.svg

Docs:

Documentation Status

Connect telegram bots to your API.

The idea is to use it as microservice to host messaging bots leaving the application model into current APIs.

Documentation

The full documentation is at https://microbot.readthedocs.org.

Quickstart

Install microbot:

pip install microbot

Then use it in a project:

import microbot

Features

  • Telegram bots

  • Message handling definition with regex, as django urls.

  • HTTP methods: GET/POST/PUT/DELETE

  • Text responses and keyboards with Jinja2 templates

  • Asynchronous processing of messages

  • Media messages not supported

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements/test.txt
(myenv) $ make test
(myenv) $ make test-all

History

0.1.0 (2016-03-07)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

microbot-1.6.1.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

microbot-1.6.1-py2.py3-none-any.whl (56.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file microbot-1.6.1.tar.gz.

File metadata

  • Download URL: microbot-1.6.1.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for microbot-1.6.1.tar.gz
Algorithm Hash digest
SHA256 ac2cf7cb2502941a8018e41cd0deae396dd1cb4d9dfe1e9dc8e60c2127ec3ff8
MD5 b11d87ac8c638811b06521d19af0a271
BLAKE2b-256 93730fcf9bd4ced6100c28e97f48516a92a6d85ed56e9af5c61d69592cd8e8ce

See more details on using hashes here.

File details

Details for the file microbot-1.6.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for microbot-1.6.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 717c1f20d5acdd24800d3cf183a8f7d19b4c7118f7f3ef09a4f7813f19d9ec06
MD5 bbd39d00c82c2a932ac715311eb4a4dc
BLAKE2b-256 95913e70338fb9db8e5c1a71731670cd2c5f873c7ef3e0cc04db0b299112f6c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page