/** * @param integer $chatId * @param string $message */ public function sendMessage($chatId, $message) { $telegram = new self(); $telegram->apiRequest(self::API_URL_SEND_MESSAGE, array('chat_id' => $chatId, "text" => $message)); }