@@ -92,7 +92,7 @@ |
||
| 92 | 92 | * @see CoreBot::sendMessage |
| 93 | 93 | */ |
| 94 | 94 | public function broadcastMessage(string $text, string $reply_markup = null, string $parse_mode = 'HTML', |
| 95 | - bool $disable_web_preview = true, bool $disable_notification = false) |
|
| 95 | + bool $disable_web_preview = true, bool $disable_notification = false) |
|
| 96 | 96 | { |
| 97 | 97 | |
| 98 | 98 | if (!isset($this->pdo)) { |
@@ -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'); |