Skip to main content

A :thumbsup: and :thumbsdown: counter keyboard for Telegram bots and channels

Project description

# Thumbot

**Thumbot** is a :thumbsup: :thumbsdown: counter keyboard for Telegram bots and channels.


## Requirements
- Python;
- Your bot/channel must be created with [pyTelegramBotAPI](;
- MongoDB;

## Running

- Your're going to need to run an instance of [MongoDB]( For tests porpuse (or even production, but with some concerns) you can use [Docker]( and get a container running in some minutes:

`$ docker run -d -p 27017:27017 mongo`

- To install Thumbot is pretty easy:

`$ pip install thumbot`

- Now, you're ready to include the Thumbot keyboard in your bot or channel!

## Usage
from thumbot import Thumbot

# Create a new instance of Thumbot passing chat and message ids:
thumbot = Thumbot(chat_id, message_id)

# Now you can vote up and down with the methods .up() and .down(),
# always passing the id of the user that is voting:

Check out the []( to see a full working bot using Thumbot.

### Bots and Channels using Thumbot:
- [@on_sale](

Project details

Download files

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

Files for thumbot, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size thumbot-0.1.0.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page