@@ -8,14 +8,14 @@ |
||
| 8 | 8 | * Represents the scope of bot commands, covering all group and supergroup chats. |
| 9 | 9 | */ |
| 10 | 10 | class botCommandScopeAllGroupChats extends types { |
| 11 | - /** Keep all of properties which has sub properties */ |
|
| 12 | - private const subs = []; |
|
| 11 | + /** Keep all of properties which has sub properties */ |
|
| 12 | + private const subs = []; |
|
| 13 | 13 | |
| 14 | - /** Scope type, must be all_group_chats */ |
|
| 15 | - public string $type; |
|
| 14 | + /** Scope type, must be all_group_chats */ |
|
| 15 | + public string $type; |
|
| 16 | 16 | |
| 17 | 17 | |
| 18 | - public function __construct(stdClass $update) { |
|
| 19 | - parent::__construct($update, self::subs); |
|
| 20 | - } |
|
| 18 | + public function __construct(stdClass $update) { |
|
| 19 | + parent::__construct($update, self::subs); |
|
| 20 | + } |
|
| 21 | 21 | } |
@@ -8,41 +8,41 @@ |
||
| 8 | 8 | * This object represents an animation file (GIF or H.264/MPEG-4 AVC video without sound). |
| 9 | 9 | */ |
| 10 | 10 | class animation extends types { |
| 11 | - /** Keep all of properties which has sub properties */ |
|
| 12 | - private const subs = ['thumb' => 'BPT\types\photoSize']; |
|
| 11 | + /** Keep all of properties which has sub properties */ |
|
| 12 | + private const subs = ['thumb' => 'BPT\types\photoSize']; |
|
| 13 | 13 | |
| 14 | - /** Identifier for this file, which can be used to download or reuse the file */ |
|
| 15 | - public string $file_id; |
|
| 14 | + /** Identifier for this file, which can be used to download or reuse the file */ |
|
| 15 | + public string $file_id; |
|
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
| 19 | - * used to download or reuse the file. |
|
| 20 | - */ |
|
| 21 | - public string $file_unique_id; |
|
| 17 | + /** |
|
| 18 | + * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
| 19 | + * used to download or reuse the file. |
|
| 20 | + */ |
|
| 21 | + public string $file_unique_id; |
|
| 22 | 22 | |
| 23 | - /** Video width as defined by sender */ |
|
| 24 | - public int $width; |
|
| 23 | + /** Video width as defined by sender */ |
|
| 24 | + public int $width; |
|
| 25 | 25 | |
| 26 | - /** Video height as defined by sender */ |
|
| 27 | - public int $height; |
|
| 26 | + /** Video height as defined by sender */ |
|
| 27 | + public int $height; |
|
| 28 | 28 | |
| 29 | - /** Duration of the video in seconds as defined by sender */ |
|
| 30 | - public int $duration; |
|
| 29 | + /** Duration of the video in seconds as defined by sender */ |
|
| 30 | + public int $duration; |
|
| 31 | 31 | |
| 32 | - /** Optional. Animation thumbnail as defined by sender */ |
|
| 33 | - public photoSize $thumb; |
|
| 32 | + /** Optional. Animation thumbnail as defined by sender */ |
|
| 33 | + public photoSize $thumb; |
|
| 34 | 34 | |
| 35 | - /** Optional. Original animation filename as defined by sender */ |
|
| 36 | - public string $file_name; |
|
| 35 | + /** Optional. Original animation filename as defined by sender */ |
|
| 36 | + public string $file_name; |
|
| 37 | 37 | |
| 38 | - /** Optional. MIME type of the file as defined by sender */ |
|
| 39 | - public string $mime_type; |
|
| 38 | + /** Optional. MIME type of the file as defined by sender */ |
|
| 39 | + public string $mime_type; |
|
| 40 | 40 | |
| 41 | - /** Optional. File size in bytes */ |
|
| 42 | - public int $file_size; |
|
| 41 | + /** Optional. File size in bytes */ |
|
| 42 | + public int $file_size; |
|
| 43 | 43 | |
| 44 | 44 | |
| 45 | - public function __construct(stdClass $update) { |
|
| 46 | - parent::__construct($update, self::subs); |
|
| 47 | - } |
|
| 45 | + public function __construct(stdClass $update) { |
|
| 46 | + parent::__construct($update, self::subs); |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -8,35 +8,35 @@ |
||
| 8 | 8 | * Represents the content of a location message to be sent as the result of an inline query. |
| 9 | 9 | */ |
| 10 | 10 | class inputLocationMessageContent extends types { |
| 11 | - /** Keep all of properties which has sub properties */ |
|
| 12 | - private const subs = []; |
|
| 11 | + /** Keep all of properties which has sub properties */ |
|
| 12 | + private const subs = []; |
|
| 13 | 13 | |
| 14 | - /** Latitude of the location in degrees */ |
|
| 15 | - public float $latitude; |
|
| 14 | + /** Latitude of the location in degrees */ |
|
| 15 | + public float $latitude; |
|
| 16 | 16 | |
| 17 | - /** Longitude of the location in degrees */ |
|
| 18 | - public float $longitude; |
|
| 17 | + /** Longitude of the location in degrees */ |
|
| 18 | + public float $longitude; |
|
| 19 | 19 | |
| 20 | - /** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
|
| 21 | - public float $horizontal_accuracy; |
|
| 20 | + /** Optional. The radius of uncertainty for the location, measured in meters; 0-1500 */ |
|
| 21 | + public float $horizontal_accuracy; |
|
| 22 | 22 | |
| 23 | - /** Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. */ |
|
| 24 | - public int $live_period; |
|
| 23 | + /** Optional. Period in seconds for which the location can be updated, should be between 60 and 86400. */ |
|
| 24 | + public int $live_period; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 |
|
| 28 | - * if specified. |
|
| 29 | - */ |
|
| 30 | - public int $heading; |
|
| 26 | + /** |
|
| 27 | + * Optional. For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 |
|
| 28 | + * if specified. |
|
| 29 | + */ |
|
| 30 | + public int $heading; |
|
| 31 | 31 | |
| 32 | - /** |
|
| 33 | - * Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, |
|
| 34 | - * in meters. Must be between 1 and 100000 if specified. |
|
| 35 | - */ |
|
| 36 | - public int $proximity_alert_radius; |
|
| 32 | + /** |
|
| 33 | + * Optional. For live locations, a maximum distance for proximity alerts about approaching another chat member, |
|
| 34 | + * in meters. Must be between 1 and 100000 if specified. |
|
| 35 | + */ |
|
| 36 | + public int $proximity_alert_radius; |
|
| 37 | 37 | |
| 38 | 38 | |
| 39 | - public function __construct(stdClass $update) { |
|
| 40 | - parent::__construct($update, self::subs); |
|
| 41 | - } |
|
| 39 | + public function __construct(stdClass $update) { |
|
| 40 | + parent::__construct($update, self::subs); |
|
| 41 | + } |
|
| 42 | 42 | } |
@@ -8,75 +8,75 @@ |
||
| 8 | 8 | * Contains information about documents or other Telegram Passport elements shared with the bot by the user. |
| 9 | 9 | */ |
| 10 | 10 | class encryptedPassportElement extends types { |
| 11 | - /** Keep all of properties which has sub properties */ |
|
| 12 | - private const subs = [ |
|
| 13 | - 'front_side' => 'BPT\types\passportFile', |
|
| 14 | - 'reverse_side' => 'BPT\types\passportFile', |
|
| 15 | - 'selfie' => 'BPT\types\passportFile', |
|
| 16 | - ]; |
|
| 11 | + /** Keep all of properties which has sub properties */ |
|
| 12 | + private const subs = [ |
|
| 13 | + 'front_side' => 'BPT\types\passportFile', |
|
| 14 | + 'reverse_side' => 'BPT\types\passportFile', |
|
| 15 | + 'selfie' => 'BPT\types\passportFile', |
|
| 16 | + ]; |
|
| 17 | 17 | |
| 18 | - /** |
|
| 19 | - * Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, |
|
| 20 | - * “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, |
|
| 21 | - * “passport_registration”, “temporary_registration”, “phone_number”, “email”. |
|
| 22 | - */ |
|
| 23 | - public string $type; |
|
| 18 | + /** |
|
| 19 | + * Element type. One of “personal_details”, “passport”, “driver_license”, “identity_card”, |
|
| 20 | + * “internal_passport”, “address”, “utility_bill”, “bank_statement”, “rental_agreement”, |
|
| 21 | + * “passport_registration”, “temporary_registration”, “phone_number”, “email”. |
|
| 22 | + */ |
|
| 23 | + public string $type; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for |
|
| 27 | - * “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and |
|
| 28 | - * “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials. |
|
| 29 | - */ |
|
| 30 | - public string $data; |
|
| 25 | + /** |
|
| 26 | + * Optional. Base64-encoded encrypted Telegram Passport element data provided by the user, available for |
|
| 27 | + * “personal_details”, “passport”, “driver_license”, “identity_card”, “internal_passport” and |
|
| 28 | + * “address” types. Can be decrypted and verified using the accompanying EncryptedCredentials. |
|
| 29 | + */ |
|
| 30 | + public string $data; |
|
| 31 | 31 | |
| 32 | - /** Optional. User's verified phone number, available only for “phone_number” type */ |
|
| 33 | - public string $phone_number; |
|
| 32 | + /** Optional. User's verified phone number, available only for “phone_number” type */ |
|
| 33 | + public string $phone_number; |
|
| 34 | 34 | |
| 35 | - /** Optional. User's verified email address, available only for “email” type */ |
|
| 36 | - public string $email; |
|
| 35 | + /** Optional. User's verified email address, available only for “email” type */ |
|
| 36 | + public string $email; |
|
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, |
|
| 40 | - * “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” |
|
| 41 | - * types. Files can be decrypted and verified using the accompanying EncryptedCredentials. |
|
| 42 | - */ |
|
| 43 | - public array $files; |
|
| 38 | + /** |
|
| 39 | + * Optional. Array of encrypted files with documents provided by the user, available for “utility_bill”, |
|
| 40 | + * “bank_statement”, “rental_agreement”, “passport_registration” and “temporary_registration” |
|
| 41 | + * types. Files can be decrypted and verified using the accompanying EncryptedCredentials. |
|
| 42 | + */ |
|
| 43 | + public array $files; |
|
| 44 | 44 | |
| 45 | - /** |
|
| 46 | - * Optional. Encrypted file with the front side of the document, provided by the user. Available for |
|
| 47 | - * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
|
| 48 | - * decrypted and verified using the accompanying EncryptedCredentials. |
|
| 49 | - */ |
|
| 50 | - public passportFile $front_side; |
|
| 45 | + /** |
|
| 46 | + * Optional. Encrypted file with the front side of the document, provided by the user. Available for |
|
| 47 | + * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
|
| 48 | + * decrypted and verified using the accompanying EncryptedCredentials. |
|
| 49 | + */ |
|
| 50 | + public passportFile $front_side; |
|
| 51 | 51 | |
| 52 | - /** |
|
| 53 | - * Optional. Encrypted file with the reverse side of the document, provided by the user. Available for |
|
| 54 | - * “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying |
|
| 55 | - * EncryptedCredentials. |
|
| 56 | - */ |
|
| 57 | - public passportFile $reverse_side; |
|
| 52 | + /** |
|
| 53 | + * Optional. Encrypted file with the reverse side of the document, provided by the user. Available for |
|
| 54 | + * “driver_license” and “identity_card”. The file can be decrypted and verified using the accompanying |
|
| 55 | + * EncryptedCredentials. |
|
| 56 | + */ |
|
| 57 | + public passportFile $reverse_side; |
|
| 58 | 58 | |
| 59 | - /** |
|
| 60 | - * Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for |
|
| 61 | - * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
|
| 62 | - * decrypted and verified using the accompanying EncryptedCredentials. |
|
| 63 | - */ |
|
| 64 | - public passportFile $selfie; |
|
| 59 | + /** |
|
| 60 | + * Optional. Encrypted file with the selfie of the user holding a document, provided by the user; available for |
|
| 61 | + * “passport”, “driver_license”, “identity_card” and “internal_passport”. The file can be |
|
| 62 | + * decrypted and verified using the accompanying EncryptedCredentials. |
|
| 63 | + */ |
|
| 64 | + public passportFile $selfie; |
|
| 65 | 65 | |
| 66 | - /** |
|
| 67 | - * Optional. Array of encrypted files with translated versions of documents provided by the user. Available if |
|
| 68 | - * requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, |
|
| 69 | - * “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and |
|
| 70 | - * “temporary_registration” types. Files can be decrypted and verified using the accompanying |
|
| 71 | - * EncryptedCredentials. |
|
| 72 | - */ |
|
| 73 | - public array $translation; |
|
| 66 | + /** |
|
| 67 | + * Optional. Array of encrypted files with translated versions of documents provided by the user. Available if |
|
| 68 | + * requested for “passport”, “driver_license”, “identity_card”, “internal_passport”, |
|
| 69 | + * “utility_bill”, “bank_statement”, “rental_agreement”, “passport_registration” and |
|
| 70 | + * “temporary_registration” types. Files can be decrypted and verified using the accompanying |
|
| 71 | + * EncryptedCredentials. |
|
| 72 | + */ |
|
| 73 | + public array $translation; |
|
| 74 | 74 | |
| 75 | - /** Base64-encoded element hash for using in PassportElementErrorUnspecified */ |
|
| 76 | - public string $hash; |
|
| 75 | + /** Base64-encoded element hash for using in PassportElementErrorUnspecified */ |
|
| 76 | + public string $hash; |
|
| 77 | 77 | |
| 78 | 78 | |
| 79 | - public function __construct(stdClass $update) { |
|
| 80 | - parent::__construct($update, self::subs); |
|
| 81 | - } |
|
| 79 | + public function __construct(stdClass $update) { |
|
| 80 | + parent::__construct($update, self::subs); |
|
| 81 | + } |
|
| 82 | 82 | } |
@@ -10,41 +10,41 @@ |
||
| 10 | 10 | * can use input_message_content to send a message with the specified content instead of the animation. |
| 11 | 11 | */ |
| 12 | 12 | class inlineQueryResultCachedMpeg4Gif extends types { |
| 13 | - /** Keep all of properties which has sub properties */ |
|
| 14 | - private const subs = [ |
|
| 15 | - 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
| 16 | - 'input_message_content' => 'BPT\types\inputMessageContent', |
|
| 17 | - ]; |
|
| 13 | + /** Keep all of properties which has sub properties */ |
|
| 14 | + private const subs = [ |
|
| 15 | + 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
| 16 | + 'input_message_content' => 'BPT\types\inputMessageContent', |
|
| 17 | + ]; |
|
| 18 | 18 | |
| 19 | - /** Type of the result, must be mpeg4_gif */ |
|
| 20 | - public string $type; |
|
| 19 | + /** Type of the result, must be mpeg4_gif */ |
|
| 20 | + public string $type; |
|
| 21 | 21 | |
| 22 | - /** Unique identifier for this result, 1-64 bytes */ |
|
| 23 | - public string $id; |
|
| 22 | + /** Unique identifier for this result, 1-64 bytes */ |
|
| 23 | + public string $id; |
|
| 24 | 24 | |
| 25 | - /** A valid file identifier for the MP4 file */ |
|
| 26 | - public string $mpeg4_file_id; |
|
| 25 | + /** A valid file identifier for the MP4 file */ |
|
| 26 | + public string $mpeg4_file_id; |
|
| 27 | 27 | |
| 28 | - /** Optional. Title for the result */ |
|
| 29 | - public string $title; |
|
| 28 | + /** Optional. Title for the result */ |
|
| 29 | + public string $title; |
|
| 30 | 30 | |
| 31 | - /** Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing */ |
|
| 32 | - public string $caption; |
|
| 31 | + /** Optional. Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing */ |
|
| 32 | + public string $caption; |
|
| 33 | 33 | |
| 34 | - /** Optional. Mode for parsing entities in the caption. See formatting options for more details. */ |
|
| 35 | - public string $parse_mode; |
|
| 34 | + /** Optional. Mode for parsing entities in the caption. See formatting options for more details. */ |
|
| 35 | + public string $parse_mode; |
|
| 36 | 36 | |
| 37 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
| 38 | - public array $caption_entities; |
|
| 37 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
| 38 | + public array $caption_entities; |
|
| 39 | 39 | |
| 40 | - /** Optional. Inline keyboard attached to the message */ |
|
| 41 | - public inlineKeyboardMarkup $reply_markup; |
|
| 40 | + /** Optional. Inline keyboard attached to the message */ |
|
| 41 | + public inlineKeyboardMarkup $reply_markup; |
|
| 42 | 42 | |
| 43 | - /** Optional. Content of the message to be sent instead of the video animation */ |
|
| 44 | - public inputMessageContent $input_message_content; |
|
| 43 | + /** Optional. Content of the message to be sent instead of the video animation */ |
|
| 44 | + public inputMessageContent $input_message_content; |
|
| 45 | 45 | |
| 46 | 46 | |
| 47 | - public function __construct(stdClass $update) { |
|
| 48 | - parent::__construct($update, self::subs); |
|
| 49 | - } |
|
| 47 | + public function __construct(stdClass $update) { |
|
| 48 | + parent::__construct($update, self::subs); |
|
| 49 | + } |
|
| 50 | 50 | } |
@@ -8,20 +8,20 @@ |
||
| 8 | 8 | * This object represents one row of the high scores table for a game. |
| 9 | 9 | */ |
| 10 | 10 | class gameHighScore extends types { |
| 11 | - /** Keep all of properties which has sub properties */ |
|
| 12 | - private const subs = ['user' => 'BPT\types\user']; |
|
| 11 | + /** Keep all of properties which has sub properties */ |
|
| 12 | + private const subs = ['user' => 'BPT\types\user']; |
|
| 13 | 13 | |
| 14 | - /** Position in high score table for the game */ |
|
| 15 | - public int $position; |
|
| 14 | + /** Position in high score table for the game */ |
|
| 15 | + public int $position; |
|
| 16 | 16 | |
| 17 | - /** User */ |
|
| 18 | - public user $user; |
|
| 17 | + /** User */ |
|
| 18 | + public user $user; |
|
| 19 | 19 | |
| 20 | - /** Score */ |
|
| 21 | - public int $score; |
|
| 20 | + /** Score */ |
|
| 21 | + public int $score; |
|
| 22 | 22 | |
| 23 | 23 | |
| 24 | - public function __construct(stdClass $update) { |
|
| 25 | - parent::__construct($update, self::subs); |
|
| 26 | - } |
|
| 24 | + public function __construct(stdClass $update) { |
|
| 25 | + parent::__construct($update, self::subs); |
|
| 26 | + } |
|
| 27 | 27 | } |
@@ -8,32 +8,32 @@ |
||
| 8 | 8 | * This object represents a video message (available in Telegram apps as of v.4.0). |
| 9 | 9 | */ |
| 10 | 10 | class videoNote extends types { |
| 11 | - /** Keep all of properties which has sub properties */ |
|
| 12 | - private const subs = ['thumb' => 'BPT\types\photoSize']; |
|
| 11 | + /** Keep all of properties which has sub properties */ |
|
| 12 | + private const subs = ['thumb' => 'BPT\types\photoSize']; |
|
| 13 | 13 | |
| 14 | - /** Identifier for this file, which can be used to download or reuse the file */ |
|
| 15 | - public string $file_id; |
|
| 14 | + /** Identifier for this file, which can be used to download or reuse the file */ |
|
| 15 | + public string $file_id; |
|
| 16 | 16 | |
| 17 | - /** |
|
| 18 | - * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
| 19 | - * used to download or reuse the file. |
|
| 20 | - */ |
|
| 21 | - public string $file_unique_id; |
|
| 17 | + /** |
|
| 18 | + * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
| 19 | + * used to download or reuse the file. |
|
| 20 | + */ |
|
| 21 | + public string $file_unique_id; |
|
| 22 | 22 | |
| 23 | - /** Video width and height (diameter of the video message) as defined by sender */ |
|
| 24 | - public int $length; |
|
| 23 | + /** Video width and height (diameter of the video message) as defined by sender */ |
|
| 24 | + public int $length; |
|
| 25 | 25 | |
| 26 | - /** Duration of the video in seconds as defined by sender */ |
|
| 27 | - public int $duration; |
|
| 26 | + /** Duration of the video in seconds as defined by sender */ |
|
| 27 | + public int $duration; |
|
| 28 | 28 | |
| 29 | - /** Optional. Video thumbnail */ |
|
| 30 | - public photoSize $thumb; |
|
| 29 | + /** Optional. Video thumbnail */ |
|
| 30 | + public photoSize $thumb; |
|
| 31 | 31 | |
| 32 | - /** Optional. File size in bytes */ |
|
| 33 | - public int $file_size; |
|
| 32 | + /** Optional. File size in bytes */ |
|
| 33 | + public int $file_size; |
|
| 34 | 34 | |
| 35 | 35 | |
| 36 | - public function __construct(stdClass $update) { |
|
| 37 | - parent::__construct($update, self::subs); |
|
| 38 | - } |
|
| 36 | + public function __construct(stdClass $update) { |
|
| 37 | + parent::__construct($update, self::subs); |
|
| 38 | + } |
|
| 39 | 39 | } |
@@ -11,33 +11,33 @@ |
||
| 11 | 11 | * Telegram apps support these buttons as of version 5.7. |
| 12 | 12 | */ |
| 13 | 13 | class loginUrl extends types { |
| 14 | - /** Keep all of properties which has sub properties */ |
|
| 15 | - private const subs = []; |
|
| 16 | - |
|
| 17 | - /** |
|
| 18 | - * An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If |
|
| 19 | - * the user refuses to provide authorization data, the original URL without information about the user will be |
|
| 20 | - * opened. The data added is the same as described in Receiving authorization data.NOTE: You must always check |
|
| 21 | - * the hash of the received data to verify the authentication and the integrity of the data as described in |
|
| 22 | - * Checking authorization. |
|
| 23 | - */ |
|
| 24 | - public string $url; |
|
| 25 | - |
|
| 26 | - /** Optional. New text of the button in forwarded messages. */ |
|
| 27 | - public string $forward_text; |
|
| 28 | - |
|
| 29 | - /** |
|
| 30 | - * Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. |
|
| 31 | - * If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain |
|
| 32 | - * linked with the bot. See Linking your domain to the bot for more details. |
|
| 33 | - */ |
|
| 34 | - public string $bot_username; |
|
| 35 | - |
|
| 36 | - /** Optional. Pass True to request the permission for your bot to send messages to the user. */ |
|
| 37 | - public bool $request_write_access; |
|
| 38 | - |
|
| 39 | - |
|
| 40 | - public function __construct(stdClass $update) { |
|
| 41 | - parent::__construct($update, self::subs); |
|
| 42 | - } |
|
| 14 | + /** Keep all of properties which has sub properties */ |
|
| 15 | + private const subs = []; |
|
| 16 | + |
|
| 17 | + /** |
|
| 18 | + * An HTTP URL to be opened with user authorization data added to the query string when the button is pressed. If |
|
| 19 | + * the user refuses to provide authorization data, the original URL without information about the user will be |
|
| 20 | + * opened. The data added is the same as described in Receiving authorization data.NOTE: You must always check |
|
| 21 | + * the hash of the received data to verify the authentication and the integrity of the data as described in |
|
| 22 | + * Checking authorization. |
|
| 23 | + */ |
|
| 24 | + public string $url; |
|
| 25 | + |
|
| 26 | + /** Optional. New text of the button in forwarded messages. */ |
|
| 27 | + public string $forward_text; |
|
| 28 | + |
|
| 29 | + /** |
|
| 30 | + * Optional. Username of a bot, which will be used for user authorization. See Setting up a bot for more details. |
|
| 31 | + * If not specified, the current bot's username will be assumed. The url's domain must be the same as the domain |
|
| 32 | + * linked with the bot. See Linking your domain to the bot for more details. |
|
| 33 | + */ |
|
| 34 | + public string $bot_username; |
|
| 35 | + |
|
| 36 | + /** Optional. Pass True to request the permission for your bot to send messages to the user. */ |
|
| 37 | + public bool $request_write_access; |
|
| 38 | + |
|
| 39 | + |
|
| 40 | + public function __construct(stdClass $update) { |
|
| 41 | + parent::__construct($update, self::subs); |
|
| 42 | + } |
|
| 43 | 43 | } |
@@ -8,23 +8,23 @@ |
||
| 8 | 8 | * This object contains information about an incoming shipping query. |
| 9 | 9 | */ |
| 10 | 10 | class shippingQuery extends types { |
| 11 | - /** Keep all of properties which has sub properties */ |
|
| 12 | - private const subs = ['from' => 'BPT\types\user', 'shipping_address' => 'BPT\types\shippingAddress']; |
|
| 11 | + /** Keep all of properties which has sub properties */ |
|
| 12 | + private const subs = ['from' => 'BPT\types\user', 'shipping_address' => 'BPT\types\shippingAddress']; |
|
| 13 | 13 | |
| 14 | - /** Unique query identifier */ |
|
| 15 | - public string $id; |
|
| 14 | + /** Unique query identifier */ |
|
| 15 | + public string $id; |
|
| 16 | 16 | |
| 17 | - /** User who sent the query */ |
|
| 18 | - public user $from; |
|
| 17 | + /** User who sent the query */ |
|
| 18 | + public user $from; |
|
| 19 | 19 | |
| 20 | - /** Bot specified invoice payload */ |
|
| 21 | - public string $invoice_payload; |
|
| 20 | + /** Bot specified invoice payload */ |
|
| 21 | + public string $invoice_payload; |
|
| 22 | 22 | |
| 23 | - /** User specified shipping address */ |
|
| 24 | - public shippingAddress $shipping_address; |
|
| 23 | + /** User specified shipping address */ |
|
| 24 | + public shippingAddress $shipping_address; |
|
| 25 | 25 | |
| 26 | 26 | |
| 27 | - public function __construct(stdClass $update) { |
|
| 28 | - parent::__construct($update, self::subs); |
|
| 29 | - } |
|
| 27 | + public function __construct(stdClass $update) { |
|
| 28 | + parent::__construct($update, self::subs); |
|
| 29 | + } |
|
| 30 | 30 | } |