@@ -24,13 +24,13 @@ discard block |
||
| 24 | 24 | public int $winner_count; |
| 25 | 25 | |
| 26 | 26 | /** Optional. True, if only users who join the chats after the giveaway started should be eligible to win */ |
| 27 | - public null|bool $only_new_members = null; |
|
| 27 | + public null | bool $only_new_members = null; |
|
| 28 | 28 | |
| 29 | 29 | /** Optional. True, if the list of giveaway winners will be visible to everyone */ |
| 30 | - public null|bool $has_public_winners = null; |
|
| 30 | + public null | bool $has_public_winners = null; |
|
| 31 | 31 | |
| 32 | 32 | /** Optional. Description of additional giveaway prize */ |
| 33 | - public null|string $prize_description = null; |
|
| 33 | + public null | string $prize_description = null; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Optional. A list of two-letter ISO 3166-1 alpha-2 country codes indicating the countries from which eligible |
@@ -38,13 +38,13 @@ discard block |
||
| 38 | 38 | * number that was bought on Fragment can always participate in giveaways. |
| 39 | 39 | * @var string[] |
| 40 | 40 | */ |
| 41 | - public null|array $country_codes = null; |
|
| 41 | + public null | array $country_codes = null; |
|
| 42 | 42 | |
| 43 | 43 | /** Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for */ |
| 44 | - public null|int $premium_subscription_month_count = null; |
|
| 44 | + public null | int $premium_subscription_month_count = null; |
|
| 45 | 45 | |
| 46 | 46 | |
| 47 | - public function __construct(stdClass|null $object = null) { |
|
| 47 | + public function __construct(stdClass | null $object = null) { |
|
| 48 | 48 | if ($object != null) { |
| 49 | 49 | parent::__construct($object, self::subs); |
| 50 | 50 | } |
@@ -19,19 +19,19 @@ |
||
| 19 | 19 | * Or User(gift_code) for which the gift code was created |
| 20 | 20 | * Or User(giveaway) that won the prize in the giveaway if any |
| 21 | 21 | */ |
| 22 | - public null|user $user = null; |
|
| 22 | + public null | user $user = null; |
|
| 23 | 23 | |
| 24 | 24 | /** |
| 25 | 25 | * `giveaway` only. Identifier of a message in the chat with the giveaway; the message could have been deleted |
| 26 | 26 | * already. May be 0 if the message isn't sent yet. |
| 27 | 27 | */ |
| 28 | - public null|int $giveaway_message_id = null; |
|
| 28 | + public null | int $giveaway_message_id = null; |
|
| 29 | 29 | |
| 30 | 30 | /** `giveaway` only. Optional. True, if the giveaway was completed, but there was no user to win the prize */ |
| 31 | - public null|bool $is_unclaimed = null; |
|
| 31 | + public null | bool $is_unclaimed = null; |
|
| 32 | 32 | |
| 33 | 33 | |
| 34 | - public function __construct(stdClass|null $object = null) { |
|
| 34 | + public function __construct(stdClass | null $object = null) { |
|
| 35 | 35 | if ($object != null) { |
| 36 | 36 | parent::__construct($object, self::subs); |
| 37 | 37 | } |
@@ -25,28 +25,28 @@ discard block |
||
| 25 | 25 | * Optional. Message with the callback button that originated the query. Note that message content and message |
| 26 | 26 | * date will not be available if the message is too old |
| 27 | 27 | */ |
| 28 | - public null|maybeInaccessibleMessage $message = null; |
|
| 28 | + public null | maybeInaccessibleMessage $message = null; |
|
| 29 | 29 | |
| 30 | 30 | /** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */ |
| 31 | - public null|string $inline_message_id = null; |
|
| 31 | + public null | string $inline_message_id = null; |
|
| 32 | 32 | |
| 33 | 33 | /** |
| 34 | 34 | * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. |
| 35 | 35 | * Useful for high scores in games. |
| 36 | 36 | */ |
| 37 | - public null|string $chat_instance = null; |
|
| 37 | + public null | string $chat_instance = null; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Optional. Data associated with the callback button. Be aware that the message originated the query can contain |
| 41 | 41 | * no callback buttons with this data. |
| 42 | 42 | */ |
| 43 | - public null|string $data = null; |
|
| 43 | + public null | string $data = null; |
|
| 44 | 44 | |
| 45 | 45 | /** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */ |
| 46 | - public null|string $game_short_name = null; |
|
| 46 | + public null | string $game_short_name = null; |
|
| 47 | 47 | |
| 48 | 48 | |
| 49 | - public function __construct(stdClass|null $object = null) { |
|
| 49 | + public function __construct(stdClass | null $object = null) { |
|
| 50 | 50 | if ($object != null) { |
| 51 | 51 | parent::__construct($object, self::subs); |
| 52 | 52 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | * |
| 66 | 66 | * @return responseError|bool |
| 67 | 67 | */ |
| 68 | - public function answer (string|null $text = null, bool|null $show_alert = null, string|null $url = null, int|null $cache_time = null, bool $answer = null): responseError|bool { |
|
| 68 | + public function answer(string | null $text = null, bool | null $show_alert = null, string | null $url = null, int | null $cache_time = null, bool $answer = null): responseError | bool { |
|
| 69 | 69 | return telegram::answerCallbackQuery($this->id, $text, $show_alert, $url, $cache_time, answer: $answer); |
| 70 | 70 | } |
| 71 | 71 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @return message|responseError|bool |
| 79 | 79 | */ |
| 80 | - public function editText (string $text, bool $answer = null): message|responseError|bool { |
|
| 80 | + public function editText(string $text, bool $answer = null): message | responseError | bool { |
|
| 81 | 81 | return telegram::editMessageText($text, answer: $answer); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * |
| 90 | 90 | * @return message|responseError|bool |
| 91 | 91 | */ |
| 92 | - public function editCaption (string $text = '', bool $answer = null): message|responseError|bool { |
|
| 92 | + public function editCaption(string $text = '', bool $answer = null): message | responseError | bool { |
|
| 93 | 93 | return telegram::editMessageCaption(caption: $text, answer: $answer); |
| 94 | 94 | } |
| 95 | 95 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @return message|responseError|bool |
| 103 | 103 | */ |
| 104 | - public function editKeyboard (inlineKeyboardMarkup|stdClass|array $reply_markup = null, bool $answer = null): message|responseError|bool { |
|
| 104 | + public function editKeyboard(inlineKeyboardMarkup | stdClass | array $reply_markup = null, bool $answer = null): message | responseError | bool { |
|
| 105 | 105 | return telegram::editMessageReplyMarkup(reply_markup: $reply_markup, answer: $answer); |
| 106 | 106 | } |
| 107 | 107 | |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * |
| 114 | 114 | * @return message|responseError|bool |
| 115 | 115 | */ |
| 116 | - public function editMedia (inputMedia|array|stdClass $media, bool $answer = null): message|responseError|bool { |
|
| 116 | + public function editMedia(inputMedia | array | stdClass $media, bool $answer = null): message | responseError | bool { |
|
| 117 | 117 | return telegram::editMessageMedia($media, answer: $answer); |
| 118 | 118 | } |
| 119 | 119 | } |
@@ -23,10 +23,10 @@ discard block |
||
| 23 | 23 | public int $message_id; |
| 24 | 24 | |
| 25 | 25 | /** Optional. The user that changed the reaction, if the user isn't anonymous */ |
| 26 | - public null|user $user = null; |
|
| 26 | + public null | user $user = null; |
|
| 27 | 27 | |
| 28 | 28 | /** Optional. The chat on behalf of which the reaction was changed, if the user is anonymous */ |
| 29 | - public null|chat $actor_chat = null; |
|
| 29 | + public null | chat $actor_chat = null; |
|
| 30 | 30 | |
| 31 | 31 | /** Date of the change in Unix time */ |
| 32 | 32 | public int $date; |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | public array $new_reaction; |
| 45 | 45 | |
| 46 | 46 | |
| 47 | - public function __construct(stdClass|null $object = null) { |
|
| 47 | + public function __construct(stdClass | null $object = null) { |
|
| 48 | 48 | if ($object != null) { |
| 49 | 49 | parent::__construct($object, self::subs); |
| 50 | 50 | } |
@@ -15,13 +15,13 @@ |
||
| 15 | 15 | public int $winner_count; |
| 16 | 16 | |
| 17 | 17 | /** Optional. Number of undistributed prizes */ |
| 18 | - public null|int $unclaimed_prize_count = null; |
|
| 18 | + public null | int $unclaimed_prize_count = null; |
|
| 19 | 19 | |
| 20 | 20 | /** Optional. Message with the giveaway that was completed, if it wasn't deleted */ |
| 21 | - public null|message $giveaway_message = null; |
|
| 21 | + public null | message $giveaway_message = null; |
|
| 22 | 22 | |
| 23 | 23 | |
| 24 | - public function __construct(stdClass|null $object = null) { |
|
| 24 | + public function __construct(stdClass | null $object = null) { |
|
| 25 | 25 | if ($object != null) { |
| 26 | 26 | parent::__construct($object, self::subs); |
| 27 | 27 | } |
@@ -30,25 +30,25 @@ |
||
| 30 | 30 | public array $winners; |
| 31 | 31 | |
| 32 | 32 | /** Optional. The number of other chats the user had to join in order to be eligible for the giveaway */ |
| 33 | - public null|int $additional_chat_count = null; |
|
| 33 | + public null | int $additional_chat_count = null; |
|
| 34 | 34 | |
| 35 | 35 | /** Optional. The number of months the Telegram Premium subscription won from the giveaway will be active for */ |
| 36 | - public null|int $premium_subscription_month_count = null; |
|
| 36 | + public null | int $premium_subscription_month_count = null; |
|
| 37 | 37 | |
| 38 | 38 | /** Optional. Number of undistributed prizes */ |
| 39 | - public null|int $unclaimed_prize_count = null; |
|
| 39 | + public null | int $unclaimed_prize_count = null; |
|
| 40 | 40 | |
| 41 | 41 | /** Optional. True, if only users who had joined the chats after the giveaway started were eligible to win */ |
| 42 | - public null|bool $only_new_members = null; |
|
| 42 | + public null | bool $only_new_members = null; |
|
| 43 | 43 | |
| 44 | 44 | /** Optional. True, if the giveaway was canceled because the payment for it was refunded */ |
| 45 | - public null|bool $was_refunded = null; |
|
| 45 | + public null | bool $was_refunded = null; |
|
| 46 | 46 | |
| 47 | 47 | /** Optional. Description of additional giveaway prize */ |
| 48 | - public null|string $prize_description = null; |
|
| 48 | + public null | string $prize_description = null; |
|
| 49 | 49 | |
| 50 | 50 | |
| 51 | - public function __construct(stdClass|null $object = null) { |
|
| 51 | + public function __construct(stdClass | null $object = null) { |
|
| 52 | 52 | if ($object != null) { |
| 53 | 53 | parent::__construct($object, self::subs); |
| 54 | 54 | } |
@@ -50,90 +50,90 @@ |
||
| 50 | 50 | public int $update_id; |
| 51 | 51 | |
| 52 | 52 | /** Optional. New incoming message of any kind - text, photo, sticker, etc. */ |
| 53 | - public null|message $message = null; |
|
| 53 | + public null | message $message = null; |
|
| 54 | 54 | |
| 55 | 55 | /** Optional. New version of a message that is known to the bot and was edited */ |
| 56 | - public null|message $edited_message = null; |
|
| 56 | + public null | message $edited_message = null; |
|
| 57 | 57 | |
| 58 | 58 | /** Optional. New incoming channel post of any kind - text, photo, sticker, etc. */ |
| 59 | - public null|message $channel_post = null; |
|
| 59 | + public null | message $channel_post = null; |
|
| 60 | 60 | |
| 61 | 61 | /** Optional. New version of a channel post that is known to the bot and was edited */ |
| 62 | - public null|message $edited_channel_post = null; |
|
| 62 | + public null | message $edited_channel_post = null; |
|
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | 65 | * Optional. A reaction to a message was changed by a user. The bot must be an administrator in the chat and must |
| 66 | 66 | * explicitly specify "message_reaction" in the list of allowed_updates to receive these updates. The update |
| 67 | 67 | * isn't received for reactions set by bots. |
| 68 | 68 | */ |
| 69 | - public null|messageReactionUpdated $message_reaction = null; |
|
| 69 | + public null | messageReactionUpdated $message_reaction = null; |
|
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | 72 | * Optional. Reactions to a message with anonymous reactions were changed. The bot must be an administrator in |
| 73 | 73 | * the chat and must explicitly specify "message_reaction_count" in the list of allowed_updates to receive these |
| 74 | 74 | * updates. |
| 75 | 75 | */ |
| 76 | - public null|messageReactionCountUpdated $message_reaction_count = null; |
|
| 76 | + public null | messageReactionCountUpdated $message_reaction_count = null; |
|
| 77 | 77 | |
| 78 | 78 | /** Optional. New incoming inline query */ |
| 79 | - public null|inlineQuery $inline_query = null; |
|
| 79 | + public null | inlineQuery $inline_query = null; |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see |
| 83 | 83 | * our documentation on the feedback collecting for details on how to enable these updates for your bot. |
| 84 | 84 | */ |
| 85 | - public null|chosenInlineResult $chosen_inline_result = null; |
|
| 85 | + public null | chosenInlineResult $chosen_inline_result = null; |
|
| 86 | 86 | |
| 87 | 87 | /** Optional. New incoming callback query */ |
| 88 | - public null|callbackQuery $callback_query = null; |
|
| 88 | + public null | callbackQuery $callback_query = null; |
|
| 89 | 89 | |
| 90 | 90 | /** Optional. New incoming shipping query. Only for invoices with flexible price */ |
| 91 | - public null|shippingQuery $shipping_query = null; |
|
| 91 | + public null | shippingQuery $shipping_query = null; |
|
| 92 | 92 | |
| 93 | 93 | /** Optional. New incoming pre-checkout query. Contains full information about checkout */ |
| 94 | - public null|preCheckoutQuery $pre_checkout_query = null; |
|
| 94 | + public null | preCheckoutQuery $pre_checkout_query = null; |
|
| 95 | 95 | |
| 96 | 96 | /** Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot */ |
| 97 | - public null|poll $poll = null; |
|
| 97 | + public null | poll $poll = null; |
|
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were |
| 101 | 101 | * sent by the bot itself. |
| 102 | 102 | */ |
| 103 | - public null|pollAnswer $poll_answer = null; |
|
| 103 | + public null | pollAnswer $poll_answer = null; |
|
| 104 | 104 | |
| 105 | 105 | /** |
| 106 | 106 | * Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only |
| 107 | 107 | * when the bot is blocked or unblocked by the user. |
| 108 | 108 | */ |
| 109 | - public null|chatMemberUpdated $my_chat_member = null; |
|
| 109 | + public null | chatMemberUpdated $my_chat_member = null; |
|
| 110 | 110 | |
| 111 | 111 | /** |
| 112 | 112 | * Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must |
| 113 | 113 | * explicitly specify “chat_member” in the list of allowed_updates to receive these updates. |
| 114 | 114 | */ |
| 115 | - public null|chatMemberUpdated $chat_member = null; |
|
| 115 | + public null | chatMemberUpdated $chat_member = null; |
|
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right |
| 119 | 119 | * in the chat to receive these updates. |
| 120 | 120 | */ |
| 121 | - public null|chatJoinRequest $chat_join_request = null; |
|
| 121 | + public null | chatJoinRequest $chat_join_request = null; |
|
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | 124 | * Optional. A chat boost was added or changed. The bot must be an administrator in the chat to receive these |
| 125 | 125 | * updates. |
| 126 | 126 | */ |
| 127 | - public null|chatBoostUpdated $chat_boost = null; |
|
| 127 | + public null | chatBoostUpdated $chat_boost = null; |
|
| 128 | 128 | |
| 129 | 129 | /** |
| 130 | 130 | * Optional. A boost was removed from a chat. The bot must be an administrator in the chat to receive these |
| 131 | 131 | * updates. |
| 132 | 132 | */ |
| 133 | - public null|chatBoostRemoved $removed_chat_boost = null; |
|
| 133 | + public null | chatBoostRemoved $removed_chat_boost = null; |
|
| 134 | 134 | |
| 135 | 135 | |
| 136 | - public function __construct(stdClass|null $object = null) { |
|
| 136 | + public function __construct(stdClass | null $object = null) { |
|
| 137 | 137 | if ($object != null) { |
| 138 | 138 | parent::__construct($object, self::subs); |
| 139 | 139 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | /** Keep all properties which has sub properties */ |
| 12 | 12 | private const subs = []; |
| 13 | 13 | |
| 14 | - public function __construct(stdClass|null $object = null) { |
|
| 14 | + public function __construct(stdClass | null $object = null) { |
|
| 15 | 15 | if ($object != null) { |
| 16 | 16 | parent::__construct($object, self::subs); |
| 17 | 17 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public bool $from_attachment_menu; |
| 27 | 27 | |
| 28 | 28 | |
| 29 | - public function __construct(stdClass|null $object = null) { |
|
| 29 | + public function __construct(stdClass | null $object = null) { |
|
| 30 | 30 | if ($object != null) { |
| 31 | 31 | parent::__construct($object, self::subs); |
| 32 | 32 | } |