Small typos and comment corrections.

parent 58e5ec29
...@@ -196,7 +196,7 @@ class Request ...@@ -196,7 +196,7 @@ class Request
* @param string $action Action to execute * @param string $action Action to execute
* @param array $data Data to attach to the execution * @param array $data Data to attach to the execution
* *
* @return mixed Result of the HTTP Request * @return string Result of the HTTP Request
* @throws \Longman\TelegramBot\Exception\TelegramException * @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public static function execute($action, array $data = []) public static function execute($action, array $data = [])
......
...@@ -179,13 +179,16 @@ class Telegram ...@@ -179,13 +179,16 @@ class Telegram
* @param PDO $external_pdo_connection PDO database object * @param PDO $external_pdo_connection PDO database object
* @param string $table_prefix * @param string $table_prefix
* *
* @return \Longman\TelegramBot\Telegram
* @throws \Longman\TelegramBot\Exception\TelegramException * @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function enableExternalMysql($external_pdo_connection, $table_prefix = null) public function enableExternalMySql($external_pdo_connection, $table_prefix = null)
{ {
$this->pdo = DB::externalInitialize($external_pdo_connection, $this, $table_prefix); $this->pdo = DB::externalInitialize($external_pdo_connection, $this, $table_prefix);
ConversationDB::initializeConversation(); ConversationDB::initializeConversation();
$this->mysql_enabled = true; $this->mysql_enabled = true;
return $this;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment