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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file pygrambot-1.2.0.tar.gz.

File metadata

  • Download URL: pygrambot-1.2.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for pygrambot-1.2.0.tar.gz
Algorithm Hash digest
SHA256 c524a73f6f57aae9bbf9477a88ae7abf0c4feb0b8e57a280dee4bcfb86f3ad77
MD5 307a80663ec14082dc4e6a81d3d229c0
BLAKE2b-256 30f72891deff53d47747761b3910ef36f4ed2d9c8ec9cf9dbce156e52b1bb858

See more details on using hashes here.

File details

Details for the file pygrambot-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pygrambot-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for pygrambot-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef4dcc8af194612ed8320f1894eb76dd7b54a0d42769ed164fbd9fb1299a1691
MD5 83ef30f78cf1c2b811fe6d25e177c237
BLAKE2b-256 b5b0f3441498f0d61283823a699099c8bf3587528e9fb8864ae2d5eddfb10e49

See more details on using hashes here.

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