szastupov / aiotg

Asynchronous Python library for building Telegram bots
MIT License
382 stars 44 forks source link

Add support of 'chosen_inline_result' update type #84

Closed kozalosev closed 1 year ago

kozalosev commented 1 year ago

I was implementing metrics of usage of my bot's inline suggestions and encountered a problem that chosen_inline_result updates weren't supported by the library (I'd got don't know how to handle update in the log). So, I've add some code similar to the existing support of inline updates themselves.

Useful links: https://core.telegram.org/bots/api#choseninlineresult https://core.telegram.org/bots/inline#collecting-feedback

szastupov commented 1 year ago

Nice one! Thank you 🙏