How to create a Telegram Bot with Azure Functions (NET 6, isolated process)

I鈥檝e written about hosting a python based Telegram bot here before. This time we鈥檒l take look at doing it with NET 6, C#, Azure Functions V4 and the still fresh execution mode called isolated process. In this mode, each function runs in a separate environment. GitHub repo with the full solution What we鈥檒l cover creating a sample Azure Functions project and deploying it to your Azure subscription creating a Telegram Bot and using it in a webhook configuration Prerequisites...

May 27, 2022 路 5 min 路 1032 words 路 Micha艂 呕o艂nieruk

Handling expired Azure Blob Storage links in a user-friendly way

馃摑 Use case: your app hosts files in Azure Blob Storage and users can generate expiring links to these files (using SAS tokens) 馃 Problem: when a user opens a link with an expired SAS token, an unfriendly XML is displayed containing a technical error 馃槉 Solution: proxy the link with SAS token through an endpoint (Azure Function in my case), which will either redirect to the file (if the token is still valid) or show a descriptive error message...

May 26, 2022 路 3 min 路 523 words 路 Micha艂 呕o艂nieruk