I want to build a bot in Telegram with Laravel 5.3, but I have some problems...
My site is located on the computer. How can I register some easy commands (/help, /start)? When I'm writing to bot, it doesn't respond to commands :( But I can get the bot data (id, firstname and bot name). This is my ugly TelegramController:
<?php
namespace App\Http\Controllers;
use Telegram\Bot\Laravel\Facades\Telegram;
class TelegramController extends Controller
{
public function index()
{
$response = Telegram::getMe();
dd($response);
}
}
Please, write some examples... I do not understand what is written in the docs. Have a good day and thanks for help!
Github repository: https://github.com/irazasyed/telegram-bot-sdk