Skip to content

Commit

Permalink
update: sync Request Facade to Bot API 7.9
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirHkrg committed Aug 14, 2024
1 parent 0c10234 commit e2fe78c
Showing 1 changed file with 33 additions and 31 deletions.
64 changes: 33 additions & 31 deletions src/Support/Facades/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@
* @method static getMe()
* @method static logOut()
* @method static close()
* @method static sendMessage($chat_id, $text, $parse_mode = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $link_preview_options = null, $entities = null, $business_connection_id = null): bool|array|null
* @method static sendMessage($chat_id, $text, $parse_mode = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $link_preview_options = null, $entities = null, $business_connection_id = null, $message_effect_id = null)
* @method static forwardMessage($chat_id, $from_chat_id, $message_id, $message_thread_id = null, $protect_content = null, $disable_notification = null)
* @method static forwardMessages($chat_id, $from_chat_id, $message_ids, $message_thread_id = null, $protect_content = null, $disable_notification = null)
* @method static copyMessage($chat_id, $from_chat_id, $message_id, $parse_mode = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption = null, $caption_entities = null)
* @method static copyMessage($chat_id, $from_chat_id, $message_id, $parse_mode = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption = null, $caption_entities = null, $show_caption_above_media = null)
* @method static copyMessages($chat_id, $from_chat_id, $message_ids, $message_thread_id = null, $protect_content = null, $disable_notification = null, $remove_caption = null)
* @method static sendPhoto($chat_id, $photo, $caption = null, $parse_mode = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $has_spoiler = null, $caption_entities = null, $business_connection_id = null)
* @method static sendAudio($chat_id, $audio, $caption = null, $parse_mode = null, $message_thread_id = null, $duration = null, $performer = null, $title = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $business_connection_id = null)
* @method static sendDocument($chat_id, $document, $caption = null, $parse_mode = null, $message_thread_id = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $business_connection_id = null, $disable_content_type_detection = null)
* @method static sendVideo($chat_id, $video, $caption = null, $parse_mode = null, $message_thread_id = null, $duration = null, $width = null, $height = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $has_spoiler = null, $supports_streaming = null, $business_connection_id = null)
* @method static sendAnimation($chat_id, $animation, $caption = null, $parse_mode = null, $message_thread_id = null, $duration = null, $width = null, $height = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $has_spoiler = null, $business_connection_id = null)
* @method static sendVoice($chat_id, $voice, $caption = null, $parse_mode = null, $message_thread_id = null, $duration = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $business_connection_id = null)
* @method static sendVideoNote($chat_id, $video_note, $message_thread_id = null, $duration = null, $length = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null)
* @method static sendPaidMedia($chat_id, $star_count, $media, $caption = null, $pars_mode = null, $caption_entities = null, $show_caption_above_media = null, $disable_notification = null, $protect_content = null, $reply_parameters = null, $reply_markup = null)
* @method static sendMediaGroup($chat_id, $media, $message_thread_id = null, $reply_parameters = null, $protect_content = null, $disable_notification = null, $business_connection_id = null)
* @method static sendLocation($chat_id, $latitude, $longitude, $horizontal_accuracy = null, $live_period = null, $heading = null, $proximity_alert_radius = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null)
* @method static sendVenue($chat_id, $latitude, $longitude, $title, $address, $foursquare_id = null, $foursquare_type = null, $google_place_id = null, $google_place_type = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null)
* @method static sendContact($chat_id, $phone_number, $first_name, $last_name = null, $vcard = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null)
* @method static sendPoll($chat_id, $question, $options, $is_anonymous = null, $type = null, $allows_multiple_answers = null, $correct_option_id = null, $explanation = null, $explanation_parse_mode = null, $explanation_entities = null, $open_period = null, $close_date = null, $is_closed = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null)
* @method static sendDice($chat_id, $emoji = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null)
* @method static sendPhoto($chat_id, $photo, $caption = null, $parse_mode = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $has_spoiler = null, $caption_entities = null, $show_caption_above_media = null, $message_effect_id = null, $business_connection_id = null)
* @method static sendAudio($chat_id, $audio, $caption = null, $parse_mode = null, $message_thread_id = null, $duration = null, $performer = null, $title = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendDocument($chat_id, $document, $caption = null, $parse_mode = null, $message_thread_id = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $business_connection_id = null, $disable_content_type_detection = null, $message_effect_id = null)
* @method static sendVideo($chat_id, $video, $caption = null, $parse_mode = null, $message_thread_id = null, $duration = null, $width = null, $height = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $show_caption_above_media = null, $has_spoiler = null, $supports_streaming = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendAnimation($chat_id, $animation, $caption = null, $parse_mode = null, $message_thread_id = null, $duration = null, $width = null, $height = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $show_caption_above_media = null, $has_spoiler = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendVoice($chat_id, $voice, $caption = null, $parse_mode = null, $message_thread_id = null, $duration = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $caption_entities = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendVideoNote($chat_id, $video_note, $message_thread_id = null, $duration = null, $length = null, $thumbnail = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendPaidMedia($chat_id, $star_count, $media, $caption = null, $pars_mode = null, $caption_entities = null, $show_caption_above_media = null, $disable_notification = null, $protect_content = null, $reply_parameters = null, $reply_markup = null, $business_connection_id = null)
* @method static sendMediaGroup($chat_id, $media, $message_thread_id = null, $reply_parameters = null, $protect_content = null, $disable_notification = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendLocation($chat_id, $latitude, $longitude, $horizontal_accuracy = null, $live_period = null, $heading = null, $proximity_alert_radius = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendVenue($chat_id, $latitude, $longitude, $title, $address, $foursquare_id = null, $foursquare_type = null, $google_place_id = null, $google_place_type = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendContact($chat_id, $phone_number, $first_name, $last_name = null, $vcard = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendPoll($chat_id, $question, $options, $is_anonymous = null, $type = null, $allows_multiple_answers = null, $question_parse_mode = null, $question_entities = null, $correct_option_id = null, $explanation = null, $explanation_parse_mode = null, $explanation_entities = null, $open_period = null, $close_date = null, $is_closed = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendDice($chat_id, $emoji = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null, $message_effect_id = null)
* @method static sendChatAction($chat_id, $action, $message_thread_id = null, $business_connection_id = null)
* @method static setMessageReaction($chat_id, $message_id, $reaction = null, $is_big = null)
* @method static getUserProfilePhotos($user_id, $offset = null, $limit = null)
Expand All @@ -54,8 +54,8 @@
* @method static deleteChatPhoto($chat_id)
* @method static setChatTitle($chat_id, $title)
* @method static setChatDescription($chat_id, $description)
* @method static pinChatMessage($chat_id, $message_id, $disable_notification = null)
* @method static unpinChatMessage($chat_id, $message_id)
* @method static pinChatMessage($chat_id, $message_id, $disable_notification = null, $business_connection_id = null)
* @method static unpinChatMessage($chat_id, $message_id, $business_connection_id = null)
* @method static unpinAllChatMessages($chat_id)
* @method static leaveChat($chat_id)
* @method static getChat($chat_id)
Expand Down Expand Up @@ -93,16 +93,16 @@
* @method static getChatMenuButton($chat_id = null)
* @method static setMyDefaultAdministratorRights($rights = null, $for_channels = null)
* @method static getMyDefaultAdministratorRights($for_channels = null)
* @method static editMessageText($text, $chat_id = null, $message_id = null, $inline_message_id = null, $parse_mode = null, $entities = null, $link_preview_options = null, $reply_markup = null)
* @method static editMessageCaption($chat_id = null, $message_id = null, $inline_message_id = null, $caption = null, $parse_mode = null, $caption_entities = null, $reply_markup = null)
* @method static editMessageMedia($media, $chat_id = null, $message_id = null, $inline_message_id = null, $reply_markup = null)
* @method static editMessageLiveLocation($latitude, $longitude, $chat_id = null, $message_id = null, $inline_message_id = null, $horizontal_accuracy = null, $heading = null, $proximity_alert_radius = null, $reply_markup = null)
* @method static stopMessageLiveLocation($chat_id = null, $message_id = null, $inline_message_id = null, $reply_markup = null)
* @method static editMessageReplyMarkup($chat_id = null, $message_id = null, $inline_message_id = null, $reply_markup = null)
* @method static stopPoll($chat_id, $message_id, $reply_markup = null)
* @method static editMessageText($text, $chat_id = null, $message_id = null, $inline_message_id = null, $parse_mode = null, $entities = null, $link_preview_options = null, $reply_markup = null, $business_connection_id = null)
* @method static editMessageCaption($chat_id = null, $message_id = null, $inline_message_id = null, $caption = null, $parse_mode = null, $caption_entities = null, $reply_markup = null, $show_caption_above_media = null, $business_connection_id = null)
* @method static editMessageMedia($media, $chat_id = null, $message_id = null, $inline_message_id = null, $reply_markup = null, $business_connection_id = null)
* @method static editMessageLiveLocation($latitude, $longitude, $chat_id = null, $message_id = null, $inline_message_id = null, $horizontal_accuracy = null, $heading = null, $proximity_alert_radius = null, $reply_markup = null, $live_period = null, $business_connection_id = null)
* @method static stopMessageLiveLocation($chat_id = null, $message_id = null, $inline_message_id = null, $reply_markup = null, $business_connection_id = null)
* @method static editMessageReplyMarkup($chat_id = null, $message_id = null, $inline_message_id = null, $reply_markup = null, $business_connection_id = null)
* @method static stopPoll($chat_id, $message_id, $reply_markup = null, $business_connection_id = null)
* @method static deleteMessage($chat_id, $message_id)
* @method static deleteMessages($chat_id, $message_ids)
* @method static sendSticker($chat_id, $sticker, $emoji = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null)
* @method static sendSticker($chat_id, $sticker, $emoji = null, $message_thread_id = null, $reply_parameters = null, $reply_markup = null, $protect_content = null, $disable_notification = null, $business_connection_id = null, $message_effect_id = null)
* @method static getStickerSet($name)
* @method static getCustomEmojiStickers($custom_emoji_ids)
* @method static uploadStickerFile($user_id, $sticker, $sticker_format)
Expand All @@ -120,17 +120,19 @@
* @method static deleteStickerSet($name)
* @method static answerInlineQuery($inline_query_id, $results, $cache_time = null, $is_personal = null, $next_offset = null, $button = null)
* @method static answerWebAppQuery($web_app_query_id, $result)
* @method static sendInvoice($chat_id, $title, $description, $payload, $provider_token, $currency, $price, $message_thread_id = null, $max_tip_amount = null, $suggested_tip_amounts = null, $start_parameter = null, $provider_data = null, $photo_url = null, $photo_size = null, $photo_width = null, $photo_height = null, $need_name = null, $need_phone_number = null, $need_email = null, $need_shipping_address = null, $send_phone_number_to_provider = null, $send_email_to_provider = null, $is_flexible = null, $disable_notification = null, $protect_content = null, $reply_parameters = null, $reply_markup = null)
* @method static createInvoiceLink($title, $description, $payload, $provider_token, $currency, $price, $max_tip_amount = null, $suggested_tip_amounts = null, $start_parameter = null, $provider_data = null, $photo_url = null, $photo_size = null, $photo_width = null, $photo_height = null, $need_name = null, $need_phone_number = null, $need_email = null, $need_shipping_address = null, $send_phone_number_to_provider = null, $send_email_to_provider = null, $is_flexible = null)
* @method static sendInvoice($chat_id, $title, $description, $payload, $provider_token, $currency, $price, $message_thread_id = null, $max_tip_amount = null, $suggested_tip_amounts = null, $start_parameter = null, $provider_data = null, $photo_url = null, $photo_size = null, $photo_width = null, $photo_height = null, $need_name = null, $need_phone_number = null, $need_email = null, $need_shipping_address = null, $send_phone_number_to_provider = null, $send_email_to_provider = null, $is_flexible = null, $disable_notification = null, $protect_content = null, $reply_parameters = null, $reply_markup = null, $message_effect_id = null)
* @method static createInvoiceLink($title, $description, $payload, $provider_token, $currency, $price, $max_tip_amount = null, $suggested_tip_amounts = null, $provider_data = null, $photo_url = null, $photo_size = null, $photo_width = null, $photo_height = null, $need_name = null, $need_phone_number = null, $need_email = null, $need_shipping_address = null, $send_phone_number_to_provider = null, $send_email_to_provider = null, $is_flexible = null)
* @method static answerShippingQuery($shipping_query_id, $ok, $shipping_options = null, $error_message = null)
* @method static answerPreCheckoutQuery($pre_checkout_query_id, $ok, $error_message = null)
* @method static getStarTransactions($offset = null, $limit = null))
* @method static getStarTransactions($offset = null, $limit = null)
* @method static refundStarPayment($user_id, $telegram_payment_charge_id)
* @method static setPassportDataErrors($user_id, $errors)
* @method static sendGame($chat_id, $game_short_name, $message_thread_id = null, $disable_notification = null, $protect_content = null, $reply_parameters = null, $reply_markup = null, $business_connection_id = null)
* @method static sendGame($chat_id, $game_short_name, $message_thread_id = null, $disable_notification = null, $protect_content = null, $reply_parameters = null, $reply_markup = null, $business_connection_id = null, $message_effect_id = null)
* @method static setGameScore($user_id, $score, $chat_id = null, $message_id = null, $inline_message_id = null, $disable_edit_message = null, $force = null)
* @method static getGameHighScores($user_id, $chat_id = null, $message_id = null, $inline_message_id = null)
*/
* @method static createChatSubscriptionInviteLink($chat_id, $subscription_period, $subscription_price, $name = null)
* @method static editChatSubscriptionInviteLink($chat_id, $invite_link, $name = null)
*/
class Request extends Facade
{
/**
Expand Down

0 comments on commit e2fe78c

Please sign in to comment.