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 2ac5d4eCopy full SHA for 2ac5d4e
bot examples/webhook/gamebot.php
@@ -16,8 +16,7 @@
16
17
return;
18
}
19
-
20
-if ($data['inline_query'] !== null && $data['inline_query'] != '') {
+if (!empty($data['inline_query'])) {
21
$query = $data['inline_query']['query'];
22
23
if (strpos('gamename', $query) !== false) {
@@ -27,7 +26,7 @@
27
26
28
29
30
-if ($callback_query !== null && $callback_query != '') {
+if (!empty($callback_query)) {
31
$game_name = $data['callback_query']['game_short_name'];
32
$user_id = $data['callback_query']['from']['id'];
33
$inline_id = $data['callback_query']['inline_message_id'];
0 commit comments