diff --git a/src/Layers/Generated.php b/src/Layers/Generated.php index 3913a4e..7bea0ee 100644 --- a/src/Layers/Generated.php +++ b/src/Layers/Generated.php @@ -43,7 +43,7 @@ public function getUpdates( ?int $offset = null, ?int $limit = null, ?int $timeout = null, - ?array $allowed_updates = null + ?array $allowed_updates = null, ): array { return $this->raw('getUpdates', func_get_args()); } @@ -66,7 +66,7 @@ public function setWebhook( ?int $max_connections = null, ?array $allowed_updates = null, ?bool $drop_pending_updates = null, - ?string $secret_token = null + ?string $secret_token = null, ): bool { return $this->raw('setWebhook', func_get_args()); } @@ -137,7 +137,7 @@ public function sendMessage( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendMessage', func_get_args()); } @@ -156,7 +156,7 @@ public function forwardMessage( int|string $from_chat_id, int $message_id, ?bool $disable_notification = null, - ?bool $protect_content = null + ?bool $protect_content = null, ): \Telepath\Telegram\Message { return $this->raw('forwardMessage', func_get_args()); } @@ -187,7 +187,7 @@ public function copyMessage( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\MessageId { return $this->raw('copyMessage', func_get_args()); } @@ -216,7 +216,7 @@ public function sendPhoto( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendPhoto', func_get_args()); } @@ -253,7 +253,7 @@ public function sendAudio( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendAudio', func_get_args()); } @@ -286,7 +286,7 @@ public function sendDocument( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendDocument', func_get_args()); } @@ -325,7 +325,7 @@ public function sendVideo( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendVideo', func_get_args()); } @@ -362,7 +362,7 @@ public function sendAnimation( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendAnimation', func_get_args()); } @@ -393,7 +393,7 @@ public function sendVoice( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendVoice', func_get_args()); } @@ -422,7 +422,7 @@ public function sendVideoNote( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendVideoNote', func_get_args()); } @@ -444,7 +444,7 @@ public function sendMediaGroup( ?bool $disable_notification = null, ?bool $protect_content = null, ?int $reply_to_message_id = null, - ?bool $allow_sending_without_reply = null + ?bool $allow_sending_without_reply = null, ): array { return $this->raw('sendMediaGroup', func_get_args()); } @@ -477,7 +477,7 @@ public function sendLocation( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendLocation', func_get_args()); } @@ -504,7 +504,7 @@ public function editMessageLiveLocation( ?float $horizontal_accuracy = null, ?int $heading = null, ?int $proximity_alert_radius = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Message|bool { return $this->raw('editMessageLiveLocation', func_get_args()); } @@ -521,7 +521,7 @@ public function stopMessageLiveLocation( int|string|null $chat_id = null, ?int $message_id = null, ?string $inline_message_id = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Message|bool { return $this->raw('stopMessageLiveLocation', func_get_args()); } @@ -558,7 +558,7 @@ public function sendVenue( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendVenue', func_get_args()); } @@ -587,7 +587,7 @@ public function sendContact( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendContact', func_get_args()); } @@ -632,7 +632,7 @@ public function sendPoll( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendPoll', func_get_args()); } @@ -655,7 +655,7 @@ public function sendDice( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendDice', func_get_args()); } @@ -681,7 +681,7 @@ public function sendChatAction(int|string $chat_id, string $action): bool public function getUserProfilePhotos( int $user_id, ?int $offset = null, - ?int $limit = null + ?int $limit = null, ): \Telepath\Telegram\UserProfilePhotos { return $this->raw('getUserProfilePhotos', func_get_args()); } @@ -708,7 +708,7 @@ public function banChatMember( int|string $chat_id, int $user_id, ?int $until_date = null, - ?bool $revoke_messages = null + ?bool $revoke_messages = null, ): bool { return $this->raw('banChatMember', func_get_args()); } @@ -737,7 +737,7 @@ public function restrictChatMember( int|string $chat_id, int $user_id, ChatPermissions $permissions, - ?int $until_date = null + ?int $until_date = null, ): bool { return $this->raw('restrictChatMember', func_get_args()); } @@ -772,7 +772,7 @@ public function promoteChatMember( ?bool $can_promote_members = null, ?bool $can_change_info = null, ?bool $can_invite_users = null, - ?bool $can_pin_messages = null + ?bool $can_pin_messages = null, ): bool { return $this->raw('promoteChatMember', func_get_args()); } @@ -846,7 +846,7 @@ public function createChatInviteLink( ?string $name = null, ?int $expire_date = null, ?int $member_limit = null, - ?bool $creates_join_request = null + ?bool $creates_join_request = null, ): \Telepath\Telegram\ChatInviteLink { return $this->raw('createChatInviteLink', func_get_args()); } @@ -867,7 +867,7 @@ public function editChatInviteLink( ?string $name = null, ?int $expire_date = null, ?int $member_limit = null, - ?bool $creates_join_request = null + ?bool $creates_join_request = null, ): \Telepath\Telegram\ChatInviteLink { return $this->raw('editChatInviteLink', func_get_args()); } @@ -878,10 +878,8 @@ public function editChatInviteLink( * @param int|string $chat_id Unique identifier of the target chat or username of the target channel (in the format @channelusername) * @param string $invite_link The invite link to revoke */ - public function revokeChatInviteLink( - int|string $chat_id, - string $invite_link - ): \Telepath\Telegram\ChatInviteLink { + public function revokeChatInviteLink(int|string $chat_id, string $invite_link): \Telepath\Telegram\ChatInviteLink + { return $this->raw('revokeChatInviteLink', func_get_args()); } @@ -1070,7 +1068,7 @@ public function answerCallbackQuery( ?string $text = null, ?bool $show_alert = null, ?string $url = null, - ?int $cache_time = null + ?int $cache_time = null, ): bool { return $this->raw('answerCallbackQuery', func_get_args()); } @@ -1139,7 +1137,7 @@ public function getChatMenuButton(?int $chat_id = null): MenuButton */ public function setMyDefaultAdministratorRights( ?ChatAdministratorRights $rights = null, - ?bool $for_channels = null + ?bool $for_channels = null, ): bool { return $this->raw('setMyDefaultAdministratorRights', func_get_args()); } @@ -1174,7 +1172,7 @@ public function editMessageText( ?string $parse_mode = null, ?array $entities = null, ?bool $disable_web_page_preview = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Message|bool { return $this->raw('editMessageText', func_get_args()); } @@ -1197,7 +1195,7 @@ public function editMessageCaption( ?string $caption = null, ?string $parse_mode = null, ?array $caption_entities = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Message|bool { return $this->raw('editMessageCaption', func_get_args()); } @@ -1216,7 +1214,7 @@ public function editMessageMedia( int|string|null $chat_id = null, ?int $message_id = null, ?string $inline_message_id = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Message|bool { return $this->raw('editMessageMedia', func_get_args()); } @@ -1233,7 +1231,7 @@ public function editMessageReplyMarkup( int|string|null $chat_id = null, ?int $message_id = null, ?string $inline_message_id = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Message|bool { return $this->raw('editMessageReplyMarkup', func_get_args()); } @@ -1248,7 +1246,7 @@ public function editMessageReplyMarkup( public function stopPoll( int|string $chat_id, int $message_id, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Poll { return $this->raw('stopPoll', func_get_args()); } @@ -1282,7 +1280,7 @@ public function sendSticker( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null + InlineKeyboardMarkup|ReplyKeyboardMarkup|ReplyKeyboardRemove|ForceReply|null $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendSticker', func_get_args()); } @@ -1340,7 +1338,7 @@ public function createNewStickerSet( ?InputFile $tgs_sticker = null, ?InputFile $webm_sticker = null, ?string $sticker_type = null, - ?MaskPosition $mask_position = null + ?MaskPosition $mask_position = null, ): bool { return $this->raw('createNewStickerSet', func_get_args()); } @@ -1363,7 +1361,7 @@ public function addStickerToSet( InputFile|string|null $png_sticker = null, ?InputFile $tgs_sticker = null, ?InputFile $webm_sticker = null, - ?MaskPosition $mask_position = null + ?MaskPosition $mask_position = null, ): bool { return $this->raw('addStickerToSet', func_get_args()); } @@ -1419,7 +1417,7 @@ public function answerInlineQuery( ?bool $is_personal = null, ?string $next_offset = null, ?string $switch_pm_text = null, - ?string $switch_pm_parameter = null + ?string $switch_pm_parameter = null, ): bool { return $this->raw('answerInlineQuery', func_get_args()); } @@ -1432,7 +1430,7 @@ public function answerInlineQuery( */ public function answerWebAppQuery( string $web_app_query_id, - InlineQueryResult $result + InlineQueryResult $result, ): \Telepath\Telegram\SentWebAppMessage { return $this->raw('answerWebAppQuery', func_get_args()); } @@ -1495,7 +1493,7 @@ public function sendInvoice( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendInvoice', func_get_args()); } @@ -1544,7 +1542,7 @@ public function createInvoiceLink( ?bool $need_shipping_address = null, ?bool $send_phone_number_to_provider = null, ?bool $send_email_to_provider = null, - ?bool $is_flexible = null + ?bool $is_flexible = null, ) { return $this->raw('createInvoiceLink', func_get_args()); } @@ -1561,7 +1559,7 @@ public function answerShippingQuery( string $shipping_query_id, bool $ok, ?array $shipping_options = null, - ?string $error_message = null + ?string $error_message = null, ): bool { return $this->raw('answerShippingQuery', func_get_args()); } @@ -1607,7 +1605,7 @@ public function sendGame( ?bool $protect_content = null, ?int $reply_to_message_id = null, ?bool $allow_sending_without_reply = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): \Telepath\Telegram\Message { return $this->raw('sendGame', func_get_args()); } @@ -1630,7 +1628,7 @@ public function setGameScore( ?bool $disable_edit_message = null, ?int $chat_id = null, ?int $message_id = null, - ?string $inline_message_id = null + ?string $inline_message_id = null, ): \Telepath\Telegram\Message|bool { return $this->raw('setGameScore', func_get_args()); } @@ -1648,7 +1646,7 @@ public function getGameHighScores( int $user_id, ?int $chat_id = null, ?int $message_id = null, - ?string $inline_message_id = null + ?string $inline_message_id = null, ): array { return $this->raw('getGameHighScores', func_get_args()); } diff --git a/src/Telegram/Animation.php b/src/Telegram/Animation.php index ef80143..8363e03 100644 --- a/src/Telegram/Animation.php +++ b/src/Telegram/Animation.php @@ -60,7 +60,7 @@ public static function make( ?PhotoSize $thumb = null, ?string $file_name = null, ?string $mime_type = null, - ?int $file_size = null + ?int $file_size = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/Audio.php b/src/Telegram/Audio.php index c928f96..cc680c2 100644 --- a/src/Telegram/Audio.php +++ b/src/Telegram/Audio.php @@ -60,7 +60,7 @@ public static function make( ?string $file_name = null, ?string $mime_type = null, ?int $file_size = null, - ?PhotoSize $thumb = null + ?PhotoSize $thumb = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/CallbackQuery.php b/src/Telegram/CallbackQuery.php index a5191be..9db9c21 100644 --- a/src/Telegram/CallbackQuery.php +++ b/src/Telegram/CallbackQuery.php @@ -50,7 +50,7 @@ public static function make( ?Message $message = null, ?string $inline_message_id = null, ?string $data = null, - ?string $game_short_name = null + ?string $game_short_name = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/Chat.php b/src/Telegram/Chat.php index baf601e..af5dcde 100644 --- a/src/Telegram/Chat.php +++ b/src/Telegram/Chat.php @@ -130,7 +130,7 @@ public static function make( ?string $sticker_set_name = null, ?bool $can_set_sticker_set = null, ?int $linked_chat_id = null, - ?ChatLocation $location = null + ?ChatLocation $location = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/ChatAdministratorRights.php b/src/Telegram/ChatAdministratorRights.php index 5122f23..aa376d6 100644 --- a/src/Telegram/ChatAdministratorRights.php +++ b/src/Telegram/ChatAdministratorRights.php @@ -70,7 +70,7 @@ public static function make( bool $can_invite_users, ?bool $can_post_messages = null, ?bool $can_edit_messages = null, - ?bool $can_pin_messages = null + ?bool $can_pin_messages = null, ): static { return new static([ 'is_anonymous' => $is_anonymous, diff --git a/src/Telegram/ChatInviteLink.php b/src/Telegram/ChatInviteLink.php index 69382b2..5b41764 100644 --- a/src/Telegram/ChatInviteLink.php +++ b/src/Telegram/ChatInviteLink.php @@ -60,7 +60,7 @@ public static function make( ?string $name = null, ?int $expire_date = null, ?int $member_limit = null, - ?int $pending_join_request_count = null + ?int $pending_join_request_count = null, ): static { return new static([ 'invite_link' => $invite_link, diff --git a/src/Telegram/ChatJoinRequest.php b/src/Telegram/ChatJoinRequest.php index d419870..93f5018 100644 --- a/src/Telegram/ChatJoinRequest.php +++ b/src/Telegram/ChatJoinRequest.php @@ -40,7 +40,7 @@ public static function make( User $from, int $date, ?string $bio = null, - ?ChatInviteLink $invite_link = null + ?ChatInviteLink $invite_link = null, ): static { return new static([ 'chat' => $chat, diff --git a/src/Telegram/ChatMemberAdministrator.php b/src/Telegram/ChatMemberAdministrator.php index 5cae518..d37687b 100644 --- a/src/Telegram/ChatMemberAdministrator.php +++ b/src/Telegram/ChatMemberAdministrator.php @@ -83,7 +83,7 @@ public static function make( ?bool $can_post_messages = null, ?bool $can_edit_messages = null, ?bool $can_pin_messages = null, - ?string $custom_title = null + ?string $custom_title = null, ): static { return new static([ 'user' => $user, diff --git a/src/Telegram/ChatMemberRestricted.php b/src/Telegram/ChatMemberRestricted.php index 0c22daa..d12149a 100644 --- a/src/Telegram/ChatMemberRestricted.php +++ b/src/Telegram/ChatMemberRestricted.php @@ -68,7 +68,7 @@ public static function make( bool $can_send_polls, bool $can_send_other_messages, bool $can_add_web_page_previews, - int $until_date + int $until_date, ): static { return new static([ 'user' => $user, diff --git a/src/Telegram/ChatMemberUpdated.php b/src/Telegram/ChatMemberUpdated.php index 8709202..bd09fd0 100644 --- a/src/Telegram/ChatMemberUpdated.php +++ b/src/Telegram/ChatMemberUpdated.php @@ -45,7 +45,7 @@ public static function make( int $date, ChatMember $old_chat_member, ChatMember $new_chat_member, - ?ChatInviteLink $invite_link = null + ?ChatInviteLink $invite_link = null, ): static { return new static([ 'chat' => $chat, diff --git a/src/Telegram/ChatPermissions.php b/src/Telegram/ChatPermissions.php index 06004d0..ed92e98 100644 --- a/src/Telegram/ChatPermissions.php +++ b/src/Telegram/ChatPermissions.php @@ -55,7 +55,7 @@ public static function make( ?bool $can_add_web_page_previews = null, ?bool $can_change_info = null, ?bool $can_invite_users = null, - ?bool $can_pin_messages = null + ?bool $can_pin_messages = null, ): static { return new static([ 'can_send_messages' => $can_send_messages, diff --git a/src/Telegram/ChatPhoto.php b/src/Telegram/ChatPhoto.php index 5f07de8..214208c 100644 --- a/src/Telegram/ChatPhoto.php +++ b/src/Telegram/ChatPhoto.php @@ -35,7 +35,7 @@ public static function make( string $small_file_id, string $small_file_unique_id, string $big_file_id, - string $big_file_unique_id + string $big_file_unique_id, ): static { return new static([ 'small_file_id' => $small_file_id, diff --git a/src/Telegram/ChosenInlineResult.php b/src/Telegram/ChosenInlineResult.php index 29cd812..c9b289a 100644 --- a/src/Telegram/ChosenInlineResult.php +++ b/src/Telegram/ChosenInlineResult.php @@ -40,7 +40,7 @@ public static function make( User $from, string $query, ?Location $location = null, - ?string $inline_message_id = null + ?string $inline_message_id = null, ): static { return new static([ 'result_id' => $result_id, diff --git a/src/Telegram/Contact.php b/src/Telegram/Contact.php index a2fc9dd..d04bf62 100644 --- a/src/Telegram/Contact.php +++ b/src/Telegram/Contact.php @@ -40,7 +40,7 @@ public static function make( string $first_name, ?string $last_name = null, ?int $user_id = null, - ?string $vcard = null + ?string $vcard = null, ): static { return new static([ 'phone_number' => $phone_number, diff --git a/src/Telegram/Document.php b/src/Telegram/Document.php index b98d89c..840afee 100644 --- a/src/Telegram/Document.php +++ b/src/Telegram/Document.php @@ -45,7 +45,7 @@ public static function make( ?PhotoSize $thumb = null, ?string $file_name = null, ?string $mime_type = null, - ?int $file_size = null + ?int $file_size = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/EncryptedPassportElement.php b/src/Telegram/EncryptedPassportElement.php index 7414ef6..bce3f42 100644 --- a/src/Telegram/EncryptedPassportElement.php +++ b/src/Telegram/EncryptedPassportElement.php @@ -71,7 +71,7 @@ public static function make( ?PassportFile $front_side = null, ?PassportFile $reverse_side = null, ?PassportFile $selfie = null, - ?array $translation = null + ?array $translation = null, ): static { return new static([ 'type' => $type, diff --git a/src/Telegram/File.php b/src/Telegram/File.php index ac413e8..db73640 100644 --- a/src/Telegram/File.php +++ b/src/Telegram/File.php @@ -35,7 +35,7 @@ public static function make( string $file_id, string $file_unique_id, ?int $file_size = null, - ?string $file_path = null + ?string $file_path = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/Game.php b/src/Telegram/Game.php index c49cc36..6e97f35 100644 --- a/src/Telegram/Game.php +++ b/src/Telegram/Game.php @@ -51,7 +51,7 @@ public static function make( array $photo, ?string $text = null, ?array $text_entities = null, - ?Animation $animation = null + ?Animation $animation = null, ): static { return new static([ 'title' => $title, diff --git a/src/Telegram/InlineKeyboardButton.php b/src/Telegram/InlineKeyboardButton.php index ee09e83..c1b03e9 100644 --- a/src/Telegram/InlineKeyboardButton.php +++ b/src/Telegram/InlineKeyboardButton.php @@ -60,7 +60,7 @@ public static function make( ?string $switch_inline_query = null, ?string $switch_inline_query_current_chat = null, ?CallbackGame $callback_game = null, - ?bool $pay = null + ?bool $pay = null, ): static { return new static([ 'text' => $text, diff --git a/src/Telegram/InlineQuery.php b/src/Telegram/InlineQuery.php index 141c193..060feb7 100644 --- a/src/Telegram/InlineQuery.php +++ b/src/Telegram/InlineQuery.php @@ -45,7 +45,7 @@ public static function make( string $query, string $offset, ?string $chat_type = null, - ?Location $location = null + ?Location $location = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultArticle.php b/src/Telegram/InlineQueryResultArticle.php index 7ee9f16..6b5bea0 100644 --- a/src/Telegram/InlineQueryResultArticle.php +++ b/src/Telegram/InlineQueryResultArticle.php @@ -60,7 +60,7 @@ public static function make( ?string $description = null, ?string $thumb_url = null, ?int $thumb_width = null, - ?int $thumb_height = null + ?int $thumb_height = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultAudio.php b/src/Telegram/InlineQueryResultAudio.php index 938e539..a2b1d80 100644 --- a/src/Telegram/InlineQueryResultAudio.php +++ b/src/Telegram/InlineQueryResultAudio.php @@ -63,7 +63,7 @@ public static function make( ?string $performer = null, ?int $audio_duration = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultCachedAudio.php b/src/Telegram/InlineQueryResultCachedAudio.php index b84fc1a..2a54f6b 100644 --- a/src/Telegram/InlineQueryResultCachedAudio.php +++ b/src/Telegram/InlineQueryResultCachedAudio.php @@ -48,7 +48,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultCachedDocument.php b/src/Telegram/InlineQueryResultCachedDocument.php index 451c645..9a87a55 100644 --- a/src/Telegram/InlineQueryResultCachedDocument.php +++ b/src/Telegram/InlineQueryResultCachedDocument.php @@ -58,7 +58,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultCachedGif.php b/src/Telegram/InlineQueryResultCachedGif.php index c2d1c7a..0182a72 100644 --- a/src/Telegram/InlineQueryResultCachedGif.php +++ b/src/Telegram/InlineQueryResultCachedGif.php @@ -53,7 +53,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultCachedMpeg4Gif.php b/src/Telegram/InlineQueryResultCachedMpeg4Gif.php index 82d8e0b..c7a9f04 100644 --- a/src/Telegram/InlineQueryResultCachedMpeg4Gif.php +++ b/src/Telegram/InlineQueryResultCachedMpeg4Gif.php @@ -53,7 +53,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultCachedPhoto.php b/src/Telegram/InlineQueryResultCachedPhoto.php index 82a997d..e0edf33 100644 --- a/src/Telegram/InlineQueryResultCachedPhoto.php +++ b/src/Telegram/InlineQueryResultCachedPhoto.php @@ -58,7 +58,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultCachedSticker.php b/src/Telegram/InlineQueryResultCachedSticker.php index 49961dc..21e626b 100644 --- a/src/Telegram/InlineQueryResultCachedSticker.php +++ b/src/Telegram/InlineQueryResultCachedSticker.php @@ -30,7 +30,7 @@ public static function make( string $id, string $sticker_file_id, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultCachedVideo.php b/src/Telegram/InlineQueryResultCachedVideo.php index 01e45c8..ffeabfa 100644 --- a/src/Telegram/InlineQueryResultCachedVideo.php +++ b/src/Telegram/InlineQueryResultCachedVideo.php @@ -58,7 +58,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultCachedVoice.php b/src/Telegram/InlineQueryResultCachedVoice.php index 194777e..bc24e05 100644 --- a/src/Telegram/InlineQueryResultCachedVoice.php +++ b/src/Telegram/InlineQueryResultCachedVoice.php @@ -53,7 +53,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultContact.php b/src/Telegram/InlineQueryResultContact.php index 78bc5a6..e03be5f 100644 --- a/src/Telegram/InlineQueryResultContact.php +++ b/src/Telegram/InlineQueryResultContact.php @@ -60,7 +60,7 @@ public static function make( ?InputMessageContent $input_message_content = null, ?string $thumb_url = null, ?int $thumb_width = null, - ?int $thumb_height = null + ?int $thumb_height = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultDocument.php b/src/Telegram/InlineQueryResultDocument.php index 7401ede..8a31c6c 100644 --- a/src/Telegram/InlineQueryResultDocument.php +++ b/src/Telegram/InlineQueryResultDocument.php @@ -78,7 +78,7 @@ public static function make( ?InputMessageContent $input_message_content = null, ?string $thumb_url = null, ?int $thumb_width = null, - ?int $thumb_height = null + ?int $thumb_height = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultGif.php b/src/Telegram/InlineQueryResultGif.php index ed3d884..85b6c8c 100644 --- a/src/Telegram/InlineQueryResultGif.php +++ b/src/Telegram/InlineQueryResultGif.php @@ -78,7 +78,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultLocation.php b/src/Telegram/InlineQueryResultLocation.php index 5ef0ef7..4897606 100644 --- a/src/Telegram/InlineQueryResultLocation.php +++ b/src/Telegram/InlineQueryResultLocation.php @@ -75,7 +75,7 @@ public static function make( ?InputMessageContent $input_message_content = null, ?string $thumb_url = null, ?int $thumb_width = null, - ?int $thumb_height = null + ?int $thumb_height = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultMpeg4Gif.php b/src/Telegram/InlineQueryResultMpeg4Gif.php index d6c2c2c..2ca6d9b 100644 --- a/src/Telegram/InlineQueryResultMpeg4Gif.php +++ b/src/Telegram/InlineQueryResultMpeg4Gif.php @@ -78,7 +78,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultPhoto.php b/src/Telegram/InlineQueryResultPhoto.php index b8a203f..602fed0 100644 --- a/src/Telegram/InlineQueryResultPhoto.php +++ b/src/Telegram/InlineQueryResultPhoto.php @@ -73,7 +73,7 @@ public static function make( ?string $parse_mode = null, ?array $caption_entities = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultVenue.php b/src/Telegram/InlineQueryResultVenue.php index b40b585..a8cfc2a 100644 --- a/src/Telegram/InlineQueryResultVenue.php +++ b/src/Telegram/InlineQueryResultVenue.php @@ -80,7 +80,7 @@ public static function make( ?InputMessageContent $input_message_content = null, ?string $thumb_url = null, ?int $thumb_width = null, - ?int $thumb_height = null + ?int $thumb_height = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultVideo.php b/src/Telegram/InlineQueryResultVideo.php index a6b8a51..4e95e2d 100644 --- a/src/Telegram/InlineQueryResultVideo.php +++ b/src/Telegram/InlineQueryResultVideo.php @@ -83,7 +83,7 @@ public static function make( ?int $video_duration = null, ?string $description = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InlineQueryResultVoice.php b/src/Telegram/InlineQueryResultVoice.php index 156eb8c..7471981 100644 --- a/src/Telegram/InlineQueryResultVoice.php +++ b/src/Telegram/InlineQueryResultVoice.php @@ -58,7 +58,7 @@ public static function make( ?array $caption_entities = null, ?int $voice_duration = null, ?InlineKeyboardMarkup $reply_markup = null, - ?InputMessageContent $input_message_content = null + ?InputMessageContent $input_message_content = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/InputContactMessageContent.php b/src/Telegram/InputContactMessageContent.php index 5344695..9c63a70 100644 --- a/src/Telegram/InputContactMessageContent.php +++ b/src/Telegram/InputContactMessageContent.php @@ -33,7 +33,7 @@ public static function make( string $phone_number, string $first_name, ?string $last_name = null, - ?string $vcard = null + ?string $vcard = null, ): static { return new static([ 'phone_number' => $phone_number, diff --git a/src/Telegram/InputInvoiceMessageContent.php b/src/Telegram/InputInvoiceMessageContent.php index 76e0fa9..3aa6172 100644 --- a/src/Telegram/InputInvoiceMessageContent.php +++ b/src/Telegram/InputInvoiceMessageContent.php @@ -119,7 +119,7 @@ public static function make( ?bool $need_shipping_address = null, ?bool $send_phone_number_to_provider = null, ?bool $send_email_to_provider = null, - ?bool $is_flexible = null + ?bool $is_flexible = null, ): static { return new static([ 'title' => $title, diff --git a/src/Telegram/InputLocationMessageContent.php b/src/Telegram/InputLocationMessageContent.php index 4ba7091..ebc38a0 100644 --- a/src/Telegram/InputLocationMessageContent.php +++ b/src/Telegram/InputLocationMessageContent.php @@ -43,7 +43,7 @@ public static function make( ?float $horizontal_accuracy = null, ?int $live_period = null, ?int $heading = null, - ?int $proximity_alert_radius = null + ?int $proximity_alert_radius = null, ): static { return new static([ 'latitude' => $latitude, diff --git a/src/Telegram/InputMediaAnimation.php b/src/Telegram/InputMediaAnimation.php index e72c699..24e5c88 100644 --- a/src/Telegram/InputMediaAnimation.php +++ b/src/Telegram/InputMediaAnimation.php @@ -44,7 +44,7 @@ public static function make( ?array $caption_entities = null, ?int $width = null, ?int $height = null, - ?int $duration = null + ?int $duration = null, ): static { return new static([ 'media' => $media, diff --git a/src/Telegram/InputMediaAudio.php b/src/Telegram/InputMediaAudio.php index 3350be5..9bf8e8c 100644 --- a/src/Telegram/InputMediaAudio.php +++ b/src/Telegram/InputMediaAudio.php @@ -44,7 +44,7 @@ public static function make( ?array $caption_entities = null, ?int $duration = null, ?string $performer = null, - ?string $title = null + ?string $title = null, ): static { return new static([ 'media' => $media, diff --git a/src/Telegram/InputMediaDocument.php b/src/Telegram/InputMediaDocument.php index 4ef023b..4ed9c2d 100644 --- a/src/Telegram/InputMediaDocument.php +++ b/src/Telegram/InputMediaDocument.php @@ -34,7 +34,7 @@ public static function make( ?string $caption = null, ?string $parse_mode = null, ?array $caption_entities = null, - ?bool $disable_content_type_detection = null + ?bool $disable_content_type_detection = null, ): static { return new static([ 'media' => $media, diff --git a/src/Telegram/InputMediaPhoto.php b/src/Telegram/InputMediaPhoto.php index 05d0322..e95db19 100644 --- a/src/Telegram/InputMediaPhoto.php +++ b/src/Telegram/InputMediaPhoto.php @@ -24,7 +24,7 @@ public static function make( string|\Telepath\Types\InputFile $media, ?string $caption = null, ?string $parse_mode = null, - ?array $caption_entities = null + ?array $caption_entities = null, ): static { return new static([ 'media' => $media, diff --git a/src/Telegram/InputMediaVideo.php b/src/Telegram/InputMediaVideo.php index 848e583..1937452 100644 --- a/src/Telegram/InputMediaVideo.php +++ b/src/Telegram/InputMediaVideo.php @@ -49,7 +49,7 @@ public static function make( ?int $width = null, ?int $height = null, ?int $duration = null, - ?bool $supports_streaming = null + ?bool $supports_streaming = null, ): static { return new static([ 'media' => $media, diff --git a/src/Telegram/InputTextMessageContent.php b/src/Telegram/InputTextMessageContent.php index ab0a1e9..e9cd5f9 100644 --- a/src/Telegram/InputTextMessageContent.php +++ b/src/Telegram/InputTextMessageContent.php @@ -36,7 +36,7 @@ public static function make( string $message_text, ?string $parse_mode = null, ?array $entities = null, - ?bool $disable_web_page_preview = null + ?bool $disable_web_page_preview = null, ): static { return new static([ 'message_text' => $message_text, diff --git a/src/Telegram/InputVenueMessageContent.php b/src/Telegram/InputVenueMessageContent.php index 2f7d6b0..95e9394 100644 --- a/src/Telegram/InputVenueMessageContent.php +++ b/src/Telegram/InputVenueMessageContent.php @@ -53,7 +53,7 @@ public static function make( ?string $foursquare_id = null, ?string $foursquare_type = null, ?string $google_place_id = null, - ?string $google_place_type = null + ?string $google_place_type = null, ): static { return new static([ 'latitude' => $latitude, diff --git a/src/Telegram/Invoice.php b/src/Telegram/Invoice.php index c461ee3..894f4d5 100644 --- a/src/Telegram/Invoice.php +++ b/src/Telegram/Invoice.php @@ -40,7 +40,7 @@ public static function make( string $description, string $start_parameter, string $currency, - int $total_amount + int $total_amount, ): static { return new static([ 'title' => $title, diff --git a/src/Telegram/KeyboardButton.php b/src/Telegram/KeyboardButton.php index 9874255..bebe2e7 100644 --- a/src/Telegram/KeyboardButton.php +++ b/src/Telegram/KeyboardButton.php @@ -40,7 +40,7 @@ public static function make( ?bool $request_contact = null, ?bool $request_location = null, ?KeyboardButtonPollType $request_poll = null, - ?WebAppInfo $web_app = null + ?WebAppInfo $web_app = null, ): static { return new static([ 'text' => $text, diff --git a/src/Telegram/Location.php b/src/Telegram/Location.php index 2c0615d..0b23f40 100644 --- a/src/Telegram/Location.php +++ b/src/Telegram/Location.php @@ -45,7 +45,7 @@ public static function make( ?float $horizontal_accuracy = null, ?int $live_period = null, ?int $heading = null, - ?int $proximity_alert_radius = null + ?int $proximity_alert_radius = null, ): static { return new static([ 'longitude' => $longitude, diff --git a/src/Telegram/LoginUrl.php b/src/Telegram/LoginUrl.php index e0a458d..684ba05 100644 --- a/src/Telegram/LoginUrl.php +++ b/src/Telegram/LoginUrl.php @@ -35,7 +35,7 @@ public static function make( string $url, ?string $forward_text = null, ?string $bot_username = null, - ?bool $request_write_access = null + ?bool $request_write_access = null, ): static { return new static([ 'url' => $url, diff --git a/src/Telegram/Message.php b/src/Telegram/Message.php index eb1ed08..9a66469 100644 --- a/src/Telegram/Message.php +++ b/src/Telegram/Message.php @@ -325,7 +325,7 @@ public static function make( ?VideoChatEnded $video_chat_ended = null, ?VideoChatParticipantsInvited $video_chat_participants_invited = null, ?WebAppData $web_app_data = null, - ?InlineKeyboardMarkup $reply_markup = null + ?InlineKeyboardMarkup $reply_markup = null, ): static { return new static([ 'message_id' => $message_id, diff --git a/src/Telegram/MessageEntity.php b/src/Telegram/MessageEntity.php index bc029fc..4137759 100644 --- a/src/Telegram/MessageEntity.php +++ b/src/Telegram/MessageEntity.php @@ -50,7 +50,7 @@ public static function make( ?string $url = null, ?User $user = null, ?string $language = null, - ?string $custom_emoji_id = null + ?string $custom_emoji_id = null, ): static { return new static([ 'type' => $type, diff --git a/src/Telegram/OrderInfo.php b/src/Telegram/OrderInfo.php index db34618..5eee8f2 100644 --- a/src/Telegram/OrderInfo.php +++ b/src/Telegram/OrderInfo.php @@ -35,7 +35,7 @@ public static function make( ?string $name = null, ?string $phone_number = null, ?string $email = null, - ?ShippingAddress $shipping_address = null + ?ShippingAddress $shipping_address = null, ): static { return new static([ 'name' => $name, diff --git a/src/Telegram/PhotoSize.php b/src/Telegram/PhotoSize.php index bce67e0..7f62228 100644 --- a/src/Telegram/PhotoSize.php +++ b/src/Telegram/PhotoSize.php @@ -40,7 +40,7 @@ public static function make( string $file_unique_id, int $width, int $height, - ?int $file_size = null + ?int $file_size = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/Poll.php b/src/Telegram/Poll.php index 790704f..3df2011 100644 --- a/src/Telegram/Poll.php +++ b/src/Telegram/Poll.php @@ -86,7 +86,7 @@ public static function make( ?string $explanation = null, ?array $explanation_entities = null, ?int $open_period = null, - ?int $close_date = null + ?int $close_date = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/PreCheckoutQuery.php b/src/Telegram/PreCheckoutQuery.php index 9cab978..d67161b 100644 --- a/src/Telegram/PreCheckoutQuery.php +++ b/src/Telegram/PreCheckoutQuery.php @@ -50,7 +50,7 @@ public static function make( int $total_amount, string $invoice_payload, ?string $shipping_option_id = null, - ?OrderInfo $order_info = null + ?OrderInfo $order_info = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/ReplyKeyboardMarkup.php b/src/Telegram/ReplyKeyboardMarkup.php index 3236f97..3079deb 100644 --- a/src/Telegram/ReplyKeyboardMarkup.php +++ b/src/Telegram/ReplyKeyboardMarkup.php @@ -43,7 +43,7 @@ public static function make( ?bool $resize_keyboard = null, ?bool $one_time_keyboard = null, ?string $input_field_placeholder = null, - ?bool $selective = null + ?bool $selective = null, ): static { return new static([ 'keyboard' => $keyboard, diff --git a/src/Telegram/ShippingAddress.php b/src/Telegram/ShippingAddress.php index 0d103c2..e7454d0 100644 --- a/src/Telegram/ShippingAddress.php +++ b/src/Telegram/ShippingAddress.php @@ -45,7 +45,7 @@ public static function make( string $city, string $street_line1, string $street_line2, - string $post_code + string $post_code, ): static { return new static([ 'country_code' => $country_code, diff --git a/src/Telegram/ShippingQuery.php b/src/Telegram/ShippingQuery.php index a9c1703..76e7527 100644 --- a/src/Telegram/ShippingQuery.php +++ b/src/Telegram/ShippingQuery.php @@ -35,7 +35,7 @@ public static function make( string $id, User $from, string $invoice_payload, - ShippingAddress $shipping_address + ShippingAddress $shipping_address, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/Sticker.php b/src/Telegram/Sticker.php index 62e2974..c024682 100644 --- a/src/Telegram/Sticker.php +++ b/src/Telegram/Sticker.php @@ -85,7 +85,7 @@ public static function make( ?File $premium_animation = null, ?MaskPosition $mask_position = null, ?string $custom_emoji_id = null, - ?int $file_size = null + ?int $file_size = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/StickerSet.php b/src/Telegram/StickerSet.php index 519f876..3cfabee 100644 --- a/src/Telegram/StickerSet.php +++ b/src/Telegram/StickerSet.php @@ -53,7 +53,7 @@ public static function make( bool $is_animated, bool $is_video, array $stickers, - ?PhotoSize $thumb = null + ?PhotoSize $thumb = null, ): static { return new static([ 'name' => $name, diff --git a/src/Telegram/SuccessfulPayment.php b/src/Telegram/SuccessfulPayment.php index a2c57fa..c0aeb73 100644 --- a/src/Telegram/SuccessfulPayment.php +++ b/src/Telegram/SuccessfulPayment.php @@ -50,7 +50,7 @@ public static function make( string $telegram_payment_charge_id, string $provider_payment_charge_id, ?string $shipping_option_id = null, - ?OrderInfo $order_info = null + ?OrderInfo $order_info = null, ): static { return new static([ 'currency' => $currency, diff --git a/src/Telegram/Update.php b/src/Telegram/Update.php index 336f481..1deae42 100644 --- a/src/Telegram/Update.php +++ b/src/Telegram/Update.php @@ -93,7 +93,7 @@ public static function make( ?PollAnswer $poll_answer = null, ?ChatMemberUpdated $my_chat_member = null, ?ChatMemberUpdated $chat_member = null, - ?ChatJoinRequest $chat_join_request = null + ?ChatJoinRequest $chat_join_request = null, ): static { return new static([ 'update_id' => $update_id, diff --git a/src/Telegram/User.php b/src/Telegram/User.php index 6331397..d716398 100644 --- a/src/Telegram/User.php +++ b/src/Telegram/User.php @@ -70,7 +70,7 @@ public static function make( ?bool $added_to_attachment_menu = null, ?bool $can_join_groups = null, ?bool $can_read_all_group_messages = null, - ?bool $supports_inline_queries = null + ?bool $supports_inline_queries = null, ): static { return new static([ 'id' => $id, diff --git a/src/Telegram/Venue.php b/src/Telegram/Venue.php index ab7a243..8a2f654 100644 --- a/src/Telegram/Venue.php +++ b/src/Telegram/Venue.php @@ -50,7 +50,7 @@ public static function make( ?string $foursquare_id = null, ?string $foursquare_type = null, ?string $google_place_id = null, - ?string $google_place_type = null + ?string $google_place_type = null, ): static { return new static([ 'location' => $location, diff --git a/src/Telegram/Video.php b/src/Telegram/Video.php index c41f013..a5e3f4f 100644 --- a/src/Telegram/Video.php +++ b/src/Telegram/Video.php @@ -60,7 +60,7 @@ public static function make( ?PhotoSize $thumb = null, ?string $file_name = null, ?string $mime_type = null, - ?int $file_size = null + ?int $file_size = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/VideoNote.php b/src/Telegram/VideoNote.php index ccb937a..d1b18b8 100644 --- a/src/Telegram/VideoNote.php +++ b/src/Telegram/VideoNote.php @@ -45,7 +45,7 @@ public static function make( int $length, int $duration, ?PhotoSize $thumb = null, - ?int $file_size = null + ?int $file_size = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/Voice.php b/src/Telegram/Voice.php index f69f6ae..34d6149 100644 --- a/src/Telegram/Voice.php +++ b/src/Telegram/Voice.php @@ -40,7 +40,7 @@ public static function make( string $file_unique_id, int $duration, ?string $mime_type = null, - ?int $file_size = null + ?int $file_size = null, ): static { return new static([ 'file_id' => $file_id, diff --git a/src/Telegram/WebhookInfo.php b/src/Telegram/WebhookInfo.php index a4efd6a..1cc952e 100644 --- a/src/Telegram/WebhookInfo.php +++ b/src/Telegram/WebhookInfo.php @@ -63,7 +63,7 @@ public static function make( ?string $last_error_message = null, ?int $last_synchronization_error_date = null, ?int $max_connections = null, - ?array $allowed_updates = null + ?array $allowed_updates = null, ): static { return new static([ 'url' => $url, diff --git a/src/Types/CastsToTelegramTypes.php b/src/Types/CastsToTelegramTypes.php index d23ce03..1e24189 100644 --- a/src/Types/CastsToTelegramTypes.php +++ b/src/Types/CastsToTelegramTypes.php @@ -27,7 +27,7 @@ protected function objectify(mixed $value, \ReflectionType $types, string $phpDo } elseif (is_array($value) && $type->getName() === 'array' && ! is_null($phpDocType)) { - $class = 'Tii\\Telepath\\Telegram\\' . basename(str_replace('\\', '/', $phpDocType)); + $class = 'Telepath\\Telegram\\' . basename(str_replace('\\', '/', $phpDocType)); if (! class_exists($class)) { continue; diff --git a/telepathy b/telepathy index 4e19d68..02c10ca 100755 Binary files a/telepathy and b/telepathy differ