Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
TelegramBot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
TelegramBot
Commits
576d6907
Unverified
Commit
576d6907
authored
Aug 27, 2016
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small typos and comment corrections.
parent
58e5ec29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
Request.php
src/Request.php
+1
-1
Telegram.php
src/Telegram.php
+4
-1
No files found.
src/Request.php
View file @
576d6907
...
@@ -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
=
[])
...
...
src/Telegram.php
View file @
576d6907
...
@@ -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
enableExternalMy
s
ql
(
$external_pdo_connection
,
$table_prefix
=
null
)
public
function
enableExternalMy
S
ql
(
$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
;
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment