Webhooks API calls
answerInlineQuery()
send back the results for an inline query
Telegraph::answerInlineQuery($inlineQuery->id(), [ InlineQueryResultPhoto::make($logo->id."-light", "https://logofinder.dev/$logo->id/light.jpg", "https://logofinder.dev/$logo->id/light/thumb.jpg") ->caption('Light Logo'), InlineQueryResultPhoto::make($logo->id."-dark", "https://logofinder.dev/$logo->id/dark.jpg", "https://logofinder.dev/$logo->id/dark/thumb.jpg") ->caption('Dark Logo'), ])->cache(seconds: 600)->send();
replyWebhook()
replies to a webhook callback
Telegraph::replyWebhook($callbackQueryId, 'message received', $showAlert)->send();