Fix incorrect TelegramException throw tags.

parent afc0bc16
...@@ -339,6 +339,7 @@ class CleanupCommand extends AdminCommand ...@@ -339,6 +339,7 @@ class CleanupCommand extends AdminCommand
* Execution if MySQL is required but not available * Execution if MySQL is required but not available
* *
* @return \Longman\TelegramBot\Entities\ServerResponse * @return \Longman\TelegramBot\Entities\ServerResponse
* @throws TelegramException
*/ */
public function executeNoDb() public function executeNoDb()
{ {
......
...@@ -400,6 +400,7 @@ abstract class Command ...@@ -400,6 +400,7 @@ abstract class Command
* @param array $data * @param array $data
* *
* @return \Longman\TelegramBot\Entities\ServerResponse * @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function replyToChat($text, array $data = []) public function replyToChat($text, array $data = [])
{ {
...@@ -420,6 +421,7 @@ abstract class Command ...@@ -420,6 +421,7 @@ abstract class Command
* @param array $data * @param array $data
* *
* @return \Longman\TelegramBot\Entities\ServerResponse * @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function replyToUser($text, array $data = []) public function replyToUser($text, array $data = [])
{ {
......
...@@ -42,7 +42,6 @@ class CallbackqueryCommand extends SystemCommand ...@@ -42,7 +42,6 @@ class CallbackqueryCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class ChannelchatcreatedCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class ChannelchatcreatedCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class ChannelpostCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class ChannelpostCommand extends SystemCommand
* Execute command * Execute command
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class ChoseninlineresultCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class ChoseninlineresultCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class DeletechatphotoCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class DeletechatphotoCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class EditedchannelpostCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class EditedchannelpostCommand extends SystemCommand
* Execute command * Execute command
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class EditedmessageCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class EditedmessageCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -36,8 +36,7 @@ class GenericCommand extends SystemCommand ...@@ -36,8 +36,7 @@ class GenericCommand extends SystemCommand
/** /**
* Command execute method * Command execute method
* *
* @return mixed * @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class GroupchatcreatedCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class GroupchatcreatedCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -39,7 +39,6 @@ class InlinequeryCommand extends SystemCommand ...@@ -39,7 +39,6 @@ class InlinequeryCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class LeftchatmemberCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class LeftchatmemberCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class MigratefromchatidCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class MigratefromchatidCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class MigratetochatidCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class MigratetochatidCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class NewchatmembersCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class NewchatmembersCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class NewchatphotoCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class NewchatphotoCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class NewchattitleCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class NewchattitleCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class PinnedmessageCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class PinnedmessageCommand extends SystemCommand
* Execute command * Execute command
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -44,7 +44,6 @@ class StartCommand extends SystemCommand ...@@ -44,7 +44,6 @@ class StartCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -38,7 +38,6 @@ class SupergroupchatcreatedCommand extends SystemCommand ...@@ -38,7 +38,6 @@ class SupergroupchatcreatedCommand extends SystemCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -164,6 +164,7 @@ class Conversation ...@@ -164,6 +164,7 @@ class Conversation
* Currently the Conversation is not deleted but just set to 'stopped' * Currently the Conversation is not deleted but just set to 'stopped'
* *
* @return bool * @return bool
* @throws Exception\TelegramException
*/ */
public function stop() public function stop()
{ {
...@@ -174,6 +175,7 @@ class Conversation ...@@ -174,6 +175,7 @@ class Conversation
* Cancel the current conversation * Cancel the current conversation
* *
* @return bool * @return bool
* @throws Exception\TelegramException
*/ */
public function cancel() public function cancel()
{ {
...@@ -186,6 +188,7 @@ class Conversation ...@@ -186,6 +188,7 @@ class Conversation
* @param string $status * @param string $status
* *
* @return bool * @return bool
* @throws Exception\TelegramException
*/ */
protected function updateStatus($status) protected function updateStatus($status)
{ {
...@@ -209,6 +212,7 @@ class Conversation ...@@ -209,6 +212,7 @@ class Conversation
* Store the array/variable in the database with json_encode() function * Store the array/variable in the database with json_encode() function
* *
* @return bool * @return bool
* @throws Exception\TelegramException
*/ */
public function update() public function update()
{ {
......
...@@ -33,8 +33,6 @@ abstract class Entity ...@@ -33,8 +33,6 @@ abstract class Entity
* *
* @param array $data * @param array $data
* @param string $bot_username * @param string $bot_username
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct($data, $bot_username = '') public function __construct($data, $bot_username = '')
{ {
...@@ -96,8 +94,6 @@ abstract class Entity ...@@ -96,8 +94,6 @@ abstract class Entity
/** /**
* Perform any special entity validation * Perform any special entity validation
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
protected function validate() protected function validate()
{ {
......
...@@ -62,8 +62,6 @@ class InlineQueryResultArticle extends InlineEntity implements InlineQueryResult ...@@ -62,8 +62,6 @@ class InlineQueryResultArticle extends InlineEntity implements InlineQueryResult
* InlineQueryResultArticle constructor * InlineQueryResultArticle constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -56,8 +56,6 @@ class InlineQueryResultAudio extends InlineEntity implements InlineQueryResult ...@@ -56,8 +56,6 @@ class InlineQueryResultAudio extends InlineEntity implements InlineQueryResult
* InlineQueryResultAudio constructor * InlineQueryResultAudio constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -47,8 +47,6 @@ class InlineQueryResultCachedAudio extends InlineEntity implements InlineQueryRe ...@@ -47,8 +47,6 @@ class InlineQueryResultCachedAudio extends InlineEntity implements InlineQueryRe
* InlineQueryResultCachedAudio constructor * InlineQueryResultCachedAudio constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -53,8 +53,6 @@ class InlineQueryResultCachedDocument extends InlineEntity implements InlineQuer ...@@ -53,8 +53,6 @@ class InlineQueryResultCachedDocument extends InlineEntity implements InlineQuer
* InlineQueryResultCachedDocument constructor * InlineQueryResultCachedDocument constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -50,8 +50,6 @@ class InlineQueryResultCachedGif extends InlineEntity implements InlineQueryResu ...@@ -50,8 +50,6 @@ class InlineQueryResultCachedGif extends InlineEntity implements InlineQueryResu
* InlineQueryResultCachedGif constructor * InlineQueryResultCachedGif constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -50,8 +50,6 @@ class InlineQueryResultCachedMpeg4Gif extends InlineEntity implements InlineQuer ...@@ -50,8 +50,6 @@ class InlineQueryResultCachedMpeg4Gif extends InlineEntity implements InlineQuer
* InlineQueryResultCachedMpeg4Gif constructor * InlineQueryResultCachedMpeg4Gif constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -53,8 +53,6 @@ class InlineQueryResultCachedPhoto extends InlineEntity implements InlineQueryRe ...@@ -53,8 +53,6 @@ class InlineQueryResultCachedPhoto extends InlineEntity implements InlineQueryRe
* InlineQueryResultCachedPhoto constructor * InlineQueryResultCachedPhoto constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -44,8 +44,6 @@ class InlineQueryResultCachedSticker extends InlineEntity implements InlineQuery ...@@ -44,8 +44,6 @@ class InlineQueryResultCachedSticker extends InlineEntity implements InlineQuery
* InlineQueryResultCachedSticker constructor * InlineQueryResultCachedSticker constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -53,8 +53,6 @@ class InlineQueryResultCachedVideo extends InlineEntity implements InlineQueryRe ...@@ -53,8 +53,6 @@ class InlineQueryResultCachedVideo extends InlineEntity implements InlineQueryRe
* InlineQueryResultCachedVideo constructor * InlineQueryResultCachedVideo constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -50,8 +50,6 @@ class InlineQueryResultCachedVoice extends InlineEntity implements InlineQueryRe ...@@ -50,8 +50,6 @@ class InlineQueryResultCachedVoice extends InlineEntity implements InlineQueryRe
* InlineQueryResultCachedVoice constructor * InlineQueryResultCachedVoice constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -61,8 +61,6 @@ class InlineQueryResultContact extends InlineEntity implements InlineQueryResult ...@@ -61,8 +61,6 @@ class InlineQueryResultContact extends InlineEntity implements InlineQueryResult
* InlineQueryResultContact constructor * InlineQueryResultContact constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -65,8 +65,6 @@ class InlineQueryResultDocument extends InlineEntity implements InlineQueryResul ...@@ -65,8 +65,6 @@ class InlineQueryResultDocument extends InlineEntity implements InlineQueryResul
* InlineQueryResultDocument constructor * InlineQueryResultDocument constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -40,8 +40,6 @@ class InlineQueryResultGame extends InlineEntity implements InlineQueryResult ...@@ -40,8 +40,6 @@ class InlineQueryResultGame extends InlineEntity implements InlineQueryResult
* InlineQueryResultGame constructor * InlineQueryResultGame constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -61,8 +61,6 @@ class InlineQueryResultGif extends InlineEntity implements InlineQueryResult ...@@ -61,8 +61,6 @@ class InlineQueryResultGif extends InlineEntity implements InlineQueryResult
* InlineQueryResultGif constructor * InlineQueryResultGif constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -62,8 +62,6 @@ class InlineQueryResultLocation extends InlineEntity implements InlineQueryResul ...@@ -62,8 +62,6 @@ class InlineQueryResultLocation extends InlineEntity implements InlineQueryResul
* InlineQueryResultLocation constructor * InlineQueryResultLocation constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -61,8 +61,6 @@ class InlineQueryResultMpeg4Gif extends InlineEntity implements InlineQueryResul ...@@ -61,8 +61,6 @@ class InlineQueryResultMpeg4Gif extends InlineEntity implements InlineQueryResul
* InlineQueryResultMpeg4Gif constructor * InlineQueryResultMpeg4Gif constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -62,8 +62,6 @@ class InlineQueryResultPhoto extends InlineEntity implements InlineQueryResult ...@@ -62,8 +62,6 @@ class InlineQueryResultPhoto extends InlineEntity implements InlineQueryResult
* InlineQueryResultPhoto constructor * InlineQueryResultPhoto constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -67,8 +67,6 @@ class InlineQueryResultVenue extends InlineEntity implements InlineQueryResult ...@@ -67,8 +67,6 @@ class InlineQueryResultVenue extends InlineEntity implements InlineQueryResult
* InlineQueryResultVenue constructor * InlineQueryResultVenue constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -68,8 +68,6 @@ class InlineQueryResultVideo extends InlineEntity implements InlineQueryResult ...@@ -68,8 +68,6 @@ class InlineQueryResultVideo extends InlineEntity implements InlineQueryResult
* InlineQueryResultVideo constructor * InlineQueryResultVideo constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -53,8 +53,6 @@ class InlineQueryResultVoice extends InlineEntity implements InlineQueryResult ...@@ -53,8 +53,6 @@ class InlineQueryResultVoice extends InlineEntity implements InlineQueryResult
* InlineQueryResultVoice constructor * InlineQueryResultVoice constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -52,8 +52,6 @@ class InputMediaAnimation extends Entity implements InputMedia ...@@ -52,8 +52,6 @@ class InputMediaAnimation extends Entity implements InputMedia
* InputMediaAnimation constructor * InputMediaAnimation constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -52,8 +52,6 @@ class InputMediaAudio extends Entity implements InputMedia ...@@ -52,8 +52,6 @@ class InputMediaAudio extends Entity implements InputMedia
* InputMediaAudio constructor * InputMediaAudio constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -43,8 +43,6 @@ class InputMediaDocument extends Entity implements InputMedia ...@@ -43,8 +43,6 @@ class InputMediaDocument extends Entity implements InputMedia
* InputMediaDocument constructor * InputMediaDocument constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -40,8 +40,6 @@ class InputMediaPhoto extends Entity implements InputMedia ...@@ -40,8 +40,6 @@ class InputMediaPhoto extends Entity implements InputMedia
* InputMediaPhoto constructor * InputMediaPhoto constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -55,8 +55,6 @@ class InputMediaVideo extends Entity implements InputMedia ...@@ -55,8 +55,6 @@ class InputMediaVideo extends Entity implements InputMedia
* InputMediaVideo constructor * InputMediaVideo constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -202,7 +202,6 @@ class Keyboard extends Entity ...@@ -202,7 +202,6 @@ class Keyboard extends Entity
* @param array $data * @param array $data
* *
* @return \Longman\TelegramBot\Entities\Keyboard * @return \Longman\TelegramBot\Entities\Keyboard
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public static function remove(array $data = []) public static function remove(array $data = [])
{ {
...@@ -217,7 +216,6 @@ class Keyboard extends Entity ...@@ -217,7 +216,6 @@ class Keyboard extends Entity
* @param array $data * @param array $data
* *
* @return \Longman\TelegramBot\Entities\Keyboard * @return \Longman\TelegramBot\Entities\Keyboard
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public static function forceReply(array $data = []) public static function forceReply(array $data = [])
{ {
......
...@@ -104,8 +104,6 @@ class Message extends Entity ...@@ -104,8 +104,6 @@ class Message extends Entity
* *
* @param array $data * @param array $data
* @param string $bot_username * @param string $bot_username
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data, $bot_username = '') public function __construct(array $data, $bot_username = '')
{ {
...@@ -264,7 +262,6 @@ class Message extends Entity ...@@ -264,7 +262,6 @@ class Message extends Entity
* Bot added in chat * Bot added in chat
* *
* @return bool * @return bool
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function botAddedInChat() public function botAddedInChat()
{ {
......
...@@ -22,8 +22,6 @@ class ReplyToMessage extends Message ...@@ -22,8 +22,6 @@ class ReplyToMessage extends Message
* *
* @param array $data * @param array $data
* @param string $bot_username * @param string $bot_username
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data, $bot_username = '') public function __construct(array $data, $bot_username = '')
{ {
......
...@@ -30,8 +30,6 @@ class ServerResponse extends Entity ...@@ -30,8 +30,6 @@ class ServerResponse extends Entity
* *
* @param array $data * @param array $data
* @param string $bot_username * @param string $bot_username
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data, $bot_username) public function __construct(array $data, $bot_username)
{ {
......
...@@ -31,8 +31,6 @@ class PassportElementErrorDataField extends Entity implements PassportElementErr ...@@ -31,8 +31,6 @@ class PassportElementErrorDataField extends Entity implements PassportElementErr
* PassportElementErrorDataField constructor * PassportElementErrorDataField constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -30,8 +30,6 @@ class PassportElementErrorFile extends Entity implements PassportElementError ...@@ -30,8 +30,6 @@ class PassportElementErrorFile extends Entity implements PassportElementError
* PassportElementErrorFile constructor * PassportElementErrorFile constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -30,8 +30,6 @@ class PassportElementErrorFiles extends Entity implements PassportElementError ...@@ -30,8 +30,6 @@ class PassportElementErrorFiles extends Entity implements PassportElementError
* PassportElementErrorFiles constructor * PassportElementErrorFiles constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -30,8 +30,6 @@ class PassportElementErrorFrontSide extends Entity implements PassportElementErr ...@@ -30,8 +30,6 @@ class PassportElementErrorFrontSide extends Entity implements PassportElementErr
* PassportElementErrorFrontSide constructor * PassportElementErrorFrontSide constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -30,8 +30,6 @@ class PassportElementErrorReverseSide extends Entity implements PassportElementE ...@@ -30,8 +30,6 @@ class PassportElementErrorReverseSide extends Entity implements PassportElementE
* PassportElementErrorReverseSide constructor * PassportElementErrorReverseSide constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -30,8 +30,6 @@ class PassportElementErrorSelfie extends Entity implements PassportElementError ...@@ -30,8 +30,6 @@ class PassportElementErrorSelfie extends Entity implements PassportElementError
* PassportElementErrorSelfie constructor * PassportElementErrorSelfie constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -30,8 +30,6 @@ class PassportElementErrorTranslationFile extends Entity implements PassportElem ...@@ -30,8 +30,6 @@ class PassportElementErrorTranslationFile extends Entity implements PassportElem
* PassportElementErrorTranslationFile constructor * PassportElementErrorTranslationFile constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -30,8 +30,6 @@ class PassportElementErrorTranslationFiles extends Entity implements PassportEle ...@@ -30,8 +30,6 @@ class PassportElementErrorTranslationFiles extends Entity implements PassportEle
* PassportElementErrorTranslationFiles constructor * PassportElementErrorTranslationFiles constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -30,8 +30,6 @@ class PassportElementErrorUnspecified extends Entity implements PassportElementE ...@@ -30,8 +30,6 @@ class PassportElementErrorUnspecified extends Entity implements PassportElementE
* PassportElementErrorUnspecified constructor * PassportElementErrorUnspecified constructor
* *
* @param array $data * @param array $data
*
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function __construct(array $data = []) public function __construct(array $data = [])
{ {
......
...@@ -421,6 +421,7 @@ class Request ...@@ -421,6 +421,7 @@ class Request
* @param array $multipart * @param array $multipart
* *
* @return mixed * @return mixed
* @throws TelegramException
*/ */
private static function mediaInputHelper($item, &$has_resource, array &$multipart) private static function mediaInputHelper($item, &$has_resource, array &$multipart)
{ {
...@@ -699,7 +700,6 @@ class Request ...@@ -699,7 +700,6 @@ class Request
* @param array $data * @param array $data
* *
* @return \Longman\TelegramBot\Entities\ServerResponse * @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public static function __callStatic($action, array $data) public static function __callStatic($action, array $data)
{ {
...@@ -717,7 +717,6 @@ class Request ...@@ -717,7 +717,6 @@ class Request
* don't need to fire a message after execution * don't need to fire a message after execution
* *
* @return \Longman\TelegramBot\Entities\ServerResponse * @return \Longman\TelegramBot\Entities\ServerResponse
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public static function emptyResponse() public static function emptyResponse()
{ {
......
...@@ -880,6 +880,7 @@ class Telegram ...@@ -880,6 +880,7 @@ class Telegram
* @param array $options * @param array $options
* *
* @return \Longman\TelegramBot\Telegram * @return \Longman\TelegramBot\Telegram
* @throws TelegramException
*/ */
public function enableLimiter(array $options = []) public function enableLimiter(array $options = [])
{ {
......
...@@ -47,7 +47,6 @@ class HiddenCommand extends UserCommand ...@@ -47,7 +47,6 @@ class HiddenCommand extends UserCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
...@@ -47,7 +47,6 @@ class VisibleCommand extends UserCommand ...@@ -47,7 +47,6 @@ class VisibleCommand extends UserCommand
* Command execute method * Command execute method
* *
* @return mixed * @return mixed
* @throws \Longman\TelegramBot\Exception\TelegramException
*/ */
public function execute() public function execute()
{ {
......
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