@@ -19,26 +19,29 @@ use Longman\TelegramBot\Entities\Entity;
...
@@ -19,26 +19,29 @@ use Longman\TelegramBot\Entities\Entity;
*
*
* <code>
* <code>
* $data = [
* $data = [
* 'media' => '123abc',
* 'media' => '123abc',
* 'caption' => 'Video caption',
* 'caption' => 'Video caption (streamable)',
* 'width' => 800,
* 'width' => 800,
* 'heidht' => 600,
* 'height' => 600,
* 'duration' => 42
* 'duration' => 42,
* 'supports_streaming' => true
* ];
* ];
* </code>
* </code>
*
*
* @method string getType() Type of the result, must be video
* @method string getType() Type of the result, must be video
* @method string getMedia() File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name.
* @method string getMedia() File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name.
* @method string getCaption() Optional. Caption of the video to be sent, 0-200 characters
* @method string getCaption() Optional. Caption of the video to be sent, 0-200 characters
* @method int getWidth() Optional. Video width
* @method int getWidth() Optional. Video width
* @method int getHeight() Optional. Video height
* @method int getHeight() Optional. Video height
* @method int getDuration() Optional. Video duration
* @method int getDuration() Optional. Video duration
* @method bool getSupportsStreaming() Optional. Pass True, if the uploaded video is suitable for streaming
*
*
* @method $this setMedia(string $media) File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name.
* @method $this setMedia(string $media) File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or pass "attach://<file_attach_name>" to upload a new one using multipart/form-data under <file_attach_name> name.
* @method $this setCaption(string $caption) Optional. Caption of the video to be sent, 0-200 characters
* @method $this setCaption(string $caption) Optional. Caption of the video to be sent, 0-200 characters
* @method $this setWidth(int $width) Optional. Video width
* @method $this setWidth(int $width) Optional. Video width
* @method $this setHeight(int $height) Optional. Video height
* @method $this setHeight(int $height) Optional. Video height
* @method $this setDuration(int $duration) Optional. Video duration
* @method $this setDuration(int $duration) Optional. Video duration
* @method $this setSupportsStreaming(bool $supports_streaming) Optional. Pass True, if the uploaded video is suitable for streaming
@@ -52,6 +52,7 @@ use Longman\TelegramBot\Entities\Payments\SuccessfulPayment;
...
@@ -52,6 +52,7 @@ use Longman\TelegramBot\Entities\Payments\SuccessfulPayment;
* @method Message getPinnedMessage() Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.
* @method Message getPinnedMessage() Optional. Specified message was pinned. Note that the Message object in this field will not contain further reply_to_message fields even if it is itself a reply.
* @method Invoice getInvoice() Optional. Message is an invoice for a payment, information about the invoice.
* @method Invoice getInvoice() Optional. Message is an invoice for a payment, information about the invoice.
* @method SuccessfulPayment getSuccessfulPayment() Optional. Message is a service message about a successful payment, information about the payment.
* @method SuccessfulPayment getSuccessfulPayment() Optional. Message is a service message about a successful payment, information about the payment.
* @method string getConnectedWebsite() Optional. The domain name of the website on which the user has logged in.
@@ -101,6 +101,7 @@ CREATE TABLE IF NOT EXISTS `message` (
...
@@ -101,6 +101,7 @@ CREATE TABLE IF NOT EXISTS `message` (
`migrate_to_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate to chat identifier. The group has been migrated to a supergroup with the specified identifier',
`migrate_to_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate to chat identifier. The group has been migrated to a supergroup with the specified identifier',
`migrate_from_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate from chat identifier. The supergroup has been migrated from a group with the specified identifier',
`migrate_from_chat_id`bigintNULLDEFAULTNULLCOMMENT'Migrate from chat identifier. The supergroup has been migrated from a group with the specified identifier',
`pinned_message`TEXTNULLCOMMENT'Message object. Specified message was pinned',
`pinned_message`TEXTNULLCOMMENT'Message object. Specified message was pinned',
`connected_website`TEXTNULLCOMMENT'The domain name of the website on which the user has logged in.',