Skip to main content

Framework for creating telegram bots.

Project description

Project logo

Pytelegrambot

Content

About the project

Pytelegrambot is a python framework for creating telegram bots. The framework is completely asynchronous. The main idea of this project is to make the architecture of telegram bots as structured, as possible and easy to use and understand.

Getting Started

To create your own project, follow these instructions.

Installing

To install, run the following command:

pip install pytelegrambot

After executing the command, the framework will be available in your python virtual environment.

Create and set up a project

First you need to create a python file (in this example, there will be a "main" file) and write the following code in it:

from pygrambot.cli import bot_cli

Bot console commands are now available. To create bot configuration files, run the following command:

python3 main.py init

The config directory has now been created in the root directory of the project, which contains the configuration files. For the minimum performance of the bot, you need to specify your own bot token. To start the bot, you need to enter the command:

python3 main.py start

How to use the bot further can be found in the additional instructions.

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

pygrambot-1.2.0.tar.gz (9.2 kB view hashes)

Uploaded Source

Built Distribution

pygrambot-1.2.0-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

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