TelegramBots / Telegram.Bot.Framework

Simple framework for building Telegram bots
MIT License
97 stars 43 forks source link

Redesign IUpdateManager interface and implementation #14

Open tuscen opened 6 years ago

tuscen commented 6 years ago

Scoped lifetime of IUpdateManager<TBot> and polling functionality built in it don't play well together. An entity that performs polling should be a singleton.

IUpdateManager<TBot> functionality should be split to two interfaces: