title | navigation.title |
---|---|
Setting a webhook for the bot |
Setting a webhook |
A webhook lets your bot to answer commands issued from telegram chats and buttons inside messages
php artisan telegraph:set-webhook {bot_id}
the bot_id
argument is mandatory if you have created more than one bot
A webhook can be created programmatically for a bot by calling its registerWebhook()
method
/** @var TelegraphBot $bot */
$bot->registerWebhook()->send();