{"id":26851583,"url":"https://github.com/alexanderchainsaw/aiogram_utcpicker","last_synced_at":"2026-02-23T12:56:39.346Z","repository":{"id":259394592,"uuid":"877766599","full_name":"alexanderchainsaw/aiogram_utcpicker","owner":"alexanderchainsaw","description":"UTC selection tool for aiogram3 telegram bots","archived":false,"fork":false,"pushed_at":"2025-02-17T11:51:34.000Z","size":47,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-22T01:28:11.531Z","etag":null,"topics":["aiogram3","telegram-bot","timezone","utc"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexanderchainsaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T07:54:16.000Z","updated_at":"2025-02-17T11:51:01.000Z","dependencies_parsed_at":"2024-10-25T03:46:01.582Z","dependency_job_id":"707786e7-8980-4394-b303-f17e2b888a91","html_url":"https://github.com/alexanderchainsaw/aiogram_utcpicker","commit_stats":null,"previous_names":["alexanderchainsaw/aiogram_utcpicker"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/alexanderchainsaw/aiogram_utcpicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderchainsaw%2Faiogram_utcpicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderchainsaw%2Faiogram_utcpicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderchainsaw%2Faiogram_utcpicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderchainsaw%2Faiogram_utcpicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexanderchainsaw","download_url":"https://codeload.github.com/alexanderchainsaw/aiogram_utcpicker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexanderchainsaw%2Faiogram_utcpicker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29743671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiogram3","telegram-bot","timezone","utc"],"created_at":"2025-03-30T22:32:18.432Z","updated_at":"2026-02-23T12:56:39.328Z","avatar_url":"https://github.com/alexanderchainsaw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aiogram_utcpicker\n```\npip install aiogram-utcpicker\n```\n\nUTC selection tool for aiogram3 telegram bots\n\n![img.png](img.png)\n# Use case\nThe tool is designed to allow users interactively select valid timezones (listed at https://timezonedb.com/time-zones).\n\nTo enforce valid timezone selection, the tool has some restrictions:\n - Hours: Values only in the range of 0 to 14 (inclusively) are allowed.\n - Minutes: Can only be 0, 30 or 45.\n\n\nEven with the restrictions listed above, it's still possible to select a timezone that is not listed at https://timezonedb.com/time-zones.\n\nIf that happens, an error message will be displayed ( as a  notification envoked by `callback.answer()` )\n\n# Demo\n```python\nimport logging\nimport asyncio\nimport sys\nimport aiogram.client.default\nfrom aiogram_utcpicker import UtcPickerCallback, start_utc_picker, process_utc_picker\nfrom aiogram import Bot, Dispatcher\nfrom aiogram.enums import ParseMode\nfrom aiogram.filters import Command\nfrom aiogram.filters.callback_data import CallbackData\nfrom aiogram.types import Message, CallbackQuery\n\ndp = Dispatcher()\n\nYOUR_API_TOKEN = ''\n\n\n@dp.message(Command('utc_picker'))\nasync def cmd_utc_picker(message: Message):\n    await message.answer(\n        'Utc picker demo:\\nTry changing the values and submitting\\n'\n        'Only the valid timezones will be accepted, otherwise an error notification will be displayed',\n        reply_markup=await start_utc_picker()\n    )\n\n\n@dp.callback_query(UtcPickerCallback.filter())\nasync def process_utc_picker_selection(callback: CallbackQuery, callback_data: CallbackData):\n    canceled, selected, utc_difference = await process_utc_picker(callback, callback_data)\n\n    if canceled:\n        await callback.message.answer('You have canceled utc picker selection')\n    elif selected:\n        await callback.message.answer(f'Selected value in minutes: {utc_difference}')\n\n\nasync def main():\n    bot = Bot(YOUR_API_TOKEN, default=aiogram.client.default.DefaultBotProperties(parse_mode=ParseMode.HTML))\n    await dp.start_polling(bot)\n\nif __name__ == '__main__':\n    logging.basicConfig(level=logging.INFO, stream=sys.stdout)\n    asyncio.run(main())\n```\n\n# Localization\n\nBy default, all captions are in english. \n\nTo customize text captions, pass a `dict` with your translations to the `start_utc_picker()` function\n\nIt should have the following structure:\n```python\n{ # do NOT alter this column    # change values in this column to whatever language you need\n  'cancel_button':              'Cancel', \n  'confirm_button':             'Confirm',\n  'display_value':              'Time according to selected: ',\n  'err_msg_invalid':            'Not a valid timezone'\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderchainsaw%2Faiogram_utcpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexanderchainsaw%2Faiogram_utcpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexanderchainsaw%2Faiogram_utcpicker/lists"}