TelegramBots / Telegram.Bot.Extensions.Polling

Provides ITelegramBotClient extensions for polling updates
MIT License
46 stars 12 forks source link

Add client parameter to IUpdateHandler #2

Closed tuscen closed 4 years ago

tuscen commented 4 years ago

I think it's a good idea to add ITelegramBotClient as the first parameter in IUpdateHandler.HandleUpdate. This way you don't need to capture a reference to the client with DefaultUpdateHandler.

It will break the interface, but it's fine since the library is still effectively in preview.