From 637f2291d45431a75c834875197c00d2ac97f067 Mon Sep 17 00:00:00 2001 From: Camilo Sperberg Date: Thu, 15 Feb 2018 23:31:16 +0100 Subject: [PATCH 1/4] Support text formatting in media captions --- src/Telegram/Methods/EditMessageCaption.php | 9 ++++++++- src/Telegram/Methods/SendAudio.php | 9 ++++++++- src/Telegram/Methods/SendDocument.php | 9 ++++++++- src/Telegram/Methods/SendPhoto.php | 9 ++++++++- src/Telegram/Methods/SendVideo.php | 9 ++++++++- src/Telegram/Methods/SendVoice.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Audio.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Cached/Audio.php | 9 ++++++++- .../Types/Inline/Query/Result/Cached/Document.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Cached/Gif.php | 9 ++++++++- .../Types/Inline/Query/Result/Cached/Mpeg4Gif.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Cached/Photo.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Cached/Video.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Cached/Voice.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Document.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Gif.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Mpeg4Gif.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Photo.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Video.php | 9 ++++++++- src/Telegram/Types/Inline/Query/Result/Voice.php | 9 ++++++++- src/Telegram/Types/InputMedia.php | 9 ++++++++- 21 files changed, 168 insertions(+), 21 deletions(-) diff --git a/src/Telegram/Methods/EditMessageCaption.php b/src/Telegram/Methods/EditMessageCaption.php index fea4c3c..bc2a072 100644 --- a/src/Telegram/Methods/EditMessageCaption.php +++ b/src/Telegram/Methods/EditMessageCaption.php @@ -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 */ @@ -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 diff --git a/src/Telegram/Methods/SendAudio.php b/src/Telegram/Methods/SendAudio.php index 7653a70..327fc8d 100644 --- a/src/Telegram/Methods/SendAudio.php +++ b/src/Telegram/Methods/SendAudio.php @@ -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 */ @@ -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 diff --git a/src/Telegram/Methods/SendDocument.php b/src/Telegram/Methods/SendDocument.php index c055208..039f14f 100644 --- a/src/Telegram/Methods/SendDocument.php +++ b/src/Telegram/Methods/SendDocument.php @@ -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 */ @@ -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. diff --git a/src/Telegram/Methods/SendPhoto.php b/src/Telegram/Methods/SendPhoto.php index e6e5e4b..86b4857 100644 --- a/src/Telegram/Methods/SendPhoto.php +++ b/src/Telegram/Methods/SendPhoto.php @@ -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 */ @@ -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. diff --git a/src/Telegram/Methods/SendVideo.php b/src/Telegram/Methods/SendVideo.php index a9c0b24..9859b27 100644 --- a/src/Telegram/Methods/SendVideo.php +++ b/src/Telegram/Methods/SendVideo.php @@ -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 */ @@ -58,6 +58,13 @@ 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 = ''; + /** * Optional. Sends the message silently. iOS users will not receive a notification, Android users will receive a * notification with no sound. diff --git a/src/Telegram/Methods/SendVoice.php b/src/Telegram/Methods/SendVoice.php index e5e2806..d8ee5d8 100644 --- a/src/Telegram/Methods/SendVoice.php +++ b/src/Telegram/Methods/SendVoice.php @@ -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 */ @@ -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 diff --git a/src/Telegram/Types/Inline/Query/Result/Audio.php b/src/Telegram/Types/Inline/Query/Result/Audio.php index 4d9ed94..e981fa0 100644 --- a/src/Telegram/Types/Inline/Query/Result/Audio.php +++ b/src/Telegram/Types/Inline/Query/Result/Audio.php @@ -11,7 +11,7 @@ * 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. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultaudio */ @@ -41,6 +41,13 @@ class Audio extends Result */ 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. Performer * @var string diff --git a/src/Telegram/Types/Inline/Query/Result/Cached/Audio.php b/src/Telegram/Types/Inline/Query/Result/Cached/Audio.php index 097c7a4..7a569c6 100644 --- a/src/Telegram/Types/Inline/Query/Result/Cached/Audio.php +++ b/src/Telegram/Types/Inline/Query/Result/Cached/Audio.php @@ -12,7 +12,7 @@ * the user. Alternatively, you can use input_message_content to send a message with the specified content instead of * the audio. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultcachedaudio */ @@ -36,6 +36,13 @@ class Audio extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Cached/Document.php b/src/Telegram/Types/Inline/Query/Result/Cached/Document.php index 239463a..dcd4504 100644 --- a/src/Telegram/Types/Inline/Query/Result/Cached/Document.php +++ b/src/Telegram/Types/Inline/Query/Result/Cached/Document.php @@ -12,7 +12,7 @@ * optional caption. Alternatively, you can use input_message_content to send a message with the specified content * instead of the file. Currently, only pdf-files and zip archives can be sent using this method. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultcacheddocument */ @@ -48,6 +48,13 @@ class Document extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Cached/Gif.php b/src/Telegram/Types/Inline/Query/Result/Cached/Gif.php index 14a0f31..bf79961 100644 --- a/src/Telegram/Types/Inline/Query/Result/Cached/Gif.php +++ b/src/Telegram/Types/Inline/Query/Result/Cached/Gif.php @@ -12,7 +12,7 @@ * sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with * specified content instead of the animation. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultcachedgif */ @@ -42,6 +42,13 @@ class Gif extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Cached/Mpeg4Gif.php b/src/Telegram/Types/Inline/Query/Result/Cached/Mpeg4Gif.php index 1ea43dc..3867a4e 100644 --- a/src/Telegram/Types/Inline/Query/Result/Cached/Mpeg4Gif.php +++ b/src/Telegram/Types/Inline/Query/Result/Cached/Mpeg4Gif.php @@ -12,7 +12,7 @@ * default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use * input_message_content to send a message with the specified content instead of the animation. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultcachedmpeg4gif */ @@ -42,6 +42,13 @@ class Mpeg4Gif extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Cached/Photo.php b/src/Telegram/Types/Inline/Query/Result/Cached/Photo.php index 3351d95..2b34244 100644 --- a/src/Telegram/Types/Inline/Query/Result/Cached/Photo.php +++ b/src/Telegram/Types/Inline/Query/Result/Cached/Photo.php @@ -12,7 +12,7 @@ * optional caption. Alternatively, you can use input_message_content to send a message with the specified content * instead of the photo. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultcachedphoto */ @@ -48,6 +48,13 @@ class Photo extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Cached/Video.php b/src/Telegram/Types/Inline/Query/Result/Cached/Video.php index a45c3df..edfc765 100644 --- a/src/Telegram/Types/Inline/Query/Result/Cached/Video.php +++ b/src/Telegram/Types/Inline/Query/Result/Cached/Video.php @@ -12,7 +12,7 @@ * user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified * content instead of the video. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultcachedvideo */ @@ -48,6 +48,13 @@ class Video extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Cached/Voice.php b/src/Telegram/Types/Inline/Query/Result/Cached/Voice.php index 8f6f708..c00a711 100644 --- a/src/Telegram/Types/Inline/Query/Result/Cached/Voice.php +++ b/src/Telegram/Types/Inline/Query/Result/Cached/Voice.php @@ -12,7 +12,7 @@ * the user. Alternatively, you can use input_message_content to send a message with the specified content instead of * the voice message. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultcachedvoice */ @@ -42,6 +42,13 @@ class Voice extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Document.php b/src/Telegram/Types/Inline/Query/Result/Document.php index 3455f70..95e486e 100644 --- a/src/Telegram/Types/Inline/Query/Result/Document.php +++ b/src/Telegram/Types/Inline/Query/Result/Document.php @@ -12,7 +12,7 @@ * you can use input_message_content to send a message with the specified content instead of the file. Currently, only * .PDF and .ZIP files can be sent using this method. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultdocument */ @@ -36,6 +36,13 @@ class Document extends Result */ 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 = ''; + /** * A valid URL for the file * @var string diff --git a/src/Telegram/Types/Inline/Query/Result/Gif.php b/src/Telegram/Types/Inline/Query/Result/Gif.php index 8ee3e78..3393c61 100644 --- a/src/Telegram/Types/Inline/Query/Result/Gif.php +++ b/src/Telegram/Types/Inline/Query/Result/Gif.php @@ -12,7 +12,7 @@ * caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the * animation. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultgif */ @@ -66,6 +66,13 @@ class Gif extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Mpeg4Gif.php b/src/Telegram/Types/Inline/Query/Result/Mpeg4Gif.php index 15545dc..942116d 100644 --- a/src/Telegram/Types/Inline/Query/Result/Mpeg4Gif.php +++ b/src/Telegram/Types/Inline/Query/Result/Mpeg4Gif.php @@ -12,7 +12,7 @@ * will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message * with the specified content instead of the animation. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultmpeg4gif */ @@ -66,6 +66,13 @@ class Mpeg4Gif extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Photo.php b/src/Telegram/Types/Inline/Query/Result/Photo.php index 16f95f8..3994659 100644 --- a/src/Telegram/Types/Inline/Query/Result/Photo.php +++ b/src/Telegram/Types/Inline/Query/Result/Photo.php @@ -11,7 +11,7 @@ * Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, * you can use input_message_content to send a message with the specified content instead of the photo. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultphoto */ @@ -65,6 +65,13 @@ class Photo extends Result */ 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. Content of the message to be sent instead of the audio/document/voice message/video/sticker/etc. * @var InputMessageContent diff --git a/src/Telegram/Types/Inline/Query/Result/Video.php b/src/Telegram/Types/Inline/Query/Result/Video.php index 14e1581..a13c76b 100644 --- a/src/Telegram/Types/Inline/Query/Result/Video.php +++ b/src/Telegram/Types/Inline/Query/Result/Video.php @@ -12,7 +12,7 @@ * sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with * the specified content instead of the video. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultvideo */ @@ -54,6 +54,13 @@ class Video extends Result */ 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. Video width * @var int diff --git a/src/Telegram/Types/Inline/Query/Result/Voice.php b/src/Telegram/Types/Inline/Query/Result/Voice.php index d6df445..a508915 100644 --- a/src/Telegram/Types/Inline/Query/Result/Voice.php +++ b/src/Telegram/Types/Inline/Query/Result/Voice.php @@ -12,7 +12,7 @@ * be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content * instead of the the voice message. * - * Objects defined as-is april 2016 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inlinequeryresultvoice */ @@ -42,6 +42,13 @@ class Voice extends Result */ 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. Recording duration in seconds * @var int diff --git a/src/Telegram/Types/InputMedia.php b/src/Telegram/Types/InputMedia.php index 70ee0d2..0c68423 100644 --- a/src/Telegram/Types/InputMedia.php +++ b/src/Telegram/Types/InputMedia.php @@ -12,7 +12,7 @@ * InputMediaPhoto * InputMediaVideo * - * Objects defined as-is november 2017 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inputmedia */ @@ -32,4 +32,11 @@ abstract class InputMedia extends TelegramTypes * @var string */ 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 = ''; } From e9df1218f521d256feccec2566783a45d1e10d89 Mon Sep 17 00:00:00 2001 From: Camilo Sperberg Date: Thu, 15 Feb 2018 23:32:49 +0100 Subject: [PATCH 2/4] Enable support for the login widget --- src/Telegram/Types/Message.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Telegram/Types/Message.php b/src/Telegram/Types/Message.php index de23918..50865df 100644 --- a/src/Telegram/Types/Message.php +++ b/src/Telegram/Types/Message.php @@ -278,6 +278,13 @@ class Message extends TelegramTypes */ public $successful_payment; + /** + * Optional. The domain name of the website on which the user has logged in + * @see https://core.telegram.org/widgets/login + * @var string + */ + public $connected_website = ''; + /** * A message may contain one or more subobjects, map them always in this function * From 6fef4601d54f83c2a1d8c23d8b10b174e6027491 Mon Sep 17 00:00:00 2001 From: Camilo Sperberg Date: Thu, 15 Feb 2018 23:38:35 +0100 Subject: [PATCH 3/4] Support for streaming videos --- src/Telegram/Methods/SendVideo.php | 6 ++++++ src/Telegram/Types/InputMedia/Video.php | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Telegram/Methods/SendVideo.php b/src/Telegram/Methods/SendVideo.php index 9859b27..b5dd066 100644 --- a/src/Telegram/Methods/SendVideo.php +++ b/src/Telegram/Methods/SendVideo.php @@ -65,6 +65,12 @@ class SendVideo extends TelegramMethods */ 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. diff --git a/src/Telegram/Types/InputMedia/Video.php b/src/Telegram/Types/InputMedia/Video.php index 2676b8a..f8abf06 100644 --- a/src/Telegram/Types/InputMedia/Video.php +++ b/src/Telegram/Types/InputMedia/Video.php @@ -9,7 +9,7 @@ /** * Represents a video to be sent. * - * Objects defined as-is november 2017 + * Objects defined as-is February 2018 * * @see https://core.telegram.org/bots/api#inputmediavideo */ @@ -38,4 +38,10 @@ class Video extends InputMedia * @var int */ public $duration = 0; + + /** + * Pass True, if the uploaded video is suitable for streaming + * @var bool + */ + public $supports_streaming = false; } From bbc1876365e65db6d1eaf63c7960c7e423d35261 Mon Sep 17 00:00:00 2001 From: Camilo Sperberg Date: Thu, 15 Feb 2018 23:38:52 +0100 Subject: [PATCH 4/4] Updating dependencies --- composer.lock | 74 ++++++++++++++++++++++++++------------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/composer.lock b/composer.lock index db91bdb..c98c80e 100644 --- a/composer.lock +++ b/composer.lock @@ -290,12 +290,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "fe89fd2178cabef137b9a76fa91d64925474b956" + "reference": "5ebdd35b291cf9be4a425022872cb3aaf03192df" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/fe89fd2178cabef137b9a76fa91d64925474b956", - "reference": "fe89fd2178cabef137b9a76fa91d64925474b956", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/5ebdd35b291cf9be4a425022872cb3aaf03192df", + "reference": "5ebdd35b291cf9be4a425022872cb3aaf03192df", "shasum": "" }, "conflict": { @@ -309,9 +309,10 @@ "codeigniter/framework": "<=3.0.6", "composer/composer": "<=1.0.0-alpha11", "contao-components/mediaelement": ">=2.14.2,<2.21.1", - "contao/core": ">=2,<3.5.31", + "contao/core": ">=2,<3.5.32", "contao/core-bundle": ">=4,<4.4.8", "contao/listing-bundle": ">=4,<4.4.8", + "contao/newsletter-bundle": ">=4,<4.1", "doctrine/annotations": ">=1,<1.2.7", "doctrine/cache": ">=1,<1.3.2|>=1.4,<1.4.2", "doctrine/common": ">=2,<2.4.3|>=2.5,<2.5.1", @@ -344,18 +345,19 @@ "onelogin/php-saml": "<2.10.4", "oro/crm": ">=1.7,<1.7.4", "oro/platform": ">=1.7,<1.7.4", + "padraic/file_get_contents": "<1.1.2", "phpmailer/phpmailer": ">=5,<5.2.24", "phpunit/phpunit": ">=4.8.19,<4.8.28|>=5.0.10,<5.6.3", "phpxmlrpc/extras": "<0.6.1", "pusher/pusher-php-server": "<2.2.1", "sabre/dav": ">=1.6,<1.6.99|>=1.7,<1.7.11|>=1.8,<1.8.9", - "shopware/shopware": "<5.2.25", + "shopware/shopware": "<5.3.7", "silverstripe/cms": ">=3,<=3.0.11|>=3.1,<3.1.11", "silverstripe/forum": "<=0.6.1|>=0.7,<=0.7.3", "silverstripe/framework": ">=3,<3.3", "silverstripe/userforms": "<3", - "simplesamlphp/saml2": "<1.8.1|>=1.9,<1.9.1|>=1.10,<1.10.3|>=2,<2.3.3", - "simplesamlphp/simplesamlphp": "<1.14.16", + "simplesamlphp/saml2": "<1.10.4|>=2,<2.3.5|>=3,<3.1.1", + "simplesamlphp/simplesamlphp": "<1.15.2", "simplesamlphp/simplesamlphp-module-infocard": "<1.0.1", "socalnick/scn-social-auth": "<1.15.2", "squizlabs/php_codesniffer": ">=1,<2.8.1", @@ -378,7 +380,7 @@ "symfony/web-profiler-bundle": ">=2,<2.3.19|>=2.4,<2.4.9|>=2.5,<2.5.4", "symfony/yaml": ">=2,<2.0.22|>=2.1,<2.1.7", "thelia/backoffice-default-template": ">=2.1,<2.1.2", - "thelia/thelia": ">=2.1.0-beta1,<2.1.3|>=2.1,<2.1.2", + "thelia/thelia": ">=2.1,<2.1.2|>=2.1.0-beta1,<2.1.3", "twig/twig": "<1.20", "typo3/cms": ">=6.2,<6.2.30|>=7,<7.6.22|>=8,<8.7.5", "typo3/flow": ">=1,<1.0.4|>=1.1,<1.1.1|>=2,<2.0.1|>=2.3,<2.3.16|>=3,<3.0.10|>=3.1,<3.1.7|>=3.2,<3.2.7|>=3.3,<3.3.5", @@ -427,7 +429,7 @@ } ], "description": "Prevents installation of composer packages with known security vulnerabilities: no API, simply require it", - "time": "2018-01-07T00:56:33+00:00" + "time": "2018-02-13T10:17:11+00:00" }, { "name": "unreal4u/dummy-logger", @@ -803,16 +805,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "4.2.0", + "version": "4.3.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "66465776cfc249844bde6d117abff1d22e06c2da" + "reference": "94fd0001232e47129dd3504189fa1c7225010d08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/66465776cfc249844bde6d117abff1d22e06c2da", - "reference": "66465776cfc249844bde6d117abff1d22e06c2da", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/94fd0001232e47129dd3504189fa1c7225010d08", + "reference": "94fd0001232e47129dd3504189fa1c7225010d08", "shasum": "" }, "require": { @@ -850,7 +852,7 @@ } ], "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", - "time": "2017-11-27T17:38:31+00:00" + "time": "2017-11-30T07:14:17+00:00" }, { "name": "phpdocumentor/type-resolver", @@ -901,16 +903,16 @@ }, { "name": "phpspec/prophecy", - "version": "1.7.3", + "version": "1.7.4", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf" + "reference": "9f901e29c93dae4aa77c0bb161df4276f9c9a1be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf", - "reference": "e4ed002c67da8eceb0eb8ddb8b3847bb53c5c2bf", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/9f901e29c93dae4aa77c0bb161df4276f9c9a1be", + "reference": "9f901e29c93dae4aa77c0bb161df4276f9c9a1be", "shasum": "" }, "require": { @@ -922,7 +924,7 @@ }, "require-dev": { "phpspec/phpspec": "^2.5|^3.2", - "phpunit/phpunit": "^4.8.35 || ^5.7" + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5" }, "type": "library", "extra": { @@ -960,7 +962,7 @@ "spy", "stub" ], - "time": "2017-11-24T13:59:53+00:00" + "time": "2018-02-11T18:49:29+00:00" }, { "name": "phpunit/php-code-coverage", @@ -1213,16 +1215,16 @@ }, { "name": "phpunit/phpunit", - "version": "6.5.5", + "version": "6.5.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "83d27937a310f2984fd575686138597147bdc7df" + "reference": "3330ef26ade05359d006041316ed0fa9e8e3cefe" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/83d27937a310f2984fd575686138597147bdc7df", - "reference": "83d27937a310f2984fd575686138597147bdc7df", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3330ef26ade05359d006041316ed0fa9e8e3cefe", + "reference": "3330ef26ade05359d006041316ed0fa9e8e3cefe", "shasum": "" }, "require": { @@ -1293,7 +1295,7 @@ "testing", "xunit" ], - "time": "2017-12-17T06:31:19+00:00" + "time": "2018-02-01T05:57:37+00:00" }, { "name": "phpunit/phpunit-mock-objects", @@ -1401,21 +1403,21 @@ }, { "name": "sebastian/comparator", - "version": "2.1.1", + "version": "2.1.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "b11c729f95109b56a0fe9650c6a63a0fcd8c439f" + "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/b11c729f95109b56a0fe9650c6a63a0fcd8c439f", - "reference": "b11c729f95109b56a0fe9650c6a63a0fcd8c439f", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/34369daee48eafb2651bea869b4b15d75ccc35f9", + "reference": "34369daee48eafb2651bea869b4b15d75ccc35f9", "shasum": "" }, "require": { "php": "^7.0", - "sebastian/diff": "^2.0", + "sebastian/diff": "^2.0 || ^3.0", "sebastian/exporter": "^3.1" }, "require-dev": { @@ -1461,7 +1463,7 @@ "compare", "equality" ], - "time": "2017-12-22T14:50:35+00:00" + "time": "2018-02-01T13:46:46+00:00" }, { "name": "sebastian/diff", @@ -2033,16 +2035,16 @@ }, { "name": "webmozart/assert", - "version": "1.2.0", + "version": "1.3.0", "source": { "type": "git", "url": "https://github.com/webmozart/assert.git", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f" + "reference": "0df1908962e7a3071564e857d86874dad1ef204a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozart/assert/zipball/2db61e59ff05fe5126d152bd0655c9ea113e550f", - "reference": "2db61e59ff05fe5126d152bd0655c9ea113e550f", + "url": "https://api.github.com/repos/webmozart/assert/zipball/0df1908962e7a3071564e857d86874dad1ef204a", + "reference": "0df1908962e7a3071564e857d86874dad1ef204a", "shasum": "" }, "require": { @@ -2079,7 +2081,7 @@ "check", "validate" ], - "time": "2016-11-23T20:04:58+00:00" + "time": "2018-01-29T19:49:41+00:00" } ], "aliases": [],