Building a Telegram Bot with Azure Functions and Node.js

Introduction

In this tutorial, we will create an Azure Function with a simple Telegram Bot (Echo Bot). We will test it locally and then deploy it to Azure Portal. It means our bot will work only at the moment when someone is using it. So the function will be triggered only when someone is sending a message to a bot.
Continue reading Building a Telegram Bot with Azure Functions and Node.js

Using Joi plugin for validation in Hapi

In Hapi, you can validate incoming data using the Joi plugin. It’s object schema language and provides a perfect mechanism to validate JavaScript objects. This plugin comes from Hapi infrastructure, so you don’t need to install any additional packages. You can create your own validation schemas, multiple and conditional schemas. Continue reading Using Joi plugin for validation in Hapi