diff --git a/README.md b/README.md index 7335f51..9059482 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

Latest Stable Version -Bot API Version +Bot API Version Total Downloads License PHPUnit diff --git a/docs/README.md b/docs/README.md index 627536c..4564dff 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,7 +1,7 @@

Project Logo
Latest Stable Version -Bot API Version +Bot API Version Total Downloads License

diff --git a/src/Methods/CopyMessageMethod.php b/src/Methods/CopyMessageMethod.php index d815e0d..d6faf63 100644 --- a/src/Methods/CopyMessageMethod.php +++ b/src/Methods/CopyMessageMethod.php @@ -18,6 +18,7 @@ * @property string $caption __Required: Optional__. New caption for media, 0-1024 characters after entities parsing. If not specified, the original caption is kept * @property string $parse_mode __Required: Optional__. Mode for parsing entities in the new caption. See formatting options for more details. * @property MessageEntity[] $caption_entities __Required: Optional__. A JSON-serialized list of special entities that appear in the new caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media __Required: Optional__. Pass True, if the caption must be shown above the message media * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to @@ -37,6 +38,7 @@ class CopyMessageMethod extends TelegramMethod 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', 'reply_parameters' => 'ReplyParameters', diff --git a/src/Methods/CreateInvoiceLinkMethod.php b/src/Methods/CreateInvoiceLinkMethod.php index 13fe87d..e898494 100644 --- a/src/Methods/CreateInvoiceLinkMethod.php +++ b/src/Methods/CreateInvoiceLinkMethod.php @@ -11,7 +11,7 @@ * @property string $title __Required: Yes__. Product name, 1-32 characters * @property string $description __Required: Yes__. Product description, 1-255 characters * @property string $payload __Required: Yes__. Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. - * @property string $provider_token __Required: Yes__. Payment provider token, obtained via BotFather + * @property string $provider_token __Required: Optional__. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars. * @property string $currency __Required: Yes__. Three-letter ISO 4217 currency code, see more on currencies * @property LabeledPrice[] $prices __Required: Yes__. Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.) * @property int $max_tip_amount __Required: Optional__. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0 diff --git a/src/Methods/EditMessageCaptionMethod.php b/src/Methods/EditMessageCaptionMethod.php index d3cf287..1d20518 100644 --- a/src/Methods/EditMessageCaptionMethod.php +++ b/src/Methods/EditMessageCaptionMethod.php @@ -16,6 +16,7 @@ * @property string $caption __Required: Optional__. New caption of the message, 0-1024 characters after entities parsing * @property string $parse_mode __Required: Optional__. Mode for parsing entities in the message caption. See formatting options for more details. * @property MessageEntity[] $caption_entities __Required: Optional__. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media __Required: Optional__. Pass True, if the caption must be shown above the message media * @property InlineKeyboardMarkup $reply_markup __Required: Optional__. A JSON-serialized object for an inline keyboard. */ class EditMessageCaptionMethod extends TelegramMethod @@ -31,6 +32,7 @@ class EditMessageCaptionMethod extends TelegramMethod 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'reply_markup' => 'InlineKeyboardMarkup', ]; diff --git a/src/Methods/RefundStarPaymentMethod.php b/src/Methods/RefundStarPaymentMethod.php new file mode 100644 index 0000000..06f532c --- /dev/null +++ b/src/Methods/RefundStarPaymentMethod.php @@ -0,0 +1,28 @@ + 'integer', + 'telegram_payment_charge_id' => 'string', + ]; + + public function mock($arguments) + { + return true; + } +} diff --git a/src/Methods/SendAnimationMethod.php b/src/Methods/SendAnimationMethod.php index 87cc7d5..0e22dc0 100644 --- a/src/Methods/SendAnimationMethod.php +++ b/src/Methods/SendAnimationMethod.php @@ -22,9 +22,11 @@ * @property string $caption __Required: Optional__. Animation caption (may also be used when resending animation by file_id), 0-1024 characters after entities parsing * @property string $parse_mode __Required: Optional__. Mode for parsing entities in the animation caption. See formatting options for more details. * @property MessageEntity[] $caption_entities __Required: Optional__. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media __Required: Optional__. Pass True, if the caption must be shown above the message media * @property bool $has_spoiler __Required: Optional__. Pass True if the animation needs to be covered with a spoiler animation * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -45,9 +47,11 @@ class SendAnimationMethod extends TelegramMethod 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'has_spoiler' => 'boolean', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendAudioMethod.php b/src/Methods/SendAudioMethod.php index e3de29e..64c966c 100644 --- a/src/Methods/SendAudioMethod.php +++ b/src/Methods/SendAudioMethod.php @@ -26,6 +26,7 @@ * @property InputFile $thumbnail __Required: Optional__. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass β€œattach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files Β» * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -48,6 +49,7 @@ class SendAudioMethod extends TelegramMethod 'thumbnail' => 'InputFile', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendContactMethod.php b/src/Methods/SendContactMethod.php index 7d76003..0829e16 100644 --- a/src/Methods/SendContactMethod.php +++ b/src/Methods/SendContactMethod.php @@ -18,6 +18,7 @@ * @property string $vcard __Required: Optional__. Additional data about the contact in the form of a vCard, 0-2048 bytes * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove keyboard or to force a reply from the user. */ @@ -37,6 +38,7 @@ class SendContactMethod extends TelegramMethod 'vcard' => 'string', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendDiceMethod.php b/src/Methods/SendDiceMethod.php index d6bced9..abd6f7f 100644 --- a/src/Methods/SendDiceMethod.php +++ b/src/Methods/SendDiceMethod.php @@ -16,6 +16,7 @@ * @property string $emoji __Required: Optional__. Emoji on which the dice throw animation is based. Currently, must be one of β€œπŸŽ²β€, β€œπŸŽ―β€, β€œπŸ€β€, β€œβš½β€, or β€œπŸŽ°β€. Dice can have values 1-6 for β€œπŸŽ²β€ and β€œπŸŽ―β€, values 1-5 for β€œπŸ€β€ and β€œβš½β€, and values 1-64 for β€œπŸŽ°β€. Defaults to β€œπŸŽ²β€ * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -32,6 +33,7 @@ class SendDiceMethod extends TelegramMethod 'emoji' => 'string', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendDocumentMethod.php b/src/Methods/SendDocumentMethod.php index 7a8471d..6befb42 100644 --- a/src/Methods/SendDocumentMethod.php +++ b/src/Methods/SendDocumentMethod.php @@ -22,6 +22,7 @@ * @property bool $disable_content_type_detection __Required: Optional__. Disables automatic server-side content type detection for files uploaded using multipart/form-data * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -42,6 +43,7 @@ class SendDocumentMethod extends TelegramMethod 'disable_content_type_detection' => 'boolean', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendGameMethod.php b/src/Methods/SendGameMethod.php index ec86437..54b9735 100644 --- a/src/Methods/SendGameMethod.php +++ b/src/Methods/SendGameMethod.php @@ -15,6 +15,7 @@ * @property string $game_short_name __Required: Yes__. Short name of the game, serves as the unique identifier for the game. Set up your games via Botfather. * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property InlineKeyboardMarkup $reply_markup __Required: Optional__. A JSON-serialized object for an inline keyboard. If empty, one 'Play game_title' button will be shown. If not empty, the first button must launch the game. */ @@ -31,6 +32,7 @@ class SendGameMethod extends TelegramMethod 'game_short_name' => 'string', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'InlineKeyboardMarkup', ]; diff --git a/src/Methods/SendInvoiceMethod.php b/src/Methods/SendInvoiceMethod.php index 0fde6ca..8cf8a84 100644 --- a/src/Methods/SendInvoiceMethod.php +++ b/src/Methods/SendInvoiceMethod.php @@ -36,6 +36,7 @@ * @property bool $is_flexible __Required: Optional__. Pass True, if the final price depends on the shipping method * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property InlineKeyboardMarkup $reply_markup __Required: Optional__. A JSON-serialized object for an inline keyboard. If empty, one 'Pay total price' button will be shown. If not empty, the first button must be a Pay button. */ @@ -71,6 +72,7 @@ class SendInvoiceMethod extends TelegramMethod 'is_flexible' => 'boolean', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'InlineKeyboardMarkup', ]; diff --git a/src/Methods/SendLocationMethod.php b/src/Methods/SendLocationMethod.php index 21b0045..a68e36b 100644 --- a/src/Methods/SendLocationMethod.php +++ b/src/Methods/SendLocationMethod.php @@ -21,6 +21,7 @@ * @property int $proximity_alert_radius __Required: Optional__. For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified. * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -42,6 +43,7 @@ class SendLocationMethod extends TelegramMethod 'proximity_alert_radius' => 'integer', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendMediaGroupMethod.php b/src/Methods/SendMediaGroupMethod.php index d7043ca..60ef2fb 100644 --- a/src/Methods/SendMediaGroupMethod.php +++ b/src/Methods/SendMediaGroupMethod.php @@ -16,6 +16,7 @@ * @property InputMedia[] $media __Required: Yes__. A JSON-serialized array describing messages to be sent, must include 2-10 items * @property bool $disable_notification __Required: Optional__. Sends messages silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent messages from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to */ class SendMediaGroupMethod extends TelegramMethod @@ -31,6 +32,7 @@ class SendMediaGroupMethod extends TelegramMethod 'media' => 'InputMedia[]', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', ]; diff --git a/src/Methods/SendMessageMethod.php b/src/Methods/SendMessageMethod.php index c6f713e..829f15b 100644 --- a/src/Methods/SendMessageMethod.php +++ b/src/Methods/SendMessageMethod.php @@ -21,6 +21,7 @@ * @property LinkPreviewOptions $link_preview_options __Required: Optional__. Link preview generation options for the message * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -40,6 +41,7 @@ class SendMessageMethod extends TelegramMethod 'link_preview_options' => 'LinkPreviewOptions', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendPhotoMethod.php b/src/Methods/SendPhotoMethod.php index d72f1a0..c0a3e0b 100644 --- a/src/Methods/SendPhotoMethod.php +++ b/src/Methods/SendPhotoMethod.php @@ -18,9 +18,11 @@ * @property string $caption __Required: Optional__. Photo caption (may also be used when resending photos by file_id), 0-1024 characters after entities parsing * @property string $parse_mode __Required: Optional__. Mode for parsing entities in the photo caption. See formatting options for more details. * @property MessageEntity[] $caption_entities __Required: Optional__. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media __Required: Optional__. Pass True, if the caption must be shown above the message media * @property bool $has_spoiler __Required: Optional__. Pass True if the photo needs to be covered with a spoiler animation * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -37,9 +39,11 @@ class SendPhotoMethod extends TelegramMethod 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'has_spoiler' => 'boolean', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendPollMethod.php b/src/Methods/SendPollMethod.php index abb238d..bd3b21b 100644 --- a/src/Methods/SendPollMethod.php +++ b/src/Methods/SendPollMethod.php @@ -29,6 +29,7 @@ * @property bool $is_closed __Required: Optional__. Pass True, if the poll needs to be immediately closed. This can be useful for poll preview. * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -57,6 +58,7 @@ class SendPollMethod extends TelegramMethod 'is_closed' => 'boolean', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendStickerMethod.php b/src/Methods/SendStickerMethod.php index 575110b..6ec9573 100644 --- a/src/Methods/SendStickerMethod.php +++ b/src/Methods/SendStickerMethod.php @@ -18,6 +18,7 @@ * @property string $emoji __Required: Optional__. Emoji associated with the sticker; only for just uploaded stickers * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -35,6 +36,7 @@ class SendStickerMethod extends TelegramMethod 'emoji' => 'string', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendVenueMethod.php b/src/Methods/SendVenueMethod.php index 9a26de9..275e856 100644 --- a/src/Methods/SendVenueMethod.php +++ b/src/Methods/SendVenueMethod.php @@ -23,6 +23,7 @@ * @property string $google_place_type __Required: Optional__. Google Places type of the venue. (See supported types.) * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -46,6 +47,7 @@ class SendVenueMethod extends TelegramMethod 'google_place_type' => 'string', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendVideoMethod.php b/src/Methods/SendVideoMethod.php index a272f63..7c08147 100644 --- a/src/Methods/SendVideoMethod.php +++ b/src/Methods/SendVideoMethod.php @@ -22,10 +22,12 @@ * @property string $caption __Required: Optional__. Video caption (may also be used when resending videos by file_id), 0-1024 characters after entities parsing * @property string $parse_mode __Required: Optional__. Mode for parsing entities in the video caption. See formatting options for more details. * @property MessageEntity[] $caption_entities __Required: Optional__. A JSON-serialized list of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media __Required: Optional__. Pass True, if the caption must be shown above the message media * @property bool $has_spoiler __Required: Optional__. Pass True if the video needs to be covered with a spoiler animation * @property bool $supports_streaming __Required: Optional__. Pass True, if the uploaded video is suitable for streaming * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -46,10 +48,12 @@ class SendVideoMethod extends TelegramMethod 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'has_spoiler' => 'boolean', 'supports_streaming' => 'boolean', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendVideoNoteMethod.php b/src/Methods/SendVideoNoteMethod.php index 3f163c8..6bee010 100644 --- a/src/Methods/SendVideoNoteMethod.php +++ b/src/Methods/SendVideoNoteMethod.php @@ -19,6 +19,7 @@ * @property InputFile $thumbnail __Required: Optional__. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't be reused and can be only uploaded as a new file, so you can pass β€œattach://” if the thumbnail was uploaded using multipart/form-data under . More info on Sending Files Β» * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -37,6 +38,7 @@ class SendVideoNoteMethod extends TelegramMethod 'thumbnail' => 'InputFile', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Methods/SendVoiceMethod.php b/src/Methods/SendVoiceMethod.php index 44c50f5..aa5e351 100644 --- a/src/Methods/SendVoiceMethod.php +++ b/src/Methods/SendVoiceMethod.php @@ -22,6 +22,7 @@ * @property int $duration __Required: Optional__. Duration of the voice message in seconds * @property bool $disable_notification __Required: Optional__. Sends the message silently. Users will receive a notification with no sound. * @property bool $protect_content __Required: Optional__. Protects the contents of the sent message from forwarding and saving + * @property string $message_effect_id __Required: Optional__. Unique identifier of the message effect to be added to the message; for private chats only * @property ReplyParameters $reply_parameters __Required: Optional__. Description of the message to reply to * @property Keyboard $reply_markup __Required: Optional__. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user. */ @@ -42,6 +43,7 @@ class SendVoiceMethod extends TelegramMethod 'duration' => 'integer', 'disable_notification' => 'boolean', 'protect_content' => 'boolean', + 'message_effect_id' => 'string', 'reply_parameters' => 'ReplyParameters', 'reply_markup' => 'Keyboard', ]; diff --git a/src/Objects/InlineQueryResultCachedGif.php b/src/Objects/InlineQueryResultCachedGif.php index bb2f6b2..195417b 100644 --- a/src/Objects/InlineQueryResultCachedGif.php +++ b/src/Objects/InlineQueryResultCachedGif.php @@ -12,6 +12,7 @@ * @property string $caption Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property InlineKeyboardMarkup $reply_markup Optional. Inline keyboard attached to the message * @property InputMessageContent $input_message_content Optional. Content of the message to be sent instead of the GIF animation */ @@ -25,6 +26,7 @@ class InlineQueryResultCachedGif extends InlineQueryResult 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'reply_markup' => 'InlineKeyboardMarkup', 'input_message_content' => 'InputMessageContent', ]; diff --git a/src/Objects/InlineQueryResultCachedMpeg4Gif.php b/src/Objects/InlineQueryResultCachedMpeg4Gif.php index 2ce6e1d..01aa6bd 100644 --- a/src/Objects/InlineQueryResultCachedMpeg4Gif.php +++ b/src/Objects/InlineQueryResultCachedMpeg4Gif.php @@ -12,6 +12,7 @@ * @property string $caption Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property InlineKeyboardMarkup $reply_markup Optional. Inline keyboard attached to the message * @property InputMessageContent $input_message_content Optional. Content of the message to be sent instead of the video animation */ @@ -25,6 +26,7 @@ class InlineQueryResultCachedMpeg4Gif extends InlineQueryResult 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'reply_markup' => 'InlineKeyboardMarkup', 'input_message_content' => 'InputMessageContent', ]; diff --git a/src/Objects/InlineQueryResultCachedPhoto.php b/src/Objects/InlineQueryResultCachedPhoto.php index c9287fd..5d4a364 100644 --- a/src/Objects/InlineQueryResultCachedPhoto.php +++ b/src/Objects/InlineQueryResultCachedPhoto.php @@ -13,6 +13,7 @@ * @property string $caption Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the photo caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property InlineKeyboardMarkup $reply_markup Optional. Inline keyboard attached to the message * @property InputMessageContent $input_message_content Optional. Content of the message to be sent instead of the photo */ @@ -27,6 +28,7 @@ class InlineQueryResultCachedPhoto extends InlineQueryResult 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'reply_markup' => 'InlineKeyboardMarkup', 'input_message_content' => 'InputMessageContent', ]; diff --git a/src/Objects/InlineQueryResultCachedVideo.php b/src/Objects/InlineQueryResultCachedVideo.php index a00aa42..1122036 100644 --- a/src/Objects/InlineQueryResultCachedVideo.php +++ b/src/Objects/InlineQueryResultCachedVideo.php @@ -13,6 +13,7 @@ * @property string $caption Optional. Caption of the video to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the video caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property InlineKeyboardMarkup $reply_markup Optional. Inline keyboard attached to the message * @property InputMessageContent $input_message_content Optional. Content of the message to be sent instead of the video */ @@ -27,6 +28,7 @@ class InlineQueryResultCachedVideo extends InlineQueryResult 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'reply_markup' => 'InlineKeyboardMarkup', 'input_message_content' => 'InputMessageContent', ]; diff --git a/src/Objects/InlineQueryResultGif.php b/src/Objects/InlineQueryResultGif.php index af28e29..a51a0be 100644 --- a/src/Objects/InlineQueryResultGif.php +++ b/src/Objects/InlineQueryResultGif.php @@ -17,6 +17,7 @@ * @property string $caption Optional. Caption of the GIF file to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property InlineKeyboardMarkup $reply_markup Optional. Inline keyboard attached to the message * @property InputMessageContent $input_message_content Optional. Content of the message to be sent instead of the GIF animation */ @@ -35,6 +36,7 @@ class InlineQueryResultGif extends InlineQueryResult 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'reply_markup' => 'InlineKeyboardMarkup', 'input_message_content' => 'InputMessageContent', ]; diff --git a/src/Objects/InlineQueryResultMpeg4Gif.php b/src/Objects/InlineQueryResultMpeg4Gif.php index 159cd5c..6527b05 100644 --- a/src/Objects/InlineQueryResultMpeg4Gif.php +++ b/src/Objects/InlineQueryResultMpeg4Gif.php @@ -16,6 +16,7 @@ * @property string $title Optional. Title for the result * @property string $caption Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property string $parse_mode Optional. Mode for parsing entities in the caption. See formatting options for more details. * @property InlineKeyboardMarkup $reply_markup Optional. Inline keyboard attached to the message * @property InputMessageContent $input_message_content Optional. Content of the message to be sent instead of the video animation @@ -35,6 +36,7 @@ class InlineQueryResultMpeg4Gif extends InlineQueryResult 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'reply_markup' => 'InlineKeyboardMarkup', 'input_message_content' => 'InputMessageContent', ]; diff --git a/src/Objects/InlineQueryResultPhoto.php b/src/Objects/InlineQueryResultPhoto.php index 35e9602..58a475c 100644 --- a/src/Objects/InlineQueryResultPhoto.php +++ b/src/Objects/InlineQueryResultPhoto.php @@ -16,6 +16,7 @@ * @property string $caption Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the photo caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property InlineKeyboardMarkup $reply_markup Optional. Inline keyboard attached to the message * @property InputMessageContent $input_message_content Optional. Content of the message to be sent instead of the photo */ @@ -33,6 +34,7 @@ class InlineQueryResultPhoto extends InlineQueryResult 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'reply_markup' => 'InlineKeyboardMarkup', 'input_message_content' => 'InputMessageContent', ]; diff --git a/src/Objects/InlineQueryResultVideo.php b/src/Objects/InlineQueryResultVideo.php index aae0c00..b2efc46 100644 --- a/src/Objects/InlineQueryResultVideo.php +++ b/src/Objects/InlineQueryResultVideo.php @@ -16,6 +16,7 @@ * @property string $caption Optional. Caption of the video to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the video caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property int $video_width Optional. Video width * @property int $video_height Optional. Video height * @property int $video_duration Optional. Video duration in seconds @@ -35,6 +36,7 @@ class InlineQueryResultVideo extends InlineQueryResult 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'video_width' => 'integer', 'video_height' => 'integer', 'video_duration' => 'integer', diff --git a/src/Objects/InputInvoiceMessageContent.php b/src/Objects/InputInvoiceMessageContent.php index e4361b0..d931063 100644 --- a/src/Objects/InputInvoiceMessageContent.php +++ b/src/Objects/InputInvoiceMessageContent.php @@ -10,7 +10,7 @@ * @property string $title Product name, 1-32 characters * @property string $description Product description, 1-255 characters * @property string $payload Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal processes. - * @property string $provider_token Payment provider token, obtained via Botfather + * @property string $provider_token Optional. Payment provider token, obtained via @BotFather. Pass an empty string for payments in Telegram Stars. * @property string $currency Three-letter ISO 4217 currency code, see more on currencies * @property LabeledPrice[] $prices Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, delivery tax, bonus, etc.) * @property int $max_tip_amount Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies). Defaults to 0 diff --git a/src/Objects/InputMediaAnimation.php b/src/Objects/InputMediaAnimation.php index dc0d488..d6bc24a 100644 --- a/src/Objects/InputMediaAnimation.php +++ b/src/Objects/InputMediaAnimation.php @@ -11,6 +11,7 @@ * @property string $caption Optional. Caption of the animation to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the animation caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property int $width Optional. Animation width * @property int $height Optional. Animation height * @property int $duration Optional. Animation duration in seconds @@ -25,6 +26,7 @@ class InputMediaAnimation extends InputMedia 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'width' => 'integer', 'height' => 'integer', 'duration' => 'integer', diff --git a/src/Objects/InputMediaPhoto.php b/src/Objects/InputMediaPhoto.php index 8801054..8f1851b 100644 --- a/src/Objects/InputMediaPhoto.php +++ b/src/Objects/InputMediaPhoto.php @@ -10,6 +10,7 @@ * @property string $caption Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the photo caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property bool $has_spoiler Optional. Pass True if the photo needs to be covered with a spoiler animation */ class InputMediaPhoto extends InputMedia @@ -20,6 +21,7 @@ class InputMediaPhoto extends InputMedia 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'has_spoiler' => 'boolean', ]; } diff --git a/src/Objects/InputMediaVideo.php b/src/Objects/InputMediaVideo.php index 1b091fd..e934d1d 100644 --- a/src/Objects/InputMediaVideo.php +++ b/src/Objects/InputMediaVideo.php @@ -11,6 +11,7 @@ * @property string $caption Optional. Caption of the video to be sent, 0-1024 characters after entities parsing * @property string $parse_mode Optional. Mode for parsing entities in the video caption. See formatting options for more details. * @property MessageEntity[] $caption_entities Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property int $width Optional. Video width * @property int $height Optional. Video height * @property int $duration Optional. Video duration in seconds @@ -26,6 +27,7 @@ class InputMediaVideo extends InputMedia 'caption' => 'string', 'parse_mode' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'width' => 'integer', 'height' => 'integer', 'duration' => 'integer', diff --git a/src/Objects/Message.php b/src/Objects/Message.php index 5b531fd..3501481 100644 --- a/src/Objects/Message.php +++ b/src/Objects/Message.php @@ -30,6 +30,7 @@ * @property string $text Optional. For text messages, the actual UTF-8 text of the message, 0-4096 characters * @property MessageEntity[] $entities Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text * @property LinkPreviewOptions $link_preview_options Optional. Options used for link preview generation for the message, if it is a text message and link preview options were changed + * @property string $effect_id Optional. Unique identifier of the message effect added to the message * @property Animation $animation Optional. Message is an animation, information about the animation. For backward compatibility, when this field is set, the document field will also be set * @property Audio $audio Optional. Message is an audio file, information about the file * @property Document $document Optional. Message is a general file, information about the file @@ -41,6 +42,7 @@ * @property Voice $voice Optional. Message is a voice message, information about the file * @property string $caption Optional. Caption for the animation, audio, document, photo, video or voice, 0-1024 characters * @property MessageEntity[] $caption_entities Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in the caption + * @property bool $show_caption_above_media Optional. Pass True, if the caption must be shown above the message media. Ignored if a new caption isn't specified. * @property bool $has_media_spoiler Optional. True, if the message media is covered by a spoiler animation * @property Contact $contact Optional. Message is a shared contact, information about the contact * @property Dice $dice Optional. Message is a dice with random value @@ -115,6 +117,7 @@ class Message extends TelegramObject 'text' => 'string', 'entities' => 'MessageEntity[]', 'link_preview_options' => 'LinkPreviewOptions', + 'effect_id' => 'string', 'animation' => 'Animation', 'audio' => 'Audio', 'document' => 'Document', @@ -126,6 +129,7 @@ class Message extends TelegramObject 'voice' => 'Voice', 'caption' => 'string', 'caption_entities' => 'MessageEntity[]', + 'show_caption_above_media' => 'boolean', 'has_media_spoiler ' => 'boolean', 'contact' => 'Contact', 'dice' => 'Dice',