@@ -8,41 +8,41 @@ |
||
8 | 8 | * This object represents an audio file to be treated as music by the Telegram clients. |
9 | 9 | */ |
10 | 10 | class audio 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 | - /** Duration of the audio in seconds as defined by sender */ |
|
24 | - public int $duration; |
|
23 | + /** Duration of the audio in seconds as defined by sender */ |
|
24 | + public int $duration; |
|
25 | 25 | |
26 | - /** Optional. Performer of the audio as defined by sender or by audio tags */ |
|
27 | - public string $performer; |
|
26 | + /** Optional. Performer of the audio as defined by sender or by audio tags */ |
|
27 | + public string $performer; |
|
28 | 28 | |
29 | - /** Optional. Title of the audio as defined by sender or by audio tags */ |
|
30 | - public string $title; |
|
29 | + /** Optional. Title of the audio as defined by sender or by audio tags */ |
|
30 | + public string $title; |
|
31 | 31 | |
32 | - /** Optional. Original filename as defined by sender */ |
|
33 | - public string $file_name; |
|
32 | + /** Optional. Original filename as defined by sender */ |
|
33 | + public string $file_name; |
|
34 | 34 | |
35 | - /** Optional. MIME type of the file as defined by sender */ |
|
36 | - public string $mime_type; |
|
35 | + /** Optional. MIME type of the file as defined by sender */ |
|
36 | + public string $mime_type; |
|
37 | 37 | |
38 | - /** Optional. File size in bytes */ |
|
39 | - public int $file_size; |
|
38 | + /** Optional. File size in bytes */ |
|
39 | + public int $file_size; |
|
40 | 40 | |
41 | - /** Optional. Thumbnail of the album cover to which the music file belongs */ |
|
42 | - public photoSize $thumb; |
|
41 | + /** Optional. Thumbnail of the album cover to which the music file belongs */ |
|
42 | + public photoSize $thumb; |
|
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,23 +8,23 @@ |
||
8 | 8 | * Represents a Game. |
9 | 9 | */ |
10 | 10 | class inlineQueryResultGame extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['reply_markup' => 'BPT\types\inlineKeyboardMarkup']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['reply_markup' => 'BPT\types\inlineKeyboardMarkup']; |
|
13 | 13 | |
14 | - /** Type of the result, must be game */ |
|
15 | - public string $type; |
|
14 | + /** Type of the result, must be game */ |
|
15 | + public string $type; |
|
16 | 16 | |
17 | - /** Unique identifier for this result, 1-64 bytes */ |
|
18 | - public string $id; |
|
17 | + /** Unique identifier for this result, 1-64 bytes */ |
|
18 | + public string $id; |
|
19 | 19 | |
20 | - /** Short name of the game */ |
|
21 | - public string $game_short_name; |
|
20 | + /** Short name of the game */ |
|
21 | + public string $game_short_name; |
|
22 | 22 | |
23 | - /** Optional. Inline keyboard attached to the message */ |
|
24 | - public inlineKeyboardMarkup $reply_markup; |
|
23 | + /** Optional. Inline keyboard attached to the message */ |
|
24 | + public inlineKeyboardMarkup $reply_markup; |
|
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 | } |
@@ -8,17 +8,17 @@ |
||
8 | 8 | * Represents the scope of bot commands, covering a specific chat. |
9 | 9 | */ |
10 | 10 | class botCommandScopeChat 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 chat */ |
|
15 | - public string $type; |
|
14 | + /** Scope type, must be chat */ |
|
15 | + public string $type; |
|
16 | 16 | |
17 | - /** Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername) */ |
|
18 | - public int $chat_id; |
|
17 | + /** Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername) */ |
|
18 | + public int $chat_id; |
|
19 | 19 | |
20 | 20 | |
21 | - public function __construct(stdClass $update) { |
|
22 | - parent::__construct($update, self::subs); |
|
23 | - } |
|
21 | + public function __construct(stdClass $update) { |
|
22 | + parent::__construct($update, self::subs); |
|
23 | + } |
|
24 | 24 | } |
@@ -9,10 +9,10 @@ |
||
9 | 9 | * supported: |
10 | 10 | */ |
11 | 11 | class botCommandScope 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 | - public function __construct(stdClass $update) { |
|
16 | - parent::__construct($update, self::subs); |
|
17 | - } |
|
15 | + public function __construct(stdClass $update) { |
|
16 | + parent::__construct($update, self::subs); |
|
17 | + } |
|
18 | 18 | } |
@@ -10,26 +10,26 @@ |
||
10 | 10 | * least 1 hour. When the link expires, a new one can be requested by calling getFile. |
11 | 11 | */ |
12 | 12 | class file extends types { |
13 | - /** Keep all of properties which has sub properties */ |
|
14 | - private const subs = []; |
|
13 | + /** Keep all of properties which has sub properties */ |
|
14 | + private const subs = []; |
|
15 | 15 | |
16 | - /** Identifier for this file, which can be used to download or reuse the file */ |
|
17 | - public string $file_id; |
|
16 | + /** Identifier for this file, which can be used to download or reuse the file */ |
|
17 | + public string $file_id; |
|
18 | 18 | |
19 | - /** |
|
20 | - * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
21 | - * used to download or reuse the file. |
|
22 | - */ |
|
23 | - public string $file_unique_id; |
|
19 | + /** |
|
20 | + * Unique identifier for this file, which is supposed to be the same over time and for different bots. Can't be |
|
21 | + * used to download or reuse the file. |
|
22 | + */ |
|
23 | + public string $file_unique_id; |
|
24 | 24 | |
25 | - /** Optional. File size in bytes, if known */ |
|
26 | - public int $file_size; |
|
25 | + /** Optional. File size in bytes, if known */ |
|
26 | + public int $file_size; |
|
27 | 27 | |
28 | - /** Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. */ |
|
29 | - public string $file_path; |
|
28 | + /** Optional. File path. Use https://api.telegram.org/file/bot<token>/<file_path> to get the file. */ |
|
29 | + public string $file_path; |
|
30 | 30 | |
31 | 31 | |
32 | - public function __construct(stdClass $update) { |
|
33 | - parent::__construct($update, self::subs); |
|
34 | - } |
|
32 | + public function __construct(stdClass $update) { |
|
33 | + parent::__construct($update, self::subs); |
|
34 | + } |
|
35 | 35 | } |
@@ -9,10 +9,10 @@ |
||
9 | 9 | * usual way that files are uploaded via the browser. |
10 | 10 | */ |
11 | 11 | class inputFile 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 | - public function __construct(stdClass $update) { |
|
16 | - parent::__construct($update, self::subs); |
|
17 | - } |
|
15 | + public function __construct(stdClass $update) { |
|
16 | + parent::__construct($update, self::subs); |
|
17 | + } |
|
18 | 18 | } |
@@ -8,45 +8,45 @@ |
||
8 | 8 | * Represents a general file to be sent. |
9 | 9 | */ |
10 | 10 | class inputMediaDocument extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['thumb' => 'BPT\types\inputFile']; |
|
13 | - |
|
14 | - /** Type of the result, must be document */ |
|
15 | - public string $type; |
|
16 | - |
|
17 | - /** |
|
18 | - * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP |
|
19 | - * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new |
|
20 | - * one using multipart/form-data under <file_attach_name> name. More info on Sending Files » |
|
21 | - */ |
|
22 | - public string $media; |
|
23 | - |
|
24 | - /** |
|
25 | - * Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported |
|
26 | - * server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and |
|
27 | - * height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't |
|
28 | - * be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the |
|
29 | - * thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » |
|
30 | - */ |
|
31 | - public inputFile $thumb; |
|
32 | - |
|
33 | - /** Optional. Caption of the document to be sent, 0-1024 characters after entities parsing */ |
|
34 | - public string $caption; |
|
35 | - |
|
36 | - /** Optional. Mode for parsing entities in the document caption. See formatting options for more details. */ |
|
37 | - public string $parse_mode; |
|
38 | - |
|
39 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
40 | - public array $caption_entities; |
|
41 | - |
|
42 | - /** |
|
43 | - * Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. |
|
44 | - * Always True, if the document is sent as part of an album. |
|
45 | - */ |
|
46 | - public bool $disable_content_type_detection; |
|
47 | - |
|
48 | - |
|
49 | - public function __construct(stdClass $update) { |
|
50 | - parent::__construct($update, self::subs); |
|
51 | - } |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['thumb' => 'BPT\types\inputFile']; |
|
13 | + |
|
14 | + /** Type of the result, must be document */ |
|
15 | + public string $type; |
|
16 | + |
|
17 | + /** |
|
18 | + * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP |
|
19 | + * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new |
|
20 | + * one using multipart/form-data under <file_attach_name> name. More info on Sending Files » |
|
21 | + */ |
|
22 | + public string $media; |
|
23 | + |
|
24 | + /** |
|
25 | + * Optional. Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported |
|
26 | + * server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and |
|
27 | + * height should not exceed 320. Ignored if the file is not uploaded using multipart/form-data. Thumbnails can't |
|
28 | + * be reused and can be only uploaded as a new file, so you can pass “attach://<file_attach_name>” if the |
|
29 | + * thumbnail was uploaded using multipart/form-data under <file_attach_name>. More info on Sending Files » |
|
30 | + */ |
|
31 | + public inputFile $thumb; |
|
32 | + |
|
33 | + /** Optional. Caption of the document to be sent, 0-1024 characters after entities parsing */ |
|
34 | + public string $caption; |
|
35 | + |
|
36 | + /** Optional. Mode for parsing entities in the document caption. See formatting options for more details. */ |
|
37 | + public string $parse_mode; |
|
38 | + |
|
39 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
40 | + public array $caption_entities; |
|
41 | + |
|
42 | + /** |
|
43 | + * Optional. Disables automatic server-side content type detection for files uploaded using multipart/form-data. |
|
44 | + * Always True, if the document is sent as part of an album. |
|
45 | + */ |
|
46 | + public bool $disable_content_type_detection; |
|
47 | + |
|
48 | + |
|
49 | + public function __construct(stdClass $update) { |
|
50 | + parent::__construct($update, self::subs); |
|
51 | + } |
|
52 | 52 | } |
@@ -8,20 +8,20 @@ |
||
8 | 8 | * Represents the scope of bot commands, covering a specific member of a group or supergroup chat. |
9 | 9 | */ |
10 | 10 | class botCommandScopeChatMember 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 chat_member */ |
|
15 | - public string $type; |
|
14 | + /** Scope type, must be chat_member */ |
|
15 | + public string $type; |
|
16 | 16 | |
17 | - /** Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername) */ |
|
18 | - public int $chat_id; |
|
17 | + /** Unique identifier for the target chat or username of the target supergroup (in the format supergroupusername) */ |
|
18 | + public int $chat_id; |
|
19 | 19 | |
20 | - /** Unique identifier of the target user */ |
|
21 | - public int $user_id; |
|
20 | + /** Unique identifier of the target user */ |
|
21 | + public int $user_id; |
|
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,30 +8,30 @@ |
||
8 | 8 | * Represents a photo to be sent. |
9 | 9 | */ |
10 | 10 | class inputMediaPhoto 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 | - /** Type of the result, must be photo */ |
|
15 | - public string $type; |
|
14 | + /** Type of the result, must be photo */ |
|
15 | + public string $type; |
|
16 | 16 | |
17 | - /** |
|
18 | - * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP |
|
19 | - * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new |
|
20 | - * one using multipart/form-data under <file_attach_name> name. More info on Sending Files » |
|
21 | - */ |
|
22 | - public string $media; |
|
17 | + /** |
|
18 | + * File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), pass an HTTP |
|
19 | + * URL for Telegram to get a file from the Internet, or pass “attach://<file_attach_name>” to upload a new |
|
20 | + * one using multipart/form-data under <file_attach_name> name. More info on Sending Files » |
|
21 | + */ |
|
22 | + public string $media; |
|
23 | 23 | |
24 | - /** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */ |
|
25 | - public string $caption; |
|
24 | + /** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */ |
|
25 | + public string $caption; |
|
26 | 26 | |
27 | - /** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */ |
|
28 | - public string $parse_mode; |
|
27 | + /** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */ |
|
28 | + public string $parse_mode; |
|
29 | 29 | |
30 | - /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
31 | - public array $caption_entities; |
|
30 | + /** Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode */ |
|
31 | + public array $caption_entities; |
|
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 | } |