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.1.tar.gz (3.6 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.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: teleflow-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 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.1.tar.gz
Algorithm Hash digest
SHA256 7801f28bcfa8c028d87cac4787b5b0d5102a15fb1f70e8809db3674889f709cb
MD5 b05498a97168107c8098910cfd58e7cf
BLAKE2b-256 cb5c9c8cfed16f1d9408be25f8a983e1f339d83c47b1e1204f940636137e0be6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: teleflow-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7d5915e3ebaa59015275e96de6968db27e04cacef0643e00b455370e9a0fff02
MD5 df757d7a724b381049659ebb148583d1
BLAKE2b-256 527f8cd57387067f47abc2ff4237c074af2e463732b8d9de9ddc499d3614dd09

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