timoniq / telegrinder

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

bug: cute types are not resolved #123

Closed timoniq closed 1 month ago

timoniq commented 1 month ago
@bot.on.callback_query()
async def buy(cb: CallbackQuery):
    await cb.message.unwrap().only().unwrap() # Message, must be MessageCute

Full example to reproduce: https://gist.github.com/timoniq/832b9ba70d2c13f492cb81220e0f8db6

timoniq commented 1 month ago

resolved in https://github.com/timoniq/telegrinder/commit/11922289801b7dcb77435064f20c86bda59e6718