Simple Inline Calendar & Date Selection tool for Aiogram Telegram bots
Project description
Date Selection tool for Aiogram Telegram Bots
Description
A simple inline calendar, date selection tool for aiogram telegram bots written in Python. Offers two types of date pickers: Navigation calendar - user can either select a date or move to the next or previous month/year by clicking a singe button. Dialog calendar - user selects year on first stage, month on next stage, day on last stage.
From version 0.2 supports aiogram 3, use version 0.1.1 with aiogram 2.
Usage
Install package
pip install aiogram_calendar
A full working example on how to use aiogram-calendar is provided in bot_example.py.
In example keyboard with buttons is created. Each button triggers a calendar in a different way by adding it to a message with a reply_markup. Depending on what button of calendar user will press callback is precessed using the process_selection method.
Gif demo:
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
Built Distribution
Hashes for aiogram_calendar-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1e9cf567e605538a59d046b55727acf28e049887fe0ed17b00469447e0917f1 |
|
MD5 | 598f028cbeaea71bb362610bbc842147 |
|
BLAKE2b-256 | 7437fa0128db9f21d37f14eab70ad91a8bbe646148e8e78e9ce7f87da36165e2 |