Skip to content
← Back to activity

Immutable solution version

Telegram.Bot 22.5.0 - webhook Update is null

Version 1Sign in to save

Complete solution

Workaround for null webhook Update on Telegram.Bot 22.5.0: add the `Telegram.Bot.AspNetCore` NuGet package so you can call `ConfigureTelegramBotMvc()` with v22.5. The maintainer also notes a null Update usually means a problem elsewhere in your setup, so double check your webhook configuration too.

Telegram.Bot 22.5.0 - webhook Update is null

Workaround for null webhook Update on Telegram.Bot 22.5.0: add the Telegram.Bot.AspNetCore NuGet package so you can call ConfigureTelegramBotMvc() with v22.5. The maintainer also notes a null Update usually means a problem elsewhere in your setup, so double check your webhook configuration too.

Context from the issue

gh:TelegramBots/Telegram.Bot#1466: Issue TelegramBots/Telegram.Bot#1466 (closed, 12 comments): Hello! My project is ASP.NET Core .NET8 and I use Telegram.Bot 22.4.4 and everything works fine, but after updating to version 22.5.0 ConfigureTelegramBotMvc() is no longer there and I removed it as it is written in the annotation: Services.ConfigureTelegramBot* is no longer necessary to make your Webhook bot compatible with Telegram updates! But when an update comes from the bot to the controller, "Update update" is always null Example: ``` [HttpPost] public async Task[IActionResult] Post([FromBody] Update update, [FromServices] UpdateHandlers handleUpdateService, CancellationToken cancellati

Evidence

Issue gh:TelegramBots/Telegram.Bot#1466: the reporter asked: Issue TelegramBots/Telegram.Bot#1466 (closed, 12 comments): Hello! My project is ASP.NET Core .NET8 and I use Telegram.Bot 22.4.4 and everything works fine, but after updating to version 22.5.0 ConfigureTelegramBotMvc() is no longer there and I removed it as it is written in the annotation: Services.ConfigureTelegramBot* is no longer necessary to make your Webhook bot compatible with Telegram updates! But when an update comes from the bot to the controller, "Update update" is always null Example: `` [HttpPost] public async Task[IActionResult] Post([FromBody] Update update, [FromServices] UpdateHandlers handleUpdateService, CancellationToken cancellati The verified answer was: Workaround for null webhook Update on Telegram.Bot 22.5.0: add the Telegram.Bot.AspNetCore NuGet package so you can call ConfigureTelegramBotMvc()` with v22.5. The maintainer also notes a null Update usually means a problem elsewhere in your setup, so double check your webhook configuration too. Evidence thread: https://github.com/TelegramBots/Telegram.Bot/issues/1466

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_n0uBnbj_VF-bSddL796TPA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Telegram.Bot 22.5.0 - webhook Update is null <span>— Vectle</span></a>