Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
iGusev committed Apr 18, 2016
1 parent f9fad1c commit c6cb0d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions src/Types/Inline/QueryResult/Audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,23 @@ class Audio extends AbstractInlineQueryResult
* @param string $title
* @param string|null $performer
* @param int|null $audioDuration
* @param InlineKeyboardMarkup|null $inlineKeyboardMarkup
* @param InputMessageContent|null $inputMessageContent
* @param InlineKeyboardMarkup|null $inlineKeyboardMarkup
*/
public function __construct(
$id,
$audioUrl,
$title,
$performer = null,
$audioDuration = null,
$inlineKeyboardMarkup = null,
$inputMessageContent = null
$inputMessageContent = null,
$inlineKeyboardMarkup = null
) {
parent::__construct($id, $title, $inputMessageContent, $inlineKeyboardMarkup);

$this->audioUrl = $audioUrl;
$this->performer = $performer;
$this->audioDuration = $audioDuration;
$this->replyMarkup = $inlineKeyboardMarkup;
$this->inputMessageContent = $inputMessageContent;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Types/Inline/QueryResult/Voice.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/**
* Class Voice
*
* @see https://core.telegram.org/bots/api#inlinequeryresultaudio
* @see https://core.telegram.org/bots/api#inlinequeryresultvoice
* Represents a link to an mp3 audio file. By default, this audio file will be sent by the user.
* Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
*
Expand Down

0 comments on commit c6cb0d0

Please sign in to comment.