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 -U 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.2.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.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: teleflow-0.2.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.2.0.tar.gz
Algorithm Hash digest
SHA256 68968b5447d08c1999e336dc987baddb27bedb6233a605db9a1ec898bdadc3ed
MD5 70f4b5e9c1cfaa3dd9fe347617b7edc0
BLAKE2b-256 d397e3d47f2953d9e9a9213536191c14d390cd6f17e52f3946e8f396b2a07d20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: teleflow-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6103feb11d3495a4f26d3ad4dc86858dbb98c1500f97e6585a3eda5fef8b8e1c
MD5 7feeb8cb553fa99ebac5d01c9d1ec30d
BLAKE2b-256 61d86b386afe99a0c2887c1b48272320b42bc6b3d75cd9a7bbcbf2d04309f492

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