Skip to main content

Time Selection tool for Aiogram Telegram Bots

Project description

Time Selection tool for Aiogram Telegram Bots

Description

A simple inline time selection tool for aiogram telegram bots written in Python. Demo: @aiogram_timepicker_bot.

Offers 9 types of panel time picker:

  • Panel Pickers (aiogram_timepicker.panel and aiogram_timepicker.panel.single):
    • Full Time Picker - user can select a time with hours, minutes and seconds.
    • Minute & Second Picker - user can select a time with minutes and seconds.
    • Single Hour Picker - user can select a hour.
    • Single Minute Picker - user can select a minute.
    • Single Second Picker - user can select a second.
  • Carousel Pickers (aiogram_timepicker.carousel):
    • Full Time Picker - user can select a time with hours, minutes and seconds with carousel.
  • Clock Pickers (aiogram_timepicker.clock):
    • c24 - user can select a hour between 0 and 24.
    • c24_ts3 - user can select a minute/second between 0 and 57 with 3 timestamp.
    • c60_ts5 - user can select a minute/second between 0 and 55 with 5 timestamp.

Usage

Install package with pip

    pip install aiogram_timepicker

A full working example on how to use aiogram-timepicker is provided in bot_example.py. You create a timepicker panel and add it to a message with a reply_markup parameter, and then you can process it in a callbackqueyhandler method using the process_selection method.

Demo

Code example is examples/simple_aiogram_2.12_bot.py and demo use @aiogram_timepicker_bot.

Licence

Read more about licence here.

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

aiogram_timepicker-0.2.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

aiogram_timepicker-0.2.1-py3-none-any.whl (40.7 kB view details)

Uploaded Python 3

File details

Details for the file aiogram_timepicker-0.2.1.tar.gz.

File metadata

  • Download URL: aiogram_timepicker-0.2.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for aiogram_timepicker-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1931111d67c3a97a4523a3213ad8865845e17a687eca63b4d24713fd963df485
MD5 52eba1f01807b23bf22a735c7a4c3ba8
BLAKE2b-256 0f054930a92f3bce946c772cf2a75713c2474c8c02849c68f3f2768ddc853f74

See more details on using hashes here.

File details

Details for the file aiogram_timepicker-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for aiogram_timepicker-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d31013769ecb5b07f8c322f9a071363540cb1890689a44bd998cf376e16da59e
MD5 41fe6461cc60263ae66947f821e68212
BLAKE2b-256 58472de99abedabc8bda835330fed190d6a9e98924cd42c7813fe4f0c838fa1e

See more details on using hashes here.

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