TelegramBots / Telegram.Bot.Examples

Examples for the Telegram.Bot C# Library
MIT License
630 stars 289 forks source link

ConfigureTelegramBot<> cannot be found in example for MinimalAPIs #536

Closed KriyenKP closed 2 months ago

KriyenKP commented 2 months ago

Webhook.MinimalAPIs Example code for MinimalAPI's cannot find 'ConfigureTelegramBot' and throws.

#Error  CS1061  'IServiceCollection' does not contain a definition for 'ConfigureTelegramBot' 
and no accessible extension method 'ConfigureTelegramBot' accepting a first argument of 
type 'IServiceCollection' could be found (are you missing a using directive or an assembly reference?)

Telegram.bot package version : 20.0.0-alpha.1 .net version : 8.0

wiz0u commented 2 months ago

Examples requires latest v21.4 version. See https://telegrambots.github.io/book/#-installation