Skip to main content

Asynchronous api of the Flyer service

Project description

FlyerAPI

PyPI PyPI

Usage

With flyerapi you can use FlyerAPI together with Telegram

Installation

pip install flyerapi

Requirements

  • Python 3.7+
  • aiohttp

Features

  • Asynchronous
  • Exception handling

Basic example with aiogram

from flyerapi import Flyer

from aiogram import types


flyer = Flyer(KEY)

async def message_handler(message: types.Message):
    # Use it wherever verification is necessary
    if not await flyer.check(message.from_user.id):
        return

async def callback_handler(call: types.CallbackQuery):
    # Use it wherever verification is necessary
    if not await flyer.check(call.from_user.id):
        return

Developed by Eli (c) 2023

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

flyerapi-1.0.8.tar.gz (4.1 kB view hashes)

Uploaded Source

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