Skip to content

Commit

Permalink
Merge branch 'v2'
Browse files Browse the repository at this point in the history
  • Loading branch information
unreal4u committed Feb 15, 2018
2 parents c0198b7 + bbc1876 commit d533546
Show file tree
Hide file tree
Showing 24 changed files with 226 additions and 58 deletions.
74 changes: 38 additions & 36 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion src/Telegram/Methods/EditMessageCaption.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Use this method to edit captions of messages sent by the bot or via the bot (for inline bots). On success, if edited
* message is sent by the bot, the edited Message is returned, otherwise True is returned.
*
* Objects defined as-is july 2016
* Objects defined as-is February 2018
*
* @see https://core.telegram.org/bots/api#editmessagecaption
*/
Expand Down Expand Up @@ -48,6 +48,13 @@ class EditMessageCaption extends TelegramMethods
*/
public $caption = '';

/**
* Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs
* in the media caption
* @var string
*/
public $parse_mode = '';

/**
* Optional. A JSON-serialized object for an inline keyboard.
* @var Markup
Expand Down
9 changes: 8 additions & 1 deletion src/Telegram/Methods/SendAudio.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* .ogg file encoded with OPUS. This behavior will be phased out in the future. For sending voice messages, use the
* sendVoice method instead.
*
* Objects defined as-is January 2017
* Objects defined as-is February 2018
*
* @see https://core.telegram.org/bots/api#sendaudio
*/
Expand Down Expand Up @@ -46,6 +46,13 @@ class SendAudio extends TelegramMethods
*/
public $caption = '';

/**
* Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs
* in the media caption
* @var string
*/
public $parse_mode = '';

/**
* Optional. Duration of the audio in seconds
* @var int
Expand Down
9 changes: 8 additions & 1 deletion src/Telegram/Methods/SendDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Use this method to send general files. On success, the sent Message is returned. Bots can currently send files of any
* type of up to 50 MB in size, this limit may be changed in the future.
*
* Objects defined as-is January 2017
* Objects defined as-is February 2018
*
* @see https://core.telegram.org/bots/api#senddocument
*/
Expand All @@ -39,6 +39,13 @@ class SendDocument extends TelegramMethods
*/
public $caption = '';

/**
* Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs
* in the media caption
* @var string
*/
public $parse_mode = '';

/**
* Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a
* notification with no sound.
Expand Down
9 changes: 8 additions & 1 deletion src/Telegram/Methods/SendPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/**
* Use this method to send photos. On success, the sent Message is returned
*
* Objects defined as-is January 2017
* Objects defined as-is February 2018
*
* @see https://core.telegram.org/bots/api#sendphoto
*/
Expand All @@ -37,6 +37,13 @@ class SendPhoto extends TelegramMethods
*/
public $caption = '';

/**
* Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs
* in the media caption
* @var string
*/
public $parse_mode = '';

/**
* Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a
* notification with no sound.
Expand Down
15 changes: 14 additions & 1 deletion src/Telegram/Methods/SendVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* success, the sent Message is returned. Bots can currently send video files of up to 50 MB in size, this limit may be
* changed in the future.
*
* Objects defined as-is January 2017
* Objects defined as-is February 2018
*
* @see https://core.telegram.org/bots/api#sendvideo
*/
Expand Down Expand Up @@ -58,6 +58,19 @@ class SendVideo extends TelegramMethods
*/
public $caption = '';

/**
* Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs
* in the media caption
* @var string
*/
public $parse_mode = '';

/**
* Pass True, if the uploaded video is suitable for streaming
* @var bool
*/
public $supports_streaming = false;

/**
* Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a
* notification with no sound.
Expand Down
9 changes: 8 additions & 1 deletion src/Telegram/Methods/SendVoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* Document). On success, the sent Message is returned. Bots can currently send voice messages of up to 50 MB in size,
* this limit may be changed in the future.
*
* Objects defined as-is july 2016
* Objects defined as-is February 2018
*
* @see https://core.telegram.org/bots/api#sendvoice
*/
Expand All @@ -41,6 +41,13 @@ class SendVoice extends TelegramMethods
*/
public $caption = '';

/**
* Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs
* in the media caption
* @var string
*/
public $parse_mode = '';

/**
* Optional. Duration of sent voice message in seconds
* @var int
Expand Down
Loading

0 comments on commit d533546

Please sign in to comment.