Skip to content

Commit a4a10d2

Browse files
committed
Fix error in example
1 parent e669102 commit a4a10d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bot examples/webhook/update.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
//Test Inline
3636
$data = $telegram->getData();
3737
if ($data['inline_query'] !== null && $data['inline_query'] != '') {
38+
$query = $data["inline_query"]["query"];
3839
// GIF Examples
3940
if (strpos('testText', $query) !== false) {
4041
$results = json_encode([['type' => 'gif', 'id'=> '1', 'gif_url' => 'http://i1260.photobucket.com/albums/ii571/LMFAOSPEAKS/LMFAO/113481459.gif', 'thumb_url'=>'http://i1260.photobucket.com/albums/ii571/LMFAOSPEAKS/LMFAO/113481459.gif']]);

0 commit comments

Comments
 (0)