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
fd813acc
Unverified
Commit
fd813acc
authored
Jun 13, 2019
by
Armando Lüscher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect TelegramException throw tags.
parent
afc0bc16
Changes
65
Hide whitespace changes
Inline
Side-by-side
Showing
65 changed files
with
10 additions
and
105 deletions
+10
-105
CleanupCommand.php
src/Commands/AdminCommands/CleanupCommand.php
+1
-0
Command.php
src/Commands/Command.php
+2
-0
CallbackqueryCommand.php
src/Commands/SystemCommands/CallbackqueryCommand.php
+0
-1
ChannelchatcreatedCommand.php
src/Commands/SystemCommands/ChannelchatcreatedCommand.php
+0
-1
ChannelpostCommand.php
src/Commands/SystemCommands/ChannelpostCommand.php
+0
-1
ChoseninlineresultCommand.php
src/Commands/SystemCommands/ChoseninlineresultCommand.php
+0
-1
DeletechatphotoCommand.php
src/Commands/SystemCommands/DeletechatphotoCommand.php
+0
-1
EditedchannelpostCommand.php
src/Commands/SystemCommands/EditedchannelpostCommand.php
+0
-1
EditedmessageCommand.php
src/Commands/SystemCommands/EditedmessageCommand.php
+0
-1
GenericCommand.php
src/Commands/SystemCommands/GenericCommand.php
+1
-2
GroupchatcreatedCommand.php
src/Commands/SystemCommands/GroupchatcreatedCommand.php
+0
-1
InlinequeryCommand.php
src/Commands/SystemCommands/InlinequeryCommand.php
+0
-1
LeftchatmemberCommand.php
src/Commands/SystemCommands/LeftchatmemberCommand.php
+0
-1
MigratefromchatidCommand.php
src/Commands/SystemCommands/MigratefromchatidCommand.php
+0
-1
MigratetochatidCommand.php
src/Commands/SystemCommands/MigratetochatidCommand.php
+0
-1
NewchatmembersCommand.php
src/Commands/SystemCommands/NewchatmembersCommand.php
+0
-1
NewchatphotoCommand.php
src/Commands/SystemCommands/NewchatphotoCommand.php
+0
-1
NewchattitleCommand.php
src/Commands/SystemCommands/NewchattitleCommand.php
+0
-1
PinnedmessageCommand.php
src/Commands/SystemCommands/PinnedmessageCommand.php
+0
-1
StartCommand.php
src/Commands/SystemCommands/StartCommand.php
+0
-1
SupergroupchatcreatedCommand.php
src/Commands/SystemCommands/SupergroupchatcreatedCommand.php
+0
-1
Conversation.php
src/Conversation.php
+4
-0
Entity.php
src/Entities/Entity.php
+0
-4
InlineQueryResultArticle.php
src/Entities/InlineQuery/InlineQueryResultArticle.php
+0
-2
InlineQueryResultAudio.php
src/Entities/InlineQuery/InlineQueryResultAudio.php
+0
-2
InlineQueryResultCachedAudio.php
src/Entities/InlineQuery/InlineQueryResultCachedAudio.php
+0
-2
InlineQueryResultCachedDocument.php
src/Entities/InlineQuery/InlineQueryResultCachedDocument.php
+0
-2
InlineQueryResultCachedGif.php
src/Entities/InlineQuery/InlineQueryResultCachedGif.php
+0
-2
InlineQueryResultCachedMpeg4Gif.php
src/Entities/InlineQuery/InlineQueryResultCachedMpeg4Gif.php
+0
-2
InlineQueryResultCachedPhoto.php
src/Entities/InlineQuery/InlineQueryResultCachedPhoto.php
+0
-2
InlineQueryResultCachedSticker.php
src/Entities/InlineQuery/InlineQueryResultCachedSticker.php
+0
-2
InlineQueryResultCachedVideo.php
src/Entities/InlineQuery/InlineQueryResultCachedVideo.php
+0
-2
InlineQueryResultCachedVoice.php
src/Entities/InlineQuery/InlineQueryResultCachedVoice.php
+0
-2
InlineQueryResultContact.php
src/Entities/InlineQuery/InlineQueryResultContact.php
+0
-2
InlineQueryResultDocument.php
src/Entities/InlineQuery/InlineQueryResultDocument.php
+0
-2
InlineQueryResultGame.php
src/Entities/InlineQuery/InlineQueryResultGame.php
+0
-2
InlineQueryResultGif.php
src/Entities/InlineQuery/InlineQueryResultGif.php
+0
-2
InlineQueryResultLocation.php
src/Entities/InlineQuery/InlineQueryResultLocation.php
+0
-2
InlineQueryResultMpeg4Gif.php
src/Entities/InlineQuery/InlineQueryResultMpeg4Gif.php
+0
-2
InlineQueryResultPhoto.php
src/Entities/InlineQuery/InlineQueryResultPhoto.php
+0
-2
InlineQueryResultVenue.php
src/Entities/InlineQuery/InlineQueryResultVenue.php
+0
-2
InlineQueryResultVideo.php
src/Entities/InlineQuery/InlineQueryResultVideo.php
+0
-2
InlineQueryResultVoice.php
src/Entities/InlineQuery/InlineQueryResultVoice.php
+0
-2
InputMediaAnimation.php
src/Entities/InputMedia/InputMediaAnimation.php
+0
-2
InputMediaAudio.php
src/Entities/InputMedia/InputMediaAudio.php
+0
-2
InputMediaDocument.php
src/Entities/InputMedia/InputMediaDocument.php
+0
-2
InputMediaPhoto.php
src/Entities/InputMedia/InputMediaPhoto.php
+0
-2
InputMediaVideo.php
src/Entities/InputMedia/InputMediaVideo.php
+0
-2
Keyboard.php
src/Entities/Keyboard.php
+0
-2
Message.php
src/Entities/Message.php
+0
-3
ReplyToMessage.php
src/Entities/ReplyToMessage.php
+0
-2
ServerResponse.php
src/Entities/ServerResponse.php
+0
-2
PassportElementErrorDataField.php
...rt/PassportElementError/PassportElementErrorDataField.php
+0
-2
PassportElementErrorFile.php
...assport/PassportElementError/PassportElementErrorFile.php
+0
-2
PassportElementErrorFiles.php
...ssport/PassportElementError/PassportElementErrorFiles.php
+0
-2
PassportElementErrorFrontSide.php
...rt/PassportElementError/PassportElementErrorFrontSide.php
+0
-2
PassportElementErrorReverseSide.php
.../PassportElementError/PassportElementErrorReverseSide.php
+0
-2
PassportElementErrorSelfie.php
...sport/PassportElementError/PassportElementErrorSelfie.php
+0
-2
PassportElementErrorTranslationFile.php
...sportElementError/PassportElementErrorTranslationFile.php
+0
-2
PassportElementErrorTranslationFiles.php
...portElementError/PassportElementErrorTranslationFiles.php
+0
-2
PassportElementErrorUnspecified.php
.../PassportElementError/PassportElementErrorUnspecified.php
+0
-2
Request.php
src/Request.php
+1
-2
Telegram.php
src/Telegram.php
+1
-0
HiddenCommand.php
tests/unit/Commands/CustomTestCommands/HiddenCommand.php
+0
-1
VisibleCommand.php
tests/unit/Commands/CustomTestCommands/VisibleCommand.php
+0
-1
No files found.
src/Commands/AdminCommands/CleanupCommand.php
View file @
fd813acc
...
...
@@ -339,6 +339,7 @@ class CleanupCommand extends AdminCommand
* Execution if MySQL is required but not available
*
* @return \Longman\TelegramBot\Entities\ServerResponse
* @throws TelegramException
*/
public
function
executeNoDb
()
{
...
...
src/Commands/Command.php
View file @
fd813acc
...
...
@@ -400,6 +400,7 @@ abstract class Command
* @param array $data
*
* @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
replyToChat
(
$text
,
array
$data
=
[])
{
...
...
@@ -420,6 +421,7 @@ abstract class Command
* @param array $data
*
* @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
replyToUser
(
$text
,
array
$data
=
[])
{
...
...
src/Commands/SystemCommands/CallbackqueryCommand.php
View file @
fd813acc
...
...
@@ -42,7 +42,6 @@ class CallbackqueryCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/ChannelchatcreatedCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class ChannelchatcreatedCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/ChannelpostCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class ChannelpostCommand extends SystemCommand
* Execute command
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/ChoseninlineresultCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class ChoseninlineresultCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/DeletechatphotoCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class DeletechatphotoCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/EditedchannelpostCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class EditedchannelpostCommand extends SystemCommand
* Execute command
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/EditedmessageCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class EditedmessageCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/GenericCommand.php
View file @
fd813acc
...
...
@@ -36,8 +36,7 @@ class GenericCommand extends SystemCommand
/**
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
* @return \Longman\TelegramBot\Entities\ServerResponse
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/GroupchatcreatedCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class GroupchatcreatedCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/InlinequeryCommand.php
View file @
fd813acc
...
...
@@ -39,7 +39,6 @@ class InlinequeryCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/LeftchatmemberCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class LeftchatmemberCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/MigratefromchatidCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class MigratefromchatidCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/MigratetochatidCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class MigratetochatidCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/NewchatmembersCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class NewchatmembersCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/NewchatphotoCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class NewchatphotoCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/NewchattitleCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class NewchattitleCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/PinnedmessageCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class PinnedmessageCommand extends SystemCommand
* Execute command
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/StartCommand.php
View file @
fd813acc
...
...
@@ -44,7 +44,6 @@ class StartCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Commands/SystemCommands/SupergroupchatcreatedCommand.php
View file @
fd813acc
...
...
@@ -38,7 +38,6 @@ class SupergroupchatcreatedCommand extends SystemCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
src/Conversation.php
View file @
fd813acc
...
...
@@ -164,6 +164,7 @@ class Conversation
* Currently the Conversation is not deleted but just set to 'stopped'
*
* @return bool
* @throws Exception\TelegramException
*/
public
function
stop
()
{
...
...
@@ -174,6 +175,7 @@ class Conversation
* Cancel the current conversation
*
* @return bool
* @throws Exception\TelegramException
*/
public
function
cancel
()
{
...
...
@@ -186,6 +188,7 @@ class Conversation
* @param string $status
*
* @return bool
* @throws Exception\TelegramException
*/
protected
function
updateStatus
(
$status
)
{
...
...
@@ -209,6 +212,7 @@ class Conversation
* Store the array/variable in the database with json_encode() function
*
* @return bool
* @throws Exception\TelegramException
*/
public
function
update
()
{
...
...
src/Entities/Entity.php
View file @
fd813acc
...
...
@@ -33,8 +33,6 @@ abstract class Entity
*
* @param array $data
* @param string $bot_username
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
$data
,
$bot_username
=
''
)
{
...
...
@@ -96,8 +94,6 @@ abstract class Entity
/**
* Perform any special entity validation
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
protected
function
validate
()
{
...
...
src/Entities/InlineQuery/InlineQueryResultArticle.php
View file @
fd813acc
...
...
@@ -62,8 +62,6 @@ class InlineQueryResultArticle extends InlineEntity implements InlineQueryResult
* InlineQueryResultArticle constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultAudio.php
View file @
fd813acc
...
...
@@ -56,8 +56,6 @@ class InlineQueryResultAudio extends InlineEntity implements InlineQueryResult
* InlineQueryResultAudio constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultCachedAudio.php
View file @
fd813acc
...
...
@@ -47,8 +47,6 @@ class InlineQueryResultCachedAudio extends InlineEntity implements InlineQueryRe
* InlineQueryResultCachedAudio constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultCachedDocument.php
View file @
fd813acc
...
...
@@ -53,8 +53,6 @@ class InlineQueryResultCachedDocument extends InlineEntity implements InlineQuer
* InlineQueryResultCachedDocument constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultCachedGif.php
View file @
fd813acc
...
...
@@ -50,8 +50,6 @@ class InlineQueryResultCachedGif extends InlineEntity implements InlineQueryResu
* InlineQueryResultCachedGif constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultCachedMpeg4Gif.php
View file @
fd813acc
...
...
@@ -50,8 +50,6 @@ class InlineQueryResultCachedMpeg4Gif extends InlineEntity implements InlineQuer
* InlineQueryResultCachedMpeg4Gif constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultCachedPhoto.php
View file @
fd813acc
...
...
@@ -53,8 +53,6 @@ class InlineQueryResultCachedPhoto extends InlineEntity implements InlineQueryRe
* InlineQueryResultCachedPhoto constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultCachedSticker.php
View file @
fd813acc
...
...
@@ -44,8 +44,6 @@ class InlineQueryResultCachedSticker extends InlineEntity implements InlineQuery
* InlineQueryResultCachedSticker constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultCachedVideo.php
View file @
fd813acc
...
...
@@ -53,8 +53,6 @@ class InlineQueryResultCachedVideo extends InlineEntity implements InlineQueryRe
* InlineQueryResultCachedVideo constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultCachedVoice.php
View file @
fd813acc
...
...
@@ -50,8 +50,6 @@ class InlineQueryResultCachedVoice extends InlineEntity implements InlineQueryRe
* InlineQueryResultCachedVoice constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultContact.php
View file @
fd813acc
...
...
@@ -61,8 +61,6 @@ class InlineQueryResultContact extends InlineEntity implements InlineQueryResult
* InlineQueryResultContact constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultDocument.php
View file @
fd813acc
...
...
@@ -65,8 +65,6 @@ class InlineQueryResultDocument extends InlineEntity implements InlineQueryResul
* InlineQueryResultDocument constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultGame.php
View file @
fd813acc
...
...
@@ -40,8 +40,6 @@ class InlineQueryResultGame extends InlineEntity implements InlineQueryResult
* InlineQueryResultGame constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultGif.php
View file @
fd813acc
...
...
@@ -61,8 +61,6 @@ class InlineQueryResultGif extends InlineEntity implements InlineQueryResult
* InlineQueryResultGif constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultLocation.php
View file @
fd813acc
...
...
@@ -62,8 +62,6 @@ class InlineQueryResultLocation extends InlineEntity implements InlineQueryResul
* InlineQueryResultLocation constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultMpeg4Gif.php
View file @
fd813acc
...
...
@@ -61,8 +61,6 @@ class InlineQueryResultMpeg4Gif extends InlineEntity implements InlineQueryResul
* InlineQueryResultMpeg4Gif constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultPhoto.php
View file @
fd813acc
...
...
@@ -62,8 +62,6 @@ class InlineQueryResultPhoto extends InlineEntity implements InlineQueryResult
* InlineQueryResultPhoto constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultVenue.php
View file @
fd813acc
...
...
@@ -67,8 +67,6 @@ class InlineQueryResultVenue extends InlineEntity implements InlineQueryResult
* InlineQueryResultVenue constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultVideo.php
View file @
fd813acc
...
...
@@ -68,8 +68,6 @@ class InlineQueryResultVideo extends InlineEntity implements InlineQueryResult
* InlineQueryResultVideo constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InlineQuery/InlineQueryResultVoice.php
View file @
fd813acc
...
...
@@ -53,8 +53,6 @@ class InlineQueryResultVoice extends InlineEntity implements InlineQueryResult
* InlineQueryResultVoice constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InputMedia/InputMediaAnimation.php
View file @
fd813acc
...
...
@@ -52,8 +52,6 @@ class InputMediaAnimation extends Entity implements InputMedia
* InputMediaAnimation constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InputMedia/InputMediaAudio.php
View file @
fd813acc
...
...
@@ -52,8 +52,6 @@ class InputMediaAudio extends Entity implements InputMedia
* InputMediaAudio constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InputMedia/InputMediaDocument.php
View file @
fd813acc
...
...
@@ -43,8 +43,6 @@ class InputMediaDocument extends Entity implements InputMedia
* InputMediaDocument constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InputMedia/InputMediaPhoto.php
View file @
fd813acc
...
...
@@ -40,8 +40,6 @@ class InputMediaPhoto extends Entity implements InputMedia
* InputMediaPhoto constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/InputMedia/InputMediaVideo.php
View file @
fd813acc
...
...
@@ -55,8 +55,6 @@ class InputMediaVideo extends Entity implements InputMedia
* InputMediaVideo constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/Keyboard.php
View file @
fd813acc
...
...
@@ -202,7 +202,6 @@ class Keyboard extends Entity
* @param array $data
*
* @return \Longman\TelegramBot\Entities\Keyboard
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
static
function
remove
(
array
$data
=
[])
{
...
...
@@ -217,7 +216,6 @@ class Keyboard extends Entity
* @param array $data
*
* @return \Longman\TelegramBot\Entities\Keyboard
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
static
function
forceReply
(
array
$data
=
[])
{
...
...
src/Entities/Message.php
View file @
fd813acc
...
...
@@ -104,8 +104,6 @@ class Message extends Entity
*
* @param array $data
* @param string $bot_username
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
,
$bot_username
=
''
)
{
...
...
@@ -264,7 +262,6 @@ class Message extends Entity
* Bot added in chat
*
* @return bool
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
botAddedInChat
()
{
...
...
src/Entities/ReplyToMessage.php
View file @
fd813acc
...
...
@@ -22,8 +22,6 @@ class ReplyToMessage extends Message
*
* @param array $data
* @param string $bot_username
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
,
$bot_username
=
''
)
{
...
...
src/Entities/ServerResponse.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class ServerResponse extends Entity
*
* @param array $data
* @param string $bot_username
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
,
$bot_username
)
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorDataField.php
View file @
fd813acc
...
...
@@ -31,8 +31,6 @@ class PassportElementErrorDataField extends Entity implements PassportElementErr
* PassportElementErrorDataField constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorFile.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class PassportElementErrorFile extends Entity implements PassportElementError
* PassportElementErrorFile constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorFiles.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class PassportElementErrorFiles extends Entity implements PassportElementError
* PassportElementErrorFiles constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorFrontSide.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class PassportElementErrorFrontSide extends Entity implements PassportElementErr
* PassportElementErrorFrontSide constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorReverseSide.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class PassportElementErrorReverseSide extends Entity implements PassportElementE
* PassportElementErrorReverseSide constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorSelfie.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class PassportElementErrorSelfie extends Entity implements PassportElementError
* PassportElementErrorSelfie constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorTranslationFile.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class PassportElementErrorTranslationFile extends Entity implements PassportElem
* PassportElementErrorTranslationFile constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorTranslationFiles.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class PassportElementErrorTranslationFiles extends Entity implements PassportEle
* PassportElementErrorTranslationFiles constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Entities/TelegramPassport/PassportElementError/PassportElementErrorUnspecified.php
View file @
fd813acc
...
...
@@ -30,8 +30,6 @@ class PassportElementErrorUnspecified extends Entity implements PassportElementE
* PassportElementErrorUnspecified constructor
*
* @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
__construct
(
array
$data
=
[])
{
...
...
src/Request.php
View file @
fd813acc
...
...
@@ -421,6 +421,7 @@ class Request
* @param array $multipart
*
* @return mixed
* @throws TelegramException
*/
private
static
function
mediaInputHelper
(
$item
,
&
$has_resource
,
array
&
$multipart
)
{
...
...
@@ -699,7 +700,6 @@ class Request
* @param array $data
*
* @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
static
function
__callStatic
(
$action
,
array
$data
)
{
...
...
@@ -717,7 +717,6 @@ class Request
* don't need to fire a message after execution
*
* @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
static
function
emptyResponse
()
{
...
...
src/Telegram.php
View file @
fd813acc
...
...
@@ -880,6 +880,7 @@ class Telegram
* @param array $options
*
* @return \Longman\TelegramBot\Telegram
* @throws TelegramException
*/
public
function
enableLimiter
(
array
$options
=
[])
{
...
...
tests/unit/Commands/CustomTestCommands/HiddenCommand.php
View file @
fd813acc
...
...
@@ -47,7 +47,6 @@ class HiddenCommand extends UserCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
tests/unit/Commands/CustomTestCommands/VisibleCommand.php
View file @
fd813acc
...
...
@@ -47,7 +47,6 @@ class VisibleCommand extends UserCommand
* Command execute method
*
* @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/
public
function
execute
()
{
...
...
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