Asynchronous api of the Flyer service
Project description
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, language_code=message.from_user.language_code):
return
async def callback_handler(call: types.CallbackQuery):
# Use it wherever verification is necessary
if not await flyer.check(call.from_user.id, language_code=call.from_user.language_code):
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.9.tar.gz
(4.2 kB
view details)
File details
Details for the file flyerapi-1.0.9.tar.gz
.
File metadata
- Download URL: flyerapi-1.0.9.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0b2619ba93276c3c9434e47a7c84a64c672f1cb4306e3e978756e88a8056e09 |
|
MD5 | 950013213119edd1177108d3379b7d60 |
|
BLAKE2b-256 | fd7eb4d45d6cb7426cd5e05f73ee93310d0692f0e489be2a66ab34984f9455a6 |