You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No TelegraphChat defined for this request {"exception":"[object] (DefStudio\Telegraph\Exceptions\TelegraphException(code: 0): No TelegraphChat defined for this request
Code from docs:
namespace App\Http\Controllers;
use DefStudio\Telegraph\Facades\Telegraph;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use DefStudio\Telegraph\Handlers\WebhookHandler;
use DefStudio\Telegraph\Keyboard\Keyboard;
use DefStudio\Telegraph\Keyboard\ReplyKeyboard;
use DefStudio\Telegraph\Models\TelegraphChat;
use DefStudio\Telegraph\Models\TelegraphBot;
use DefStudio\Telegraph\Keyboard\Button;
class WebhookController extends WebhookHandler
{
public function test()
{
Telegraph::message('hello world')
->keyboard(Keyboard::make()->buttons([
Button::make("🗑️ Delete")->action("delete")->param('id', 1),
Button::make("📖 Mark as Read")->action("read")->param('id', 2),
Button::make("👀 Open")->url('https://test.it'),
])->chunk(2))->send();
}
Activity