PaulSonOfLars / gotgbot

Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.
MIT License
442 stars 105 forks source link

Allow for getting the type of an update through a helper method #151

Closed PaulSonOfLars closed 5 months ago

PaulSonOfLars commented 5 months ago

What

This adds a new Update.GetType() method, which can be used to determine what type of update one is handling without having to check each field. This is autogenerated along with the rest of the lib, so should remain up to date.

Impact