@@ -9,14 +9,14 @@ |
||
| 9 | 9 | * are specified for the user. |
| 10 | 10 | */ |
| 11 | 11 | class botCommandScopeDefault extends types { |
| 12 | - /** Keep all of properties which has sub properties */ |
|
| 13 | - private const subs = []; |
|
| 12 | + /** Keep all of properties which has sub properties */ |
|
| 13 | + private const subs = []; |
|
| 14 | 14 | |
| 15 | - /** Scope type, must be default */ |
|
| 16 | - public string $type; |
|
| 15 | + /** Scope type, must be default */ |
|
| 16 | + public string $type; |
|
| 17 | 17 | |
| 18 | 18 | |
| 19 | - public function __construct(stdClass $update) { |
|
| 20 | - parent::__construct($update, self::subs); |
|
| 21 | - } |
|
| 19 | + public function __construct(stdClass $update) { |
|
| 20 | + parent::__construct($update, self::subs); |
|
| 21 | + } |
|
| 22 | 22 | } |
@@ -8,38 +8,38 @@ |
||
| 8 | 8 | * Represents the content of a venue message to be sent as the result of an inline query. |
| 9 | 9 | */ |
| 10 | 10 | class inputVenueMessageContent 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 venue in degrees */ |
|
| 15 | - public float $latitude; |
|
| 14 | + /** Latitude of the venue in degrees */ |
|
| 15 | + public float $latitude; |
|
| 16 | 16 | |
| 17 | - /** Longitude of the venue in degrees */ |
|
| 18 | - public float $longitude; |
|
| 17 | + /** Longitude of the venue in degrees */ |
|
| 18 | + public float $longitude; |
|
| 19 | 19 | |
| 20 | - /** Name of the venue */ |
|
| 21 | - public string $title; |
|
| 20 | + /** Name of the venue */ |
|
| 21 | + public string $title; |
|
| 22 | 22 | |
| 23 | - /** Address of the venue */ |
|
| 24 | - public string $address; |
|
| 23 | + /** Address of the venue */ |
|
| 24 | + public string $address; |
|
| 25 | 25 | |
| 26 | - /** Optional. Foursquare identifier of the venue, if known */ |
|
| 27 | - public string $foursquare_id; |
|
| 26 | + /** Optional. Foursquare identifier of the venue, if known */ |
|
| 27 | + public string $foursquare_id; |
|
| 28 | 28 | |
| 29 | - /** |
|
| 30 | - * Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, |
|
| 31 | - * “arts_entertainment/aquarium” or “food/icecream”.) |
|
| 32 | - */ |
|
| 33 | - public string $foursquare_type; |
|
| 29 | + /** |
|
| 30 | + * Optional. Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, |
|
| 31 | + * “arts_entertainment/aquarium” or “food/icecream”.) |
|
| 32 | + */ |
|
| 33 | + public string $foursquare_type; |
|
| 34 | 34 | |
| 35 | - /** Optional. Google Places identifier of the venue */ |
|
| 36 | - public string $google_place_id; |
|
| 35 | + /** Optional. Google Places identifier of the venue */ |
|
| 36 | + public string $google_place_id; |
|
| 37 | 37 | |
| 38 | - /** Optional. Google Places type of the venue. (See supported types.) */ |
|
| 39 | - public string $google_place_type; |
|
| 38 | + /** Optional. Google Places type of the venue. (See supported types.) */ |
|
| 39 | + public string $google_place_type; |
|
| 40 | 40 | |
| 41 | 41 | |
| 42 | - public function __construct(stdClass $update) { |
|
| 43 | - parent::__construct($update, self::subs); |
|
| 44 | - } |
|
| 42 | + public function __construct(stdClass $update) { |
|
| 43 | + parent::__construct($update, self::subs); |
|
| 44 | + } |
|
| 45 | 45 | } |
@@ -8,30 +8,30 @@ |
||
| 8 | 8 | * This object contains basic information about an invoice. |
| 9 | 9 | */ |
| 10 | 10 | class invoice 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 | - /** Product name */ |
|
| 15 | - public string $title; |
|
| 14 | + /** Product name */ |
|
| 15 | + public string $title; |
|
| 16 | 16 | |
| 17 | - /** Product description */ |
|
| 18 | - public string $description; |
|
| 17 | + /** Product description */ |
|
| 18 | + public string $description; |
|
| 19 | 19 | |
| 20 | - /** Unique bot deep-linking parameter that can be used to generate this invoice */ |
|
| 21 | - public string $start_parameter; |
|
| 20 | + /** Unique bot deep-linking parameter that can be used to generate this invoice */ |
|
| 21 | + public string $start_parameter; |
|
| 22 | 22 | |
| 23 | - /** Three-letter ISO 4217 currency code */ |
|
| 24 | - public string $currency; |
|
| 23 | + /** Three-letter ISO 4217 currency code */ |
|
| 24 | + public string $currency; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ |
|
| 28 | - * 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the |
|
| 29 | - * decimal point for each currency (2 for the majority of currencies). |
|
| 30 | - */ |
|
| 31 | - public int $total_amount; |
|
| 26 | + /** |
|
| 27 | + * Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ |
|
| 28 | + * 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the |
|
| 29 | + * decimal point for each currency (2 for the majority of currencies). |
|
| 30 | + */ |
|
| 31 | + public int $total_amount; |
|
| 32 | 32 | |
| 33 | 33 | |
| 34 | - public function __construct(stdClass $update) { |
|
| 35 | - parent::__construct($update, self::subs); |
|
| 36 | - } |
|
| 34 | + public function __construct(stdClass $update) { |
|
| 35 | + parent::__construct($update, self::subs); |
|
| 36 | + } |
|
| 37 | 37 | } |
@@ -10,44 +10,44 @@ |
||
| 10 | 10 | * specified content instead of the file. |
| 11 | 11 | */ |
| 12 | 12 | class inlineQueryResultCachedDocument 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 document */ |
|
| 20 | - public string $type; |
|
| 19 | + /** Type of the result, must be document */ |
|
| 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 | - /** Title for the result */ |
|
| 26 | - public string $title; |
|
| 25 | + /** Title for the result */ |
|
| 26 | + public string $title; |
|
| 27 | 27 | |
| 28 | - /** A valid file identifier for the file */ |
|
| 29 | - public string $document_file_id; |
|
| 28 | + /** A valid file identifier for the file */ |
|
| 29 | + public string $document_file_id; |
|
| 30 | 30 | |
| 31 | - /** Optional. Short description of the result */ |
|
| 32 | - public string $description; |
|
| 31 | + /** Optional. Short description of the result */ |
|
| 32 | + public string $description; |
|
| 33 | 33 | |
| 34 | - /** Optional. Caption of the document to be sent, 0-1024 characters after entities parsing */ |
|
| 35 | - public string $caption; |
|
| 34 | + /** Optional. Caption of the document to be sent, 0-1024 characters after entities parsing */ |
|
| 35 | + public string $caption; |
|
| 36 | 36 | |
| 37 | - /** Optional. Mode for parsing entities in the document caption. See formatting options for more details. */ |
|
| 38 | - public string $parse_mode; |
|
| 37 | + /** Optional. Mode for parsing entities in the document caption. See formatting options for more details. */ |
|
| 38 | + public string $parse_mode; |
|
| 39 | 39 | |
| 40 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
| 41 | - public array $caption_entities; |
|
| 40 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
| 41 | + public array $caption_entities; |
|
| 42 | 42 | |
| 43 | - /** Optional. Inline keyboard attached to the message */ |
|
| 44 | - public inlineKeyboardMarkup $reply_markup; |
|
| 43 | + /** Optional. Inline keyboard attached to the message */ |
|
| 44 | + public inlineKeyboardMarkup $reply_markup; |
|
| 45 | 45 | |
| 46 | - /** Optional. Content of the message to be sent instead of the file */ |
|
| 47 | - public inputMessageContent $input_message_content; |
|
| 46 | + /** Optional. Content of the message to be sent instead of the file */ |
|
| 47 | + public inputMessageContent $input_message_content; |
|
| 48 | 48 | |
| 49 | 49 | |
| 50 | - public function __construct(stdClass $update) { |
|
| 51 | - parent::__construct($update, self::subs); |
|
| 52 | - } |
|
| 50 | + public function __construct(stdClass $update) { |
|
| 51 | + parent::__construct($update, self::subs); |
|
| 52 | + } |
|
| 53 | 53 | } |
@@ -8,14 +8,14 @@ |
||
| 8 | 8 | * This object represents an inline keyboard that appears right next to the message it belongs to. |
| 9 | 9 | */ |
| 10 | 10 | class inlineKeyboardMarkup 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 | - /** Array of button rows, each represented by an Array of InlineKeyboardButton objects */ |
|
| 15 | - public array $inline_keyboard; |
|
| 14 | + /** Array of button rows, each represented by an Array of InlineKeyboardButton objects */ |
|
| 15 | + public array $inline_keyboard; |
|
| 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 | } |
@@ -10,44 +10,44 @@ |
||
| 10 | 10 | * specified content instead of the video. |
| 11 | 11 | */ |
| 12 | 12 | class inlineQueryResultCachedVideo 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 video */ |
|
| 20 | - public string $type; |
|
| 19 | + /** Type of the result, must be video */ |
|
| 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 video file */ |
|
| 26 | - public string $video_file_id; |
|
| 25 | + /** A valid file identifier for the video file */ |
|
| 26 | + public string $video_file_id; |
|
| 27 | 27 | |
| 28 | - /** Title for the result */ |
|
| 29 | - public string $title; |
|
| 28 | + /** Title for the result */ |
|
| 29 | + public string $title; |
|
| 30 | 30 | |
| 31 | - /** Optional. Short description of the result */ |
|
| 32 | - public string $description; |
|
| 31 | + /** Optional. Short description of the result */ |
|
| 32 | + public string $description; |
|
| 33 | 33 | |
| 34 | - /** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */ |
|
| 35 | - public string $caption; |
|
| 34 | + /** Optional. Caption of the video to be sent, 0-1024 characters after entities parsing */ |
|
| 35 | + public string $caption; |
|
| 36 | 36 | |
| 37 | - /** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */ |
|
| 38 | - public string $parse_mode; |
|
| 37 | + /** Optional. Mode for parsing entities in the video caption. See formatting options for more details. */ |
|
| 38 | + public string $parse_mode; |
|
| 39 | 39 | |
| 40 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
| 41 | - public array $caption_entities; |
|
| 40 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
| 41 | + public array $caption_entities; |
|
| 42 | 42 | |
| 43 | - /** Optional. Inline keyboard attached to the message */ |
|
| 44 | - public inlineKeyboardMarkup $reply_markup; |
|
| 43 | + /** Optional. Inline keyboard attached to the message */ |
|
| 44 | + public inlineKeyboardMarkup $reply_markup; |
|
| 45 | 45 | |
| 46 | - /** Optional. Content of the message to be sent instead of the video */ |
|
| 47 | - public inputMessageContent $input_message_content; |
|
| 46 | + /** Optional. Content of the message to be sent instead of the video */ |
|
| 47 | + public inputMessageContent $input_message_content; |
|
| 48 | 48 | |
| 49 | 49 | |
| 50 | - public function __construct(stdClass $update) { |
|
| 51 | - parent::__construct($update, self::subs); |
|
| 52 | - } |
|
| 50 | + public function __construct(stdClass $update) { |
|
| 51 | + parent::__construct($update, self::subs); |
|
| 52 | + } |
|
| 53 | 53 | } |
@@ -9,23 +9,23 @@ |
||
| 9 | 9 | * Documentation for a complete description of the data decryption and authentication processes. |
| 10 | 10 | */ |
| 11 | 11 | class encryptedCredentials extends types { |
| 12 | - /** Keep all of properties which has sub properties */ |
|
| 13 | - private const subs = []; |
|
| 12 | + /** Keep all of properties which has sub properties */ |
|
| 13 | + private const subs = []; |
|
| 14 | 14 | |
| 15 | - /** |
|
| 16 | - * Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for |
|
| 17 | - * EncryptedPassportElement decryption and authentication |
|
| 18 | - */ |
|
| 19 | - public string $data; |
|
| 15 | + /** |
|
| 16 | + * Base64-encoded encrypted JSON-serialized data with unique user's payload, data hashes and secrets required for |
|
| 17 | + * EncryptedPassportElement decryption and authentication |
|
| 18 | + */ |
|
| 19 | + public string $data; |
|
| 20 | 20 | |
| 21 | - /** Base64-encoded data hash for data authentication */ |
|
| 22 | - public string $hash; |
|
| 21 | + /** Base64-encoded data hash for data authentication */ |
|
| 22 | + public string $hash; |
|
| 23 | 23 | |
| 24 | - /** Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption */ |
|
| 25 | - public string $secret; |
|
| 24 | + /** Base64-encoded secret, encrypted with the bot's public RSA key, required for data decryption */ |
|
| 25 | + public string $secret; |
|
| 26 | 26 | |
| 27 | 27 | |
| 28 | - public function __construct(stdClass $update) { |
|
| 29 | - parent::__construct($update, self::subs); |
|
| 30 | - } |
|
| 28 | + public function __construct(stdClass $update) { |
|
| 29 | + parent::__construct($update, self::subs); |
|
| 30 | + } |
|
| 31 | 31 | } |
@@ -8,10 +8,10 @@ |
||
| 8 | 8 | * This object represents the content of a media message to be sent. It should be one of |
| 9 | 9 | */ |
| 10 | 10 | class inputMedia 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 | - public function __construct(stdClass $update) { |
|
| 15 | - parent::__construct($update, self::subs); |
|
| 16 | - } |
|
| 14 | + public function __construct(stdClass $update) { |
|
| 15 | + parent::__construct($update, self::subs); |
|
| 16 | + } |
|
| 17 | 17 | } |
@@ -9,47 +9,47 @@ |
||
| 9 | 9 | * you can use input_message_content to send a message with the specified content instead of the contact. |
| 10 | 10 | */ |
| 11 | 11 | class inlineQueryResultContact extends types { |
| 12 | - /** Keep all of properties which has sub properties */ |
|
| 13 | - private const subs = [ |
|
| 14 | - 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
| 15 | - 'input_message_content' => 'BPT\types\inputMessageContent', |
|
| 16 | - ]; |
|
| 12 | + /** Keep all of properties which has sub properties */ |
|
| 13 | + private const subs = [ |
|
| 14 | + 'reply_markup' => 'BPT\types\inlineKeyboardMarkup', |
|
| 15 | + 'input_message_content' => 'BPT\types\inputMessageContent', |
|
| 16 | + ]; |
|
| 17 | 17 | |
| 18 | - /** Type of the result, must be contact */ |
|
| 19 | - public string $type; |
|
| 18 | + /** Type of the result, must be contact */ |
|
| 19 | + public string $type; |
|
| 20 | 20 | |
| 21 | - /** Unique identifier for this result, 1-64 Bytes */ |
|
| 22 | - public string $id; |
|
| 21 | + /** Unique identifier for this result, 1-64 Bytes */ |
|
| 22 | + public string $id; |
|
| 23 | 23 | |
| 24 | - /** Contact's phone number */ |
|
| 25 | - public string $phone_number; |
|
| 24 | + /** Contact's phone number */ |
|
| 25 | + public string $phone_number; |
|
| 26 | 26 | |
| 27 | - /** Contact's first name */ |
|
| 28 | - public string $first_name; |
|
| 27 | + /** Contact's first name */ |
|
| 28 | + public string $first_name; |
|
| 29 | 29 | |
| 30 | - /** Optional. Contact's last name */ |
|
| 31 | - public string $last_name; |
|
| 30 | + /** Optional. Contact's last name */ |
|
| 31 | + public string $last_name; |
|
| 32 | 32 | |
| 33 | - /** Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */ |
|
| 34 | - public string $vcard; |
|
| 33 | + /** Optional. Additional data about the contact in the form of a vCard, 0-2048 bytes */ |
|
| 34 | + public string $vcard; |
|
| 35 | 35 | |
| 36 | - /** Optional. Inline keyboard attached to the message */ |
|
| 37 | - public inlineKeyboardMarkup $reply_markup; |
|
| 36 | + /** Optional. Inline keyboard attached to the message */ |
|
| 37 | + public inlineKeyboardMarkup $reply_markup; |
|
| 38 | 38 | |
| 39 | - /** Optional. Content of the message to be sent instead of the contact */ |
|
| 40 | - public inputMessageContent $input_message_content; |
|
| 39 | + /** Optional. Content of the message to be sent instead of the contact */ |
|
| 40 | + public inputMessageContent $input_message_content; |
|
| 41 | 41 | |
| 42 | - /** Optional. Url of the thumbnail for the result */ |
|
| 43 | - public string $thumb_url; |
|
| 42 | + /** Optional. Url of the thumbnail for the result */ |
|
| 43 | + public string $thumb_url; |
|
| 44 | 44 | |
| 45 | - /** Optional. Thumbnail width */ |
|
| 46 | - public int $thumb_width; |
|
| 45 | + /** Optional. Thumbnail width */ |
|
| 46 | + public int $thumb_width; |
|
| 47 | 47 | |
| 48 | - /** Optional. Thumbnail height */ |
|
| 49 | - public int $thumb_height; |
|
| 48 | + /** Optional. Thumbnail height */ |
|
| 49 | + public int $thumb_height; |
|
| 50 | 50 | |
| 51 | 51 | |
| 52 | - public function __construct(stdClass $update) { |
|
| 53 | - parent::__construct($update, self::subs); |
|
| 54 | - } |
|
| 52 | + public function __construct(stdClass $update) { |
|
| 53 | + parent::__construct($update, self::subs); |
|
| 54 | + } |
|
| 55 | 55 | } |