{"id":13936238,"url":"https://github.com/dmrz/baymax","last_synced_at":"2025-07-19T21:32:08.834Z","repository":{"id":47463742,"uuid":"117013496","full_name":"dmrz/baymax","owner":"dmrz","description":"Simple telegram bot on top of Python asyncio","archived":false,"fork":false,"pushed_at":"2021-02-26T02:13:29.000Z","size":171,"stargazers_count":29,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T15:18:50.880Z","etag":null,"topics":["asyncio","bot","python","telegram"],"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/dmrz.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}},"created_at":"2018-01-10T21:33:38.000Z","updated_at":"2025-03-17T15:54:59.000Z","dependencies_parsed_at":"2022-08-26T14:11:15.956Z","dependency_job_id":null,"html_url":"https://github.com/dmrz/baymax","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/dmrz/baymax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmrz%2Fbaymax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmrz%2Fbaymax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmrz%2Fbaymax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmrz%2Fbaymax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmrz","download_url":"https://codeload.github.com/dmrz/baymax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmrz%2Fbaymax/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266019657,"owners_count":23864916,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["asyncio","bot","python","telegram"],"created_at":"2024-08-07T23:02:30.662Z","updated_at":"2025-07-19T21:32:03.824Z","avatar_url":"https://github.com/dmrz.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"### Baymax, a simple telegram bot framework on top of Python asyncio\n\nWork in progress\n\n### Requirements\n\n* Python 3.6 or higher\n\n### Installation\n\n```bash\npip install baymax\n```\n\n\n### Basic usage example\n\n```python\nfrom baymax.bot import Bot\n\nbot = Bot('token')\n\n@bot.on('/start')\nasync def start_handler(message):\n    await bot.reply(message, 'Welcome!')\n\nbot.run()\n```\n\n\n### Middleware example\n\n```python\n@bot.middleware\nasync def message_logging_middleware(raw_update):\n    bot.logger.info('New update received: %s', raw_update['update_id'])\n```\n\n\u003e NOTE: All middleware functions should be coroutines for now, even if they do not have asynchronous actions.\n\n\n### Reply keyboard markup example\n\n\n```python\nfrom baymax.markups import KeyboardButton, ReplyKeyboardMarkup\n\n@bot.on('/rate')\nasync def rate_handler(message):\n    await bot.reply(message, 'Rate me', reply_markup=ReplyKeyboardMarkup(\n        [\n            [\n                KeyboardButton('⭐️'),\n                KeyboardButton('⭐️⭐️'),\n                KeyboardButton('⭐️⭐️⭐️')\n            ]\n        ], resize_keyboard=True, one_time_keyboard=True))\n```\n\n\u003e NOTE: Reply markup API / objects will be changing, they are far from good now.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmrz%2Fbaymax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmrz%2Fbaymax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmrz%2Fbaymax/lists"}