We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae4ece3 commit ca5cde4Copy full SHA for ca5cde4
bot examples/webhook/update.php
@@ -23,7 +23,7 @@
23
24
// Test CallBack
25
$callback_query = $telegram->Callback_Query();
26
-if ($callback_query !== null && $callback_query != '') {
+if (!empty($callback_query)) {
27
$reply = 'Callback value '.$telegram->Callback_Data();
28
$content = ['chat_id' => $telegram->Callback_ChatID(), 'text' => $reply];
29
$telegram->sendMessage($content);
@@ -34,7 +34,7 @@
34
35
//Test Inline
36
$data = $telegram->getData();
37
-if ($data['inline_query'] !== null && $data['inline_query'] != '') {
+if (!empty($data['inline_query'])) {
38
$query = $data['inline_query']['query'];
39
// GIF Examples
40
if (strpos('testText', $query) !== false) {
0 commit comments