How to use Notion API from Typescript Azure Function

I’m a big fan of Notion. It’s a great piece of software capable of doing countless things — from simple note-taking, habit tracking and Getting Things Done all the way to fully managing the work at a startup. Since May 2021 developers gained access to the beta version of Notion API. It opened up the world of possibilities and already there’re thousands of integrations, for example through Zapier or automate.io....

May 28, 2022 · 10 min · 1987 words · Michał Żołnieruk

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

I’ve written about hosting a python based Telegram bot here before. This time we’ll 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’ll 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