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
b51917be
Unverified
Commit
b51917be
authored
Sep 17, 2017
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor docblock fixes caught by Scrutinizer.
parent
597fcd2f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
ConversationDB.php
src/ConversationDB.php
+3
-3
Message.php
src/Entities/Message.php
+3
-3
Request.php
src/Request.php
+4
-4
No files found.
src/ConversationDB.php
View file @
b51917be
...
...
@@ -29,9 +29,9 @@ class ConversationDB extends DB
/**
* Select a conversation from the DB
*
* @param string $user_id
* @param string $chat_id
* @param
bool
$limit
* @param string
$user_id
* @param string
$chat_id
* @param
int|null
$limit
*
* @return array|bool
* @throws TelegramException
...
...
src/Entities/Message.php
View file @
b51917be
...
...
@@ -32,7 +32,7 @@ namespace Longman\TelegramBot\Entities;
* @method Sticker getSticker() Optional. Message is a sticker, information about the sticker
* @method Video getVideo() Optional. Message is a video, information about the video
* @method Voice getVoice() Optional. Message is a voice message, information about the file
* @method Video
Note
getVideoNote() Optional. Message is a video note message, information about the video
* @method Video
Note
getVideoNote() Optional. Message is a video note message, information about the video
* @method string getCaption() Optional. Caption for the document, photo or video, 0-200 characters
* @method Contact getContact() Optional. Message is a shared contact, information about the contact
* @method Location getLocation() Optional. Message is a shared location, information about the location
...
...
@@ -173,7 +173,7 @@ class Message extends Entity
/**
* Get command
*
* @return
bool|string
* @return
string|null
*/
public
function
getCommand
()
{
...
...
@@ -199,7 +199,7 @@ class Message extends Entity
return
$split_cmd
[
0
];
}
return
false
;
return
null
;
}
/**
...
...
src/Request.php
View file @
b51917be
...
...
@@ -110,7 +110,7 @@ class Request
/**
* Request limiter's interval between checks
*
* @var
boolean
* @var
float
*/
private
static
$limiter_interval
;
...
...
@@ -598,12 +598,12 @@ class Request
/**
* Enable request limiter
*
* @param boolean $
valu
e
* @param boolean $
enabl
e
* @param array $options
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
static
function
setLimiter
(
$
valu
e
=
true
,
array
$options
=
[])
public
static
function
setLimiter
(
$
enabl
e
=
true
,
array
$options
=
[])
{
if
(
DB
::
isDbConnected
())
{
$options_default
=
[
...
...
@@ -617,7 +617,7 @@ class Request
}
self
::
$limiter_interval
=
$options
[
'interval'
];
self
::
$limiter_enabled
=
$
valu
e
;
self
::
$limiter_enabled
=
$
enabl
e
;
}
}
...
...
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