@@ -31,23 +31,23 @@ discard block |
||
| 31 | 31 | * Optional. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used |
| 32 | 32 | * to mention a user by their ID without using a username, if this is allowed by their privacy settings. |
| 33 | 33 | */ |
| 34 | - public null|string $url = null; |
|
| 34 | + public null | string $url = null; |
|
| 35 | 35 | |
| 36 | 36 | /** Optional. Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes */ |
| 37 | - public null|string $callback_data = null; |
|
| 37 | + public null | string $callback_data = null; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Optional. Description of the Web App that will be launched when the user presses the button. The Web App will |
| 41 | 41 | * be able to send an arbitrary message on behalf of the user using the method answerWebAppQuery. Available only |
| 42 | 42 | * in private chats between a user and the bot. |
| 43 | 43 | */ |
| 44 | - public null|webAppInfo $web_app = null; |
|
| 44 | + public null | webAppInfo $web_app = null; |
|
| 45 | 45 | |
| 46 | 46 | /** |
| 47 | 47 | * Optional. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the Telegram |
| 48 | 48 | * Login Widget. |
| 49 | 49 | */ |
| 50 | - public null|loginUrl $login_url = null; |
|
| 50 | + public null | loginUrl $login_url = null; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * Optional. If set, pressing the button will prompt the user to select one of their chats, open that chat and |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | * actions - in this case the user will be automatically returned to the chat they switched from, skipping the |
| 58 | 58 | * chat selection screen. |
| 59 | 59 | */ |
| 60 | - public null|string $switch_inline_query = null; |
|
| 60 | + public null | string $switch_inline_query = null; |
|
| 61 | 61 | |
| 62 | 62 | /** |
| 63 | 63 | * Optional. If set, pressing the button will insert the bot's username and the specified inline query in the |
@@ -65,22 +65,22 @@ discard block |
||
| 65 | 65 | * quick way for the user to open your bot in inline mode in the same chat - good for selecting something from |
| 66 | 66 | * multiple options. |
| 67 | 67 | */ |
| 68 | - public null|string $switch_inline_query_current_chat = null; |
|
| 68 | + public null | string $switch_inline_query_current_chat = null; |
|
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * Optional. Description of the game that will be launched when the user presses the button.NOTE: This type of |
| 72 | 72 | * button must always be the first button in the first row. |
| 73 | 73 | */ |
| 74 | - public null|callbackGame $callback_game = null; |
|
| 74 | + public null | callbackGame $callback_game = null; |
|
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * Optional. Specify True, to send a Pay button.NOTE: This type of button must always be the first button in the |
| 78 | 78 | * first row and can only be used in invoice messages. |
| 79 | 79 | */ |
| 80 | - public null|bool $pay = null; |
|
| 80 | + public null | bool $pay = null; |
|
| 81 | 81 | |
| 82 | 82 | |
| 83 | - public function __construct(stdClass|null $object = null) { |
|
| 83 | + public function __construct(stdClass | null $object = null) { |
|
| 84 | 84 | if ($object != null) { |
| 85 | 85 | parent::__construct($object, self::subs); |
| 86 | 86 | } |
@@ -21,10 +21,10 @@ |
||
| 21 | 21 | public int $icon_color; |
| 22 | 22 | |
| 23 | 23 | /** Optional. Unique identifier of the custom emoji shown as the topic icon */ |
| 24 | - public null|string $icon_custom_emoji_id = null; |
|
| 24 | + public null | string $icon_custom_emoji_id = null; |
|
| 25 | 25 | |
| 26 | 26 | |
| 27 | - public function __construct(stdClass|null $object = null) { |
|
| 27 | + public function __construct(stdClass | null $object = null) { |
|
| 28 | 28 | if ($object != null) { |
| 29 | 29 | parent::__construct($object, self::subs); |
| 30 | 30 | } |
@@ -34,22 +34,22 @@ |
||
| 34 | 34 | public int $length; |
| 35 | 35 | |
| 36 | 36 | /** Optional. For “text_link” only, URL that will be opened after user taps on the text */ |
| 37 | - public null|string $url = null; |
|
| 37 | + public null | string $url = null; |
|
| 38 | 38 | |
| 39 | 39 | /** Optional. For “text_mention” only, the mentioned user */ |
| 40 | - public null|user $user = null; |
|
| 40 | + public null | user $user = null; |
|
| 41 | 41 | |
| 42 | 42 | /** Optional. For “pre” only, the programming language of the entity text */ |
| 43 | - public null|string $language = null; |
|
| 43 | + public null | string $language = null; |
|
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Optional. For “custom_emoji” only, unique identifier of the custom emoji. Use getCustomEmojiStickers to get |
| 47 | 47 | * full information about the sticker |
| 48 | 48 | */ |
| 49 | - public null|string $custom_emoji_id = null; |
|
| 49 | + public null | string $custom_emoji_id = null; |
|
| 50 | 50 | |
| 51 | 51 | |
| 52 | - public function __construct(stdClass|null $object = null) { |
|
| 52 | + public function __construct(stdClass | null $object = null) { |
|
| 53 | 53 | if ($object != null) { |
| 54 | 54 | parent::__construct($object, self::subs); |
| 55 | 55 | } |
@@ -25,17 +25,17 @@ discard block |
||
| 25 | 25 | public int $duration; |
| 26 | 26 | |
| 27 | 27 | /** Optional. MIME type of the file as defined by sender */ |
| 28 | - public null|string $mime_type = null; |
|
| 28 | + public null | string $mime_type = null; |
|
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | 31 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
| 32 | 32 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
| 33 | 33 | * integer or double-precision float type are safe for storing this value. |
| 34 | 34 | */ |
| 35 | - public null|int $file_size = null; |
|
| 35 | + public null | int $file_size = null; |
|
| 36 | 36 | |
| 37 | 37 | |
| 38 | - public function __construct(stdClass|null $object = null) { |
|
| 38 | + public function __construct(stdClass | null $object = null) { |
|
| 39 | 39 | if ($object != null) { |
| 40 | 40 | parent::__construct($object, self::subs); |
| 41 | 41 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @return bool|string string will be returned when destination doesn't set |
| 58 | 58 | */ |
| 59 | - public function download(string|null $destination = null): bool|string { |
|
| 60 | - return telegram::downloadFile($destination ?? 'unknown.ogg',$this->file_id); |
|
| 59 | + public function download(string | null $destination = null): bool | string { |
|
| 60 | + return telegram::downloadFile($destination ?? 'unknown.ogg', $this->file_id); |
|
| 61 | 61 | } |
| 62 | 62 | } |
@@ -55,19 +55,19 @@ |
||
| 55 | 55 | public bool $can_invite_users; |
| 56 | 56 | |
| 57 | 57 | /** Optional. True, if the administrator can post in the channel; channels only */ |
| 58 | - public null|bool $can_post_messages = null; |
|
| 58 | + public null | bool $can_post_messages = null; |
|
| 59 | 59 | |
| 60 | 60 | /** Optional. True, if the administrator can edit messages of other users and can pin messages; channels only */ |
| 61 | - public null|bool $can_edit_messages = null; |
|
| 61 | + public null | bool $can_edit_messages = null; |
|
| 62 | 62 | |
| 63 | 63 | /** Optional. True, if the user is allowed to pin messages; groups and supergroups only */ |
| 64 | - public null|bool $can_pin_messages = null; |
|
| 64 | + public null | bool $can_pin_messages = null; |
|
| 65 | 65 | |
| 66 | 66 | /** Optional. True, if the user is allowed to create, rename, close, and reopen forum topics; supergroups only */ |
| 67 | - public null|bool $can_manage_topics = null; |
|
| 67 | + public null | bool $can_manage_topics = null; |
|
| 68 | 68 | |
| 69 | 69 | |
| 70 | - public function __construct(stdClass|null $object = null) { |
|
| 70 | + public function __construct(stdClass | null $object = null) { |
|
| 71 | 71 | if ($object != null) { |
| 72 | 72 | parent::__construct($object, self::subs); |
| 73 | 73 | } |
@@ -19,37 +19,37 @@ |
||
| 19 | 19 | public int $id; |
| 20 | 20 | |
| 21 | 21 | /** True, if this user is a bot */ |
| 22 | - public null|bool $is_bot = null; |
|
| 22 | + public null | bool $is_bot = null; |
|
| 23 | 23 | |
| 24 | 24 | /** User's or bot's first name */ |
| 25 | - public null|string $first_name = null; |
|
| 25 | + public null | string $first_name = null; |
|
| 26 | 26 | |
| 27 | 27 | /** Optional. User's or bot's last name */ |
| 28 | - public null|string $last_name = null; |
|
| 28 | + public null | string $last_name = null; |
|
| 29 | 29 | |
| 30 | 30 | /** Optional. User's or bot's username */ |
| 31 | - public null|string $username = null; |
|
| 31 | + public null | string $username = null; |
|
| 32 | 32 | |
| 33 | 33 | /** Optional. IETF language tag of the user's language */ |
| 34 | - public null|string $language_code = null; |
|
| 34 | + public null | string $language_code = null; |
|
| 35 | 35 | |
| 36 | 36 | /** Optional. True, if this user is a Telegram Premium user */ |
| 37 | - public null|bool $is_premium = null; |
|
| 37 | + public null | bool $is_premium = null; |
|
| 38 | 38 | |
| 39 | 39 | /** Optional. True, if this user added the bot to the attachment menu */ |
| 40 | - public null|bool $added_to_attachment_menu = null; |
|
| 40 | + public null | bool $added_to_attachment_menu = null; |
|
| 41 | 41 | |
| 42 | 42 | /** Optional. True, if the bot can be invited to groups. Returned only in getMe. */ |
| 43 | - public null|bool $can_join_groups = null; |
|
| 43 | + public null | bool $can_join_groups = null; |
|
| 44 | 44 | |
| 45 | 45 | /** Optional. True, if privacy mode is disabled for the bot. Returned only in getMe. */ |
| 46 | - public null|bool $can_read_all_group_messages = null; |
|
| 46 | + public null | bool $can_read_all_group_messages = null; |
|
| 47 | 47 | |
| 48 | 48 | /** Optional. True, if the bot supports inline queries. Returned only in getMe. */ |
| 49 | - public null|bool $supports_inline_queries = null; |
|
| 49 | + public null | bool $supports_inline_queries = null; |
|
| 50 | 50 | |
| 51 | 51 | |
| 52 | - public function __construct(stdClass|null $object = null) { |
|
| 52 | + public function __construct(stdClass | null $object = null) { |
|
| 53 | 53 | if ($object != null) { |
| 54 | 54 | parent::__construct($object, self::subs); |
| 55 | 55 | } |
@@ -46,16 +46,16 @@ discard block |
||
| 46 | 46 | * `translation_file` and `translation_files` could be `passport` and `driver_license` and `identity_card` and |
| 47 | 47 | * `internal_passport` and `utility_bill` and `bank_statement` and `rental_agreement` and `passport_registration` and `temporary_registration` |
| 48 | 48 | */ |
| 49 | - public null|string $type = null; |
|
| 49 | + public null | string $type = null; |
|
| 50 | 50 | |
| 51 | 51 | /** `data` only. Name of the data field which has the error */ |
| 52 | - public null|string $field_name = null; |
|
| 52 | + public null | string $field_name = null; |
|
| 53 | 53 | |
| 54 | 54 | /** `data` only. Base64-encoded data hash */ |
| 55 | - public null|string $data_hash = null; |
|
| 55 | + public null | string $data_hash = null; |
|
| 56 | 56 | |
| 57 | 57 | /** Error message */ |
| 58 | - public null|string $message = null; |
|
| 58 | + public null | string $message = null; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * `front_side` and `reverse_side` and `selfie` and `file` and `translation_file` only. Base64-encoded file hash |
@@ -64,19 +64,19 @@ discard block |
||
| 64 | 64 | * |
| 65 | 65 | * `reverse_side` : reverse side of doc |
| 66 | 66 | */ |
| 67 | - public null|string $file_hash = null; |
|
| 67 | + public null | string $file_hash = null; |
|
| 68 | 68 | |
| 69 | 69 | /** |
| 70 | 70 | * `files` and `translation_files` only. List of base64-encoded file hashes |
| 71 | 71 | * @var string[] |
| 72 | 72 | */ |
| 73 | - public null|array $file_hashes = null; |
|
| 73 | + public null | array $file_hashes = null; |
|
| 74 | 74 | |
| 75 | 75 | /** `unspecified` only. Base64-encoded element hash */ |
| 76 | - public null|string $element_hash = null; |
|
| 76 | + public null | string $element_hash = null; |
|
| 77 | 77 | |
| 78 | 78 | |
| 79 | - public function __construct(stdClass|null $object = null) { |
|
| 79 | + public function __construct(stdClass | null $object = null) { |
|
| 80 | 80 | if ($object != null) { |
| 81 | 81 | parent::__construct($object, self::subs); |
| 82 | 82 | } |
@@ -99,25 +99,25 @@ discard block |
||
| 99 | 99 | public string $id; |
| 100 | 100 | |
| 101 | 101 | /** all types except `contact` and `sticker` and `game` and `cashedAudio`. Title */ |
| 102 | - public null|string $title = null; |
|
| 102 | + public null | string $title = null; |
|
| 103 | 103 | |
| 104 | 104 | /** all types except `contact`. Content of the message to be sent */ |
| 105 | - public null|inputMessageContent $input_message_content = null; |
|
| 105 | + public null | inputMessageContent $input_message_content = null; |
|
| 106 | 106 | |
| 107 | 107 | /** Optional. Inline keyboard attached to the message */ |
| 108 | - public null|inlineKeyboardMarkup $reply_markup = null; |
|
| 108 | + public null | inlineKeyboardMarkup $reply_markup = null; |
|
| 109 | 109 | |
| 110 | 110 | /** `article` only. Optional. URL of the result */ |
| 111 | - public null|string $url = null; |
|
| 111 | + public null | string $url = null; |
|
| 112 | 112 | |
| 113 | 113 | /** `article` only. Optional. Pass True, if you don't want the URL to be shown in the message */ |
| 114 | - public null|bool $hide_url = null; |
|
| 114 | + public null | bool $hide_url = null; |
|
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | 117 | * `article` and `photo` and `video` and `document` and `cachedPhoto` and `cachedDocument` and `cachedVideo` only. |
| 118 | 118 | * Short description of the result |
| 119 | 119 | */ |
| 120 | - public null|string $description = null; |
|
| 120 | + public null | string $description = null; |
|
| 121 | 121 | |
| 122 | 122 | /** |
| 123 | 123 | * `article` and `photo` and `gif` and `mpeg4Gif` and `video` and `document` and `location` and `venue` and `contact` only. |
@@ -127,36 +127,36 @@ discard block |
||
| 127 | 127 | * |
| 128 | 128 | * `video` and `document` could be jpeg only |
| 129 | 129 | */ |
| 130 | - public null|string $thumb_url = null; |
|
| 130 | + public null | string $thumb_url = null; |
|
| 131 | 131 | |
| 132 | 132 | /** `article` and `document` and `location` and `venue` and `contact` only. Optional. Thumbnail width */ |
| 133 | - public null|int $thumb_width = null; |
|
| 133 | + public null | int $thumb_width = null; |
|
| 134 | 134 | |
| 135 | 135 | /** `article` and `document` and `location` and `venue` and `contact` only. Optional. Thumbnail height */ |
| 136 | - public null|int $thumb_height = null; |
|
| 136 | + public null | int $thumb_height = null; |
|
| 137 | 137 | |
| 138 | 138 | /** `photo` only. A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB */ |
| 139 | - public null|string $photo_url = null; |
|
| 139 | + public null | string $photo_url = null; |
|
| 140 | 140 | |
| 141 | 141 | /** `photo` only. Optional. Width of the photo */ |
| 142 | - public null|int $photo_width = null; |
|
| 142 | + public null | int $photo_width = null; |
|
| 143 | 143 | |
| 144 | 144 | /** `photo` only. Optional. Height of the photo */ |
| 145 | - public null|int $photo_height = null; |
|
| 145 | + public null | int $photo_height = null; |
|
| 146 | 146 | |
| 147 | 147 | /** |
| 148 | 148 | * `photo` and `gif` and `mpeg4Gif` and `video` and `audio` and `voice` and `document` and `cachedPhoto` and |
| 149 | 149 | * `cachedGif` and `cachedMpeg4Gif` and `cachedDocument` and `cachedVideo` and `cachedVoice` and `cachedAudio` only. |
| 150 | 150 | * Optional. Caption, 0-1024 characters after entities parsing |
| 151 | 151 | */ |
| 152 | - public null|string $caption = null; |
|
| 152 | + public null | string $caption = null; |
|
| 153 | 153 | |
| 154 | 154 | /** |
| 155 | 155 | * `photo` and `gif` and `mpeg4Gif` and `video` and `audio` and `voice` and `document` and `cachedPhoto` and |
| 156 | 156 | * `cachedGif` and `cachedMpeg4Gif` and `cachedDocument` and `cachedVideo` and `cachedVoice` and `cachedAudio` only. |
| 157 | 157 | * Optional. Mode for parsing entities in the caption. See formatting options for more details. |
| 158 | 158 | */ |
| 159 | - public null|string $parse_mode = null; |
|
| 159 | + public null | string $parse_mode = null; |
|
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | 162 | * `photo` and `gif` and `mpeg4Gif` and `video` and `audio` and `voice` and `document` and `cachedPhoto` and |
@@ -164,37 +164,37 @@ discard block |
||
| 164 | 164 | * Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode |
| 165 | 165 | * @var messageEntity[] |
| 166 | 166 | */ |
| 167 | - public null|array $caption_entities = null; |
|
| 167 | + public null | array $caption_entities = null; |
|
| 168 | 168 | |
| 169 | 169 | /** `gif` only. A valid URL for the GIF file. File size must not exceed 1MB */ |
| 170 | - public null|string $gif_url = null; |
|
| 170 | + public null | string $gif_url = null; |
|
| 171 | 171 | |
| 172 | 172 | /** `gif` only. Optional. Width of the GIF */ |
| 173 | - public null|int $gif_width = null; |
|
| 173 | + public null | int $gif_width = null; |
|
| 174 | 174 | |
| 175 | 175 | /** `gif` only. Optional. Height of the GIF */ |
| 176 | - public null|int $gif_height = null; |
|
| 176 | + public null | int $gif_height = null; |
|
| 177 | 177 | |
| 178 | 178 | /** `gif` only. Optional. Duration of the GIF in seconds */ |
| 179 | - public null|int $gif_duration = null; |
|
| 179 | + public null | int $gif_duration = null; |
|
| 180 | 180 | |
| 181 | 181 | /** `gif` and `mpeg4Gif` only. could be `application/pdf` or `application/zip` or `video/mp4`. default : `image/jpeg` */ |
| 182 | - public null|string $thumb_mime_type = null; |
|
| 182 | + public null | string $thumb_mime_type = null; |
|
| 183 | 183 | |
| 184 | 184 | /** `mpeg4Gif` only. A valid URL for the MPEG4 file. File size must not exceed 1MB */ |
| 185 | - public null|string $mpeg4_url = null; |
|
| 185 | + public null | string $mpeg4_url = null; |
|
| 186 | 186 | |
| 187 | 187 | /** `mpeg4Gif` only. Optional. Video width */ |
| 188 | - public null|int $mpeg4_width = null; |
|
| 188 | + public null | int $mpeg4_width = null; |
|
| 189 | 189 | |
| 190 | 190 | /** `mpeg4Gif` only. Optional. Video height */ |
| 191 | - public null|int $mpeg4_height = null; |
|
| 191 | + public null | int $mpeg4_height = null; |
|
| 192 | 192 | |
| 193 | 193 | /** `mpeg4Gif` only. Optional. Video duration in seconds */ |
| 194 | - public null|int $mpeg4_duration = null; |
|
| 194 | + public null | int $mpeg4_duration = null; |
|
| 195 | 195 | |
| 196 | 196 | /** `video` only. A valid URL for the embedded video player or video file */ |
| 197 | - public null|string $video_url = null; |
|
| 197 | + public null | string $video_url = null; |
|
| 198 | 198 | |
| 199 | 199 | /** |
| 200 | 200 | * `video` or `document` only. MIME type of the content |
@@ -203,118 +203,118 @@ discard block |
||
| 203 | 203 | * |
| 204 | 204 | * `document` could be `application/pdf` or `application/zip` |
| 205 | 205 | */ |
| 206 | - public null|string $mime_type = null; |
|
| 206 | + public null | string $mime_type = null; |
|
| 207 | 207 | |
| 208 | 208 | /** `video` only. Optional. Video width */ |
| 209 | - public null|int $video_width = null; |
|
| 209 | + public null | int $video_width = null; |
|
| 210 | 210 | |
| 211 | 211 | /** `video` only. Optional. Video height */ |
| 212 | - public null|int $video_height = null; |
|
| 212 | + public null | int $video_height = null; |
|
| 213 | 213 | |
| 214 | 214 | /** `video` only. Optional. Video duration in seconds */ |
| 215 | - public null|int $video_duration = null; |
|
| 215 | + public null | int $video_duration = null; |
|
| 216 | 216 | |
| 217 | 217 | /** `audio` only. A valid URL for the audio file */ |
| 218 | - public null|string $audio_url = null; |
|
| 218 | + public null | string $audio_url = null; |
|
| 219 | 219 | |
| 220 | 220 | /** `audio` only. Optional. Performer */ |
| 221 | - public null|string $performer = null; |
|
| 221 | + public null | string $performer = null; |
|
| 222 | 222 | |
| 223 | 223 | /** `audio` only. Optional. Audio duration in seconds */ |
| 224 | - public null|int $audio_duration = null; |
|
| 224 | + public null | int $audio_duration = null; |
|
| 225 | 225 | |
| 226 | 226 | /** `voice` only. A valid URL for the voice recording */ |
| 227 | - public null|string $voice_url = null; |
|
| 227 | + public null | string $voice_url = null; |
|
| 228 | 228 | |
| 229 | 229 | /** `voice` only. Optional. Recording duration in seconds */ |
| 230 | - public null|int $voice_duration = null; |
|
| 230 | + public null | int $voice_duration = null; |
|
| 231 | 231 | |
| 232 | 232 | /** `document` only. A valid URL for the file */ |
| 233 | - public null|string $document_url = null; |
|
| 233 | + public null | string $document_url = null; |
|
| 234 | 234 | |
| 235 | 235 | /** `location` and `venue` only. latitude in degrees */ |
| 236 | - public null|float $latitude = null; |
|
| 236 | + public null | float $latitude = null; |
|
| 237 | 237 | |
| 238 | 238 | /** `location` and `venue` only. longitude in degrees */ |
| 239 | - public null|float $longitude = null; |
|
| 239 | + public null | float $longitude = null; |
|
| 240 | 240 | |
| 241 | 241 | /** `location` only. Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
| 242 | - public null|float $horizontal_accuracy = null; |
|
| 242 | + public null | float $horizontal_accuracy = null; |
|
| 243 | 243 | |
| 244 | 244 | /** `location` only. Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. */ |
| 245 | - public null|int $live_period = null; |
|
| 245 | + public null | int $live_period = null; |
|
| 246 | 246 | |
| 247 | 247 | /** |
| 248 | 248 | * `location` only. Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 |
| 249 | 249 | * if specified. |
| 250 | 250 | */ |
| 251 | - public null|int $heading = null; |
|
| 251 | + public null | int $heading = null; |
|
| 252 | 252 | |
| 253 | 253 | /** |
| 254 | 254 | * `location` only. Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, |
| 255 | 255 | * in meters. Must be between 1 and 100000 if specified. |
| 256 | 256 | */ |
| 257 | - public null|int $proximity_alert_radius = null; |
|
| 257 | + public null | int $proximity_alert_radius = null; |
|
| 258 | 258 | |
| 259 | 259 | /** `venue` only. Address of the venue */ |
| 260 | - public null|string $address = null; |
|
| 260 | + public null | string $address = null; |
|
| 261 | 261 | |
| 262 | 262 | /** `venue` only. Optional. Foursquare identifier of the venue if known */ |
| 263 | - public null|string $foursquare_id = null; |
|
| 263 | + public null | string $foursquare_id = null; |
|
| 264 | 264 | |
| 265 | 265 | /** |
| 266 | 266 | * `venue` only. Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, |
| 267 | 267 | * “arts_entertainment/aquarium” or “food/icecream”.) |
| 268 | 268 | */ |
| 269 | - public null|string $foursquare_type = null; |
|
| 269 | + public null | string $foursquare_type = null; |
|
| 270 | 270 | |
| 271 | 271 | /** `venue` only. Optional. Google Places identifier of the venue */ |
| 272 | - public null|string $google_place_id = null; |
|
| 272 | + public null | string $google_place_id = null; |
|
| 273 | 273 | |
| 274 | 274 | /** `venue` only. Optional. Google Places type of the venue. (See supported types.) */ |
| 275 | - public null|string $google_place_type = null; |
|
| 275 | + public null | string $google_place_type = null; |
|
| 276 | 276 | |
| 277 | 277 | /** `contact` only. Contact's phone number */ |
| 278 | - public null|string $phone_number = null; |
|
| 278 | + public null | string $phone_number = null; |
|
| 279 | 279 | |
| 280 | 280 | /** `contact` only. Contact's first name */ |
| 281 | - public null|string $first_name = null; |
|
| 281 | + public null | string $first_name = null; |
|
| 282 | 282 | |
| 283 | 283 | /** `contact` only. Optional. Contact's last name */ |
| 284 | - public null|string $last_name = null; |
|
| 284 | + public null | string $last_name = null; |
|
| 285 | 285 | |
| 286 | 286 | /** `contact` only. Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */ |
| 287 | - public null|string $vcard = null; |
|
| 287 | + public null | string $vcard = null; |
|
| 288 | 288 | |
| 289 | 289 | /** `game` only. Short name of the game */ |
| 290 | - public null|string $game_short_name = null; |
|
| 290 | + public null | string $game_short_name = null; |
|
| 291 | 291 | |
| 292 | 292 | /** `cachedPhoto` only. A valid file identifier of the photo */ |
| 293 | - public null|string $photo_file_id = null; |
|
| 293 | + public null | string $photo_file_id = null; |
|
| 294 | 294 | |
| 295 | 295 | /** `cachedGif` only. A valid file identifier for the GIF file */ |
| 296 | - public null|string $gif_file_id = null; |
|
| 296 | + public null | string $gif_file_id = null; |
|
| 297 | 297 | |
| 298 | 298 | /** `cachedMpeg4Gif` only. A valid file identifier for the MPEG4 file */ |
| 299 | - public null|string $mpeg4_file_id = null; |
|
| 299 | + public null | string $mpeg4_file_id = null; |
|
| 300 | 300 | |
| 301 | 301 | /** `cachedSticker` only. A valid file identifier of the sticker */ |
| 302 | - public null|string $sticker_file_id = null; |
|
| 302 | + public null | string $sticker_file_id = null; |
|
| 303 | 303 | |
| 304 | 304 | /** `cachedDocument` only. A valid file identifier for the file */ |
| 305 | - public null|string $document_file_id = null; |
|
| 305 | + public null | string $document_file_id = null; |
|
| 306 | 306 | |
| 307 | 307 | /** `cachedVideo` only. A valid file identifier for the video file */ |
| 308 | - public null|string $video_file_id = null; |
|
| 308 | + public null | string $video_file_id = null; |
|
| 309 | 309 | |
| 310 | 310 | /** `cachedVoice` only. A valid file identifier for the voice message */ |
| 311 | - public null|string $voice_file_id = null; |
|
| 311 | + public null | string $voice_file_id = null; |
|
| 312 | 312 | |
| 313 | 313 | /** `cachedAudio` only. A valid file identifier for the audio file */ |
| 314 | - public null|string $audio_file_id = null; |
|
| 314 | + public null | string $audio_file_id = null; |
|
| 315 | 315 | |
| 316 | 316 | |
| 317 | - public function __construct(stdClass|null $object = null) { |
|
| 317 | + public function __construct(stdClass | null $object = null) { |
|
| 318 | 318 | if ($object != null) { |
| 319 | 319 | parent::__construct($object, self::subs); |
| 320 | 320 | } |
@@ -17,10 +17,10 @@ |
||
| 17 | 17 | * Optional. If quiz is passed, the user will be allowed to create only polls in the quiz mode. If regular is |
| 18 | 18 | * passed, only regular polls will be allowed. Otherwise, the user will be allowed to create a poll of any type. |
| 19 | 19 | */ |
| 20 | - public null|string $type = null; |
|
| 20 | + public null | string $type = null; |
|
| 21 | 21 | |
| 22 | 22 | |
| 23 | - public function __construct(stdClass|null $object = null) { |
|
| 23 | + public function __construct(stdClass | null $object = null) { |
|
| 24 | 24 | if ($object != null) { |
| 25 | 25 | parent::__construct($object, self::subs); |
| 26 | 26 | } |