Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Nicola Malizia:
Make your Telegram bot with Laravel and BotMan
Sep 13, 2017 @ 09:41:54

Nicola Malizia has written up a post showing you how to create a Telegram bot using Laravel and the BotMan package. BotMan is a project that seeks to make it easier to work with chat commands directly in an application with some handy tools included.

After a long time I’m here to talk about Telegram bots. Lately, I discovered a nice PHP library for building Telegram Bots and I want now to show you it’s potential? - ?BotMan.

BotMan is a framework agnostic PHP library that is designed to simplify the task of developing innovative bots for multiple messaging platforms, including Slack, Telegram, Microsoft Bot Framework, Nexmo, HipChat, Facebook Messenger, WeChat and many more.

The best part of this library is that you can integrate with Laravel, thus taking benefit of the vast ecosystem around it.

He then walks you through the installation of the BotMan package and creation of a simple "Hello world" kind of bot. He then shows how to install the driver for the Telegram. He then shows how to connect the bot to Telegram, execute it and expose it to the world via ngrok and how to test it out. He finishes the post with a more real world situation: creating a bot that allows users to subscribe and receive broadcasts when an announcement is made.

tagged: botman chatbot tutorial laravel telegram subscribe

Link: https://unnikked.ga/make-your-telegram-bot-with-laravel-and-botman-b8199e58461d