Skip to main content

Asynchronous Telegram Bot API client

Project description

Telegram Bot API

A simple and efficient asynchronous Telegram Bot API client.

Installation

pip install TeleFlow

Usage

from TeleFlow import TelegramBot

bot = TelegramBot("YOUR_BOT_TOKEN")

@bot.handler('message')
async def handle_message(message, update_type):
    if message.text == '/start':
        await bot("sendMessage", {
            'chat_id': message.chat['id'],
            'text': 'Hello!'
        })

bot.run()

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

teleflow-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

teleflow-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file teleflow-0.1.0.tar.gz.

File metadata

  • Download URL: teleflow-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for teleflow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 86e93f5f5740aea9777f654df7ec562ceafcbf601438a37e56e0f29409c47e28
MD5 f36aefdcb5f1bf0e79f70f9110783e7f
BLAKE2b-256 02cc4589d3a63ae4cb32e70f7b07b8213dcf768a13a444b83773ed5c2d9e351c

See more details on using hashes here.

File details

Details for the file teleflow-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: teleflow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for teleflow-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ad33a897f9d5bd1a4b5e522e2f0e9f0cc0587bf323c54682d978488c549bff6
MD5 7899b973b29354082307d56b042ab1d8
BLAKE2b-256 190709820a888fb35f60483bec5943fc4e40f68c851b6a87b71499bfe872770b

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