timoniq / telegrinder

Modern visionary telegram bot framework
MIT License
31 stars 5 forks source link

typegen implement default value for fields which have a literal type #159

Closed luwqz1 closed 2 days ago

vffuunnyy commented 1 week ago
chat_menu_button = MenuButtonWebApp(
    text="Open me 🐍",
    web_app=WebAppInfo(url=HOST),
)
vfny@archlinux ~/c/r/t/e/example_bot (main)> uv run bot/app.py
Traceback (most recent call last):
  File "/..../example_bot/bot/app.py", line 11, in <module>
    from bot.dispatchers import user
  File "/..../example_bot/bot/dispatchers/user.py", line 24, in <module>
    chat_menu_button = MenuButtonWebApp(
                       ^^^^^^^^^^^^^^^^^
TypeError: Missing required argument 'type'
vfny@archlinux ~/c/r/t/e/example_bot (main) [1]>