@@ -100,7 +100,7 @@ |
||
100 | 100 | |
101 | 101 | // Exec getUpdates |
102 | 102 | $this->execRequest('getUpdates?' . http_build_query($parameters) |
103 | - . '&allowed_updates=' . json_encode($allowed_updates)); |
|
103 | + . '&allowed_updates=' . json_encode($allowed_updates)); |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** @} */ |
@@ -138,8 +138,8 @@ |
||
138 | 138 | { |
139 | 139 | // If the user has already added a button in this row |
140 | 140 | if ($this->column != 0) { |
141 | - // Change row |
|
142 | - $this->changeRow(); |
|
141 | + // Change row |
|
142 | + $this->changeRow(); |
|
143 | 143 | } |
144 | 144 | |
145 | 145 | // Add buttons to the next row |
@@ -9,10 +9,10 @@ |
||
9 | 9 | require_once '../vendor/autoload.php'; |
10 | 10 | |
11 | 11 | class EchoBot extends PhpBotFramework\Bot { |
12 | - // Override processMessage in order to send user the same message it give us. |
|
13 | - protected function processMessage($message) { |
|
12 | + // Override processMessage in order to send user the same message it give us. |
|
13 | + protected function processMessage($message) { |
|
14 | 14 | $this->sendMessage($message['text']); |
15 | - } |
|
15 | + } |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | $bot = new EchoBot('YOUR_BOT_TOKEN'); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | // Get the language from the bot |
63 | 63 | $sth = $this->pdo->prepare('SELECT language FROM ' . $this->user_table . ' WHERE ' |
64 | - . $this->id_column . ' = :chat_id'); |
|
64 | + . $this->id_column . ' = :chat_id'); |
|
65 | 65 | $sth->bindParam(':chat_id', $this->_chat_id); |
66 | 66 | |
67 | 67 | try { |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | |
98 | 98 | // Update the language in the database |
99 | 99 | $sth = $this->pdo->prepare('UPDATE ' . $this->user_table . ' SET language = :language WHERE ' |
100 | - . $this->id_column . ' = :id'); |
|
100 | + . $this->id_column . ' = :id'); |
|
101 | 101 | $sth->bindParam(':language', $language); |
102 | 102 | $sth->bindParam(':id', $this->_chat_id); |
103 | 103 |
@@ -95,7 +95,7 @@ |
||
95 | 95 | $offset = $this->getUpdateOffsetRedis($offset_key); |
96 | 96 | $this->initCommands(); |
97 | 97 | |
98 | - // Process all updates received |
|
98 | + // Process all updates received |
|
99 | 99 | while (true) { |
100 | 100 | $updates = $this->getUpdates($offset, $limit, $timeout); |
101 | 101 |