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.panelandaiogram_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.
Metadata
Release files for aiogram-timepicker 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aiogram_timepicker-0.2.1.tar.gz | 17.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aiogram_timepicker-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.5 kB
Release files / aiogram_timepicker-0.2.1.tar.gz
| Download URL | aiogram_timepicker-0.2.1.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1931111d67c3a97a4523a3213ad8865845e17a687eca63b4d24713fd963df485
|
|
BLAKE2b-256 checksum How to use checksums |
0f054930a92f3bce946c772cf2a75713c2474c8c02849c68f3f2768ddc853f74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|
Release files / aiogram_timepicker-0.2.1-py3-none-any.whl
| Download URL | aiogram_timepicker-0.2.1-py3-none-any.whl |
|---|---|
| Size | 40.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d31013769ecb5b07f8c322f9a071363540cb1890689a44bd998cf376e16da59e
|
|
BLAKE2b-256 checksum How to use checksums |
58472de99abedabc8bda835330fed190d6a9e98924cd42c7813fe4f0c838fa1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.12
|