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
46758594
Commit
46758594
authored
Apr 16, 2017
by
Jack'lul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code fixes
parent
db3b342a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
cron.php
examples/cron.php
+1
-1
getUpdatesCLI.php
examples/getUpdatesCLI.php
+1
-1
hook.php
examples/hook.php
+1
-1
DB.php
src/DB.php
+2
-2
Telegram.php
src/Telegram.php
+1
-1
No files found.
examples/cron.php
View file @
46758594
...
...
@@ -64,7 +64,7 @@ try {
//$telegram->setUploadPath('../Upload');
// Requests Limiter (tries to prevent reaching Telegram API limits)
//
Second
argument are options
//
First
argument are options
$telegram
->
enableLimiter
();
//$telegram->enableLimiter(['interval' => 0.5);
...
...
examples/getUpdatesCLI.php
View file @
46758594
...
...
@@ -70,7 +70,7 @@ try {
//$telegram->enableBotan('your_token', ['timeout' => 3]);
// Requests Limiter (tries to prevent reaching Telegram API limits)
//
Second
argument are options
//
First
argument are options
$telegram
->
enableLimiter
();
//$telegram->enableLimiter(['interval' => 0.5);
...
...
examples/hook.php
View file @
46758594
...
...
@@ -69,7 +69,7 @@ try {
//$telegram->enableBotan('your_token', ['timeout' => 3]);
// Requests Limiter (tries to prevent reaching Telegram API limits)
//
Second
argument are options
//
First
argument are options
$telegram
->
enableLimiter
();
//$telegram->enableLimiter(['interval' => 0.5);
...
...
src/DB.php
View file @
46758594
...
...
@@ -173,7 +173,7 @@ class DB
* Fetch update(s) from DB
*
* @param int $limit Limit the number of updates to fetch
* @param int $id Check for unique update id
* @param int $id
Check for unique update id
*
* @return array|bool Fetched data or false if not connected
* @throws \Longman\TelegramBot\Exception\TelegramException
...
...
@@ -482,7 +482,7 @@ class DB
$update_id
=
$update
->
getUpdateId
();
$update_type
=
$update
->
getUpdateType
();
if
(
count
(
self
::
selectTelegramUpdate
(
1
,
$update
->
getUpdateId
()))
==
1
)
{
if
(
count
(
self
::
selectTelegramUpdate
(
1
,
$update
->
getUpdateId
()))
==
=
1
)
{
throw
new
TelegramException
(
'Duplicate update received!'
);
}
...
...
src/Telegram.php
View file @
46758594
...
...
@@ -951,7 +951,7 @@ class Telegram
/**
* Is this session initiated by runCommands()
*
* @return
string
* @return
bool
*/
public
function
isRunCommands
()
{
...
...
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