@@ -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 | } |
@@ -24,28 +24,28 @@ |
||
| 24 | 24 | * Optional. Message with the callback button that originated the query. Note that message content and message |
| 25 | 25 | * date will not be available if the message is too old |
| 26 | 26 | */ |
| 27 | - public null|message $message = null; |
|
| 27 | + public null | message $message = null; |
|
| 28 | 28 | |
| 29 | 29 | /** Optional. Identifier of the message sent via the bot in inline mode, that originated the query. */ |
| 30 | - public null|string $inline_message_id = null; |
|
| 30 | + public null | string $inline_message_id = null; |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. |
| 34 | 34 | * Useful for high scores in games. |
| 35 | 35 | */ |
| 36 | - public null|string $chat_instance = null; |
|
| 36 | + public null | string $chat_instance = null; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * Optional. Data associated with the callback button. Be aware that the message originated the query can contain |
| 40 | 40 | * no callback buttons with this data. |
| 41 | 41 | */ |
| 42 | - public null|string $data = null; |
|
| 42 | + public null | string $data = null; |
|
| 43 | 43 | |
| 44 | 44 | /** Optional. Short name of a Game to be returned, serves as the unique identifier for the game */ |
| 45 | - public null|string $game_short_name = null; |
|
| 45 | + public null | string $game_short_name = null; |
|
| 46 | 46 | |
| 47 | 47 | |
| 48 | - public function __construct(stdClass|null $object = null) { |
|
| 48 | + public function __construct(stdClass | null $object = null) { |
|
| 49 | 49 | if ($object != null) { |
| 50 | 50 | parent::__construct($object, self::subs); |
| 51 | 51 | } |
@@ -18,20 +18,20 @@ |
||
| 18 | 18 | public string $first_name; |
| 19 | 19 | |
| 20 | 20 | /** Optional. Contact's last name */ |
| 21 | - public null|string $last_name = null; |
|
| 21 | + public null | string $last_name = null; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Optional. Contact's user identifier in Telegram. This number may have more than 32 significant bits and some |
| 25 | 25 | * programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant |
| 26 | 26 | * bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. |
| 27 | 27 | */ |
| 28 | - public null|int $user_id = null; |
|
| 28 | + public null | int $user_id = null; |
|
| 29 | 29 | |
| 30 | 30 | /** Optional. Additional data about the contact in the form of a vCard */ |
| 31 | - public null|string $vcard = null; |
|
| 31 | + public null | string $vcard = 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 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | public array $photos = []; |
| 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 | } |
@@ -46,64 +46,64 @@ |
||
| 46 | 46 | public int $update_id; |
| 47 | 47 | |
| 48 | 48 | /** Optional. New incoming message of any kind - text, photo, sticker, etc. */ |
| 49 | - public null|message $message = null; |
|
| 49 | + public null | message $message = null; |
|
| 50 | 50 | |
| 51 | 51 | /** Optional. New version of a message that is known to the bot and was edited */ |
| 52 | - public null|message $edited_message = null; |
|
| 52 | + public null | message $edited_message = null; |
|
| 53 | 53 | |
| 54 | 54 | /** Optional. New incoming channel post of any kind - text, photo, sticker, etc. */ |
| 55 | - public null|message $channel_post = null; |
|
| 55 | + public null | message $channel_post = null; |
|
| 56 | 56 | |
| 57 | 57 | /** Optional. New version of a channel post that is known to the bot and was edited */ |
| 58 | - public null|message $edited_channel_post = null; |
|
| 58 | + public null | message $edited_channel_post = null; |
|
| 59 | 59 | |
| 60 | 60 | /** Optional. New incoming inline query */ |
| 61 | - public null|inlineQuery $inline_query = null; |
|
| 61 | + public null | inlineQuery $inline_query = null; |
|
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Optional. The result of an inline query that was chosen by a user and sent to their chat partner. Please see |
| 65 | 65 | * our documentation on the feedback collecting for details on how to enable these updates for your bot. |
| 66 | 66 | */ |
| 67 | - public null|chosenInlineResult $chosen_inline_result = null; |
|
| 67 | + public null | chosenInlineResult $chosen_inline_result = null; |
|
| 68 | 68 | |
| 69 | 69 | /** Optional. New incoming callback query */ |
| 70 | - public null|callbackQuery $callback_query = null; |
|
| 70 | + public null | callbackQuery $callback_query = null; |
|
| 71 | 71 | |
| 72 | 72 | /** Optional. New incoming shipping query. Only for invoices with flexible price */ |
| 73 | - public null|shippingQuery $shipping_query = null; |
|
| 73 | + public null | shippingQuery $shipping_query = null; |
|
| 74 | 74 | |
| 75 | 75 | /** Optional. New incoming pre-checkout query. Contains full information about checkout */ |
| 76 | - public null|preCheckoutQuery $pre_checkout_query = null; |
|
| 76 | + public null | preCheckoutQuery $pre_checkout_query = null; |
|
| 77 | 77 | |
| 78 | 78 | /** Optional. New poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot */ |
| 79 | - public null|poll $poll = null; |
|
| 79 | + public null | poll $poll = null; |
|
| 80 | 80 | |
| 81 | 81 | /** |
| 82 | 82 | * Optional. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were |
| 83 | 83 | * sent by the bot itself. |
| 84 | 84 | */ |
| 85 | - public null|pollAnswer $poll_answer = null; |
|
| 85 | + public null | pollAnswer $poll_answer = null; |
|
| 86 | 86 | |
| 87 | 87 | /** |
| 88 | 88 | * Optional. The bot's chat member status was updated in a chat. For private chats, this update is received only |
| 89 | 89 | * when the bot is blocked or unblocked by the user. |
| 90 | 90 | */ |
| 91 | - public null|chatMemberUpdated $my_chat_member = null; |
|
| 91 | + public null | chatMemberUpdated $my_chat_member = null; |
|
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | 94 | * Optional. A chat member's status was updated in a chat. The bot must be an administrator in the chat and must |
| 95 | 95 | * explicitly specify “chat_member” in the list of allowed_updates to receive these updates. |
| 96 | 96 | */ |
| 97 | - public null|chatMemberUpdated $chat_member = null; |
|
| 97 | + public null | chatMemberUpdated $chat_member = null; |
|
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | 100 | * Optional. A request to join the chat has been sent. The bot must have the can_invite_users administrator right |
| 101 | 101 | * in the chat to receive these updates. |
| 102 | 102 | */ |
| 103 | - public null|chatJoinRequest $chat_join_request = null; |
|
| 103 | + public null | chatJoinRequest $chat_join_request = null; |
|
| 104 | 104 | |
| 105 | 105 | |
| 106 | - public function __construct(stdClass|null $object = null) { |
|
| 106 | + public function __construct(stdClass | null $object = null) { |
|
| 107 | 107 | if ($object != null) { |
| 108 | 108 | parent::__construct($object, self::subs); |
| 109 | 109 | } |
@@ -25,29 +25,29 @@ discard block |
||
| 25 | 25 | public int $duration; |
| 26 | 26 | |
| 27 | 27 | /** Optional. Performer of the audio as defined by sender or by audio tags */ |
| 28 | - public null|string $performer = null; |
|
| 28 | + public null | string $performer = null; |
|
| 29 | 29 | |
| 30 | 30 | /** Optional. Title of the audio as defined by sender or by audio tags */ |
| 31 | - public null|string $title = null; |
|
| 31 | + public null | string $title = null; |
|
| 32 | 32 | |
| 33 | 33 | /** Optional. Original filename as defined by sender */ |
| 34 | - public null|string $file_name = null; |
|
| 34 | + public null | string $file_name = null; |
|
| 35 | 35 | |
| 36 | 36 | /** Optional. MIME type of the file as defined by sender */ |
| 37 | - public null|string $mime_type = null; |
|
| 37 | + public null | string $mime_type = null; |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Optional. File size in bytes. It can be bigger than 2^31 and some programming languages may have |
| 41 | 41 | * difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit |
| 42 | 42 | * integer or double-precision float type are safe for storing this value. |
| 43 | 43 | */ |
| 44 | - public null|int $file_size = null; |
|
| 44 | + public null | int $file_size = null; |
|
| 45 | 45 | |
| 46 | 46 | /** Optional. Thumbnail of the album cover to which the music file belongs */ |
| 47 | - public null|photoSize $thumb = null; |
|
| 47 | + public null | photoSize $thumb = null; |
|
| 48 | 48 | |
| 49 | 49 | |
| 50 | - public function __construct(stdClass|null $object = null) { |
|
| 50 | + public function __construct(stdClass | null $object = null) { |
|
| 51 | 51 | if ($object != null) { |
| 52 | 52 | parent::__construct($object, self::subs); |
| 53 | 53 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @return bool|string string will be returned when destination doesn't set |
| 70 | 70 | */ |
| 71 | - public function download(string|null $destination = null): bool|string { |
|
| 72 | - return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3',$this->file_id); |
|
| 71 | + public function download(string | null $destination = null): bool | string { |
|
| 72 | + return telegram::downloadFile($destination ?? $this->file_name ?? 'unknown.mp3', $this->file_id); |
|
| 73 | 73 | } |
| 74 | 74 | } |
@@ -18,25 +18,25 @@ |
||
| 18 | 18 | public float $latitude; |
| 19 | 19 | |
| 20 | 20 | /** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
| 21 | - public null|float $horizontal_accuracy = null; |
|
| 21 | + public null | float $horizontal_accuracy = null; |
|
| 22 | 22 | |
| 23 | 23 | /** |
| 24 | 24 | * Optional. Time relative to the message sending date, during which the location can be updated; in seconds. For |
| 25 | 25 | * active live locations only. |
| 26 | 26 | */ |
| 27 | - public null|int $live_period = null; |
|
| 27 | + public null | int $live_period = null; |
|
| 28 | 28 | |
| 29 | 29 | /** Optional. The direction in which user is moving, in degrees; 1-360. For active live locations only. */ |
| 30 | - public null|int $heading = null; |
|
| 30 | + public null | int $heading = null; |
|
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | 33 | * Optional. The maximum distance for proximity alerts about approaching another chat member, in meters. For sent |
| 34 | 34 | * live locations only. |
| 35 | 35 | */ |
| 36 | - public null|int $proximity_alert_radius = null; |
|
| 36 | + public null | int $proximity_alert_radius = null; |
|
| 37 | 37 | |
| 38 | 38 | |
| 39 | - public function __construct(stdClass|null $object = null) { |
|
| 39 | + public function __construct(stdClass | null $object = null) { |
|
| 40 | 40 | if ($object != null) { |
| 41 | 41 | parent::__construct($object, self::subs); |
| 42 | 42 | } |
@@ -30,22 +30,22 @@ |
||
| 30 | 30 | public bool $is_revoked; |
| 31 | 31 | |
| 32 | 32 | /** Optional. Invite link name */ |
| 33 | - public null|string $name = null; |
|
| 33 | + public null | string $name = null; |
|
| 34 | 34 | |
| 35 | 35 | /** Optional. Point in time (Unix timestamp) when the link will expire or has been expired */ |
| 36 | - public null|int $expire_date = null; |
|
| 36 | + public null | int $expire_date = null; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat |
| 40 | 40 | * via this invite link; 1-99999 |
| 41 | 41 | */ |
| 42 | - public null|int $member_limit = null; |
|
| 42 | + public null | int $member_limit = null; |
|
| 43 | 43 | |
| 44 | 44 | /** Optional. Number of pending join requests created using this link */ |
| 45 | - public null|int $pending_join_request_count = null; |
|
| 45 | + public null | int $pending_join_request_count = null; |
|
| 46 | 46 | |
| 47 | 47 | |
| 48 | - public function __construct(stdClass|null $object = null) { |
|
| 48 | + public function __construct(stdClass | null $object = null) { |
|
| 49 | 49 | if ($object != null) { |
| 50 | 50 | parent::__construct($object, self::subs); |
| 51 | 51 | } |
@@ -12,19 +12,19 @@ |
||
| 12 | 12 | private const subs = ['shipping_address' => 'BPT\types\shippingAddress']; |
| 13 | 13 | |
| 14 | 14 | /** Optional. User name */ |
| 15 | - public null|string $name = null; |
|
| 15 | + public null | string $name = null; |
|
| 16 | 16 | |
| 17 | 17 | /** Optional. User's phone number */ |
| 18 | - public null|string $phone_number = null; |
|
| 18 | + public null | string $phone_number = null; |
|
| 19 | 19 | |
| 20 | 20 | /** Optional. User email */ |
| 21 | - public null|string $email = null; |
|
| 21 | + public null | string $email = null; |
|
| 22 | 22 | |
| 23 | 23 | /** Optional. User shipping address */ |
| 24 | - public null|shippingAddress $shipping_address = null; |
|
| 24 | + public null | shippingAddress $shipping_address = 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 | } |