Skip to content

Commit

Permalink
Send photo with instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
itorgov committed Jan 27, 2019
1 parent 2d19425 commit 172bded
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Jobs/Telegram/WebhookJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ public function handle(Client $client): void

$url = url("/webhook/forge/{$token}", [], true);

$client->post('sendMessage', [
$client->post('sendPhoto', [
'json' => [
'chat_id' => $chatId,
'text' => "It is your webhook URL for this chat: $url."
'photo' => url('/images/forge_webhook_place.png', [], true),
'caption' => "Paste this URL $url to that input field in your app settings and press \"Add Webhook\"."
]
]);
}
Expand Down
Binary file added public/images/forge_webhook_place.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 172bded

Please sign in to comment.