Skip to main content

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:

aiogram_calendar

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_calendar-0.3.0.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

aiogram_calendar-0.3.0-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

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