@@ -8,17 +8,17 @@ |
||
8 | 8 | * Represents a location to which a chat is connected. |
9 | 9 | */ |
10 | 10 | class chatLocation extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = ['location' => 'BPT\types\location']; |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = ['location' => 'BPT\types\location']; |
|
13 | 13 | |
14 | - /** The location to which the supergroup is connected. Can't be a live location. */ |
|
15 | - public location $location; |
|
14 | + /** The location to which the supergroup is connected. Can't be a live location. */ |
|
15 | + public location $location; |
|
16 | 16 | |
17 | - /** Location address; 1-64 characters, as defined by the chat owner */ |
|
18 | - public string $address; |
|
17 | + /** Location address; 1-64 characters, as defined by the chat owner */ |
|
18 | + public string $address; |
|
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 | } |
@@ -10,44 +10,44 @@ |
||
10 | 10 | * specified content instead of the photo. |
11 | 11 | */ |
12 | 12 | class inlineQueryResultCachedPhoto 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 photo */ |
|
20 | - public string $type; |
|
19 | + /** Type of the result, must be photo */ |
|
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 of the photo */ |
|
26 | - public string $photo_file_id; |
|
25 | + /** A valid file identifier of the photo */ |
|
26 | + public string $photo_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. 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 photo to be sent, 0-1024 characters after entities parsing */ |
|
35 | - public string $caption; |
|
34 | + /** Optional. Caption of the photo to be sent, 0-1024 characters after entities parsing */ |
|
35 | + public string $caption; |
|
36 | 36 | |
37 | - /** Optional. Mode for parsing entities in the photo caption. See formatting options for more details. */ |
|
38 | - public string $parse_mode; |
|
37 | + /** Optional. Mode for parsing entities in the photo 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 photo */ |
|
47 | - public inputMessageContent $input_message_content; |
|
46 | + /** Optional. Content of the message to be sent instead of the photo */ |
|
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,35 +8,35 @@ |
||
8 | 8 | * This object represents a chat photo. |
9 | 9 | */ |
10 | 10 | class chatPhoto extends types { |
11 | - /** Keep all of properties which has sub properties */ |
|
12 | - private const subs = []; |
|
13 | - |
|
14 | - /** |
|
15 | - * File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for |
|
16 | - * as long as the photo is not changed. |
|
17 | - */ |
|
18 | - public string $small_file_id; |
|
19 | - |
|
20 | - /** |
|
21 | - * Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for |
|
22 | - * different bots. Can't be used to download or reuse the file. |
|
23 | - */ |
|
24 | - public string $small_file_unique_id; |
|
25 | - |
|
26 | - /** |
|
27 | - * File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as |
|
28 | - * long as the photo is not changed. |
|
29 | - */ |
|
30 | - public string $big_file_id; |
|
31 | - |
|
32 | - /** |
|
33 | - * Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for |
|
34 | - * different bots. Can't be used to download or reuse the file. |
|
35 | - */ |
|
36 | - public string $big_file_unique_id; |
|
37 | - |
|
38 | - |
|
39 | - public function __construct(stdClass $update) { |
|
40 | - parent::__construct($update, self::subs); |
|
41 | - } |
|
11 | + /** Keep all of properties which has sub properties */ |
|
12 | + private const subs = []; |
|
13 | + |
|
14 | + /** |
|
15 | + * File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for |
|
16 | + * as long as the photo is not changed. |
|
17 | + */ |
|
18 | + public string $small_file_id; |
|
19 | + |
|
20 | + /** |
|
21 | + * Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for |
|
22 | + * different bots. Can't be used to download or reuse the file. |
|
23 | + */ |
|
24 | + public string $small_file_unique_id; |
|
25 | + |
|
26 | + /** |
|
27 | + * File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as |
|
28 | + * long as the photo is not changed. |
|
29 | + */ |
|
30 | + public string $big_file_id; |
|
31 | + |
|
32 | + /** |
|
33 | + * Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for |
|
34 | + * different bots. Can't be used to download or reuse the file. |
|
35 | + */ |
|
36 | + public string $big_file_unique_id; |
|
37 | + |
|
38 | + |
|
39 | + public function __construct(stdClass $update) { |
|
40 | + parent::__construct($update, self::subs); |
|
41 | + } |
|
42 | 42 | } |
@@ -8,52 +8,52 @@ |
||
8 | 8 | * Represents the rights of an administrator in a chat. |
9 | 9 | */ |
10 | 10 | class chatAdministratorRights 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 | - /** True, if the user's presence in the chat is hidden */ |
|
15 | - public bool $is_anonymous; |
|
14 | + /** True, if the user's presence in the chat is hidden */ |
|
15 | + public bool $is_anonymous; |
|
16 | 16 | |
17 | - /** |
|
18 | - * True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see |
|
19 | - * channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other |
|
20 | - * administrator privilege |
|
21 | - */ |
|
22 | - public bool $can_manage_chat; |
|
17 | + /** |
|
18 | + * True, if the administrator can access the chat event log, chat statistics, message statistics in channels, see |
|
19 | + * channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other |
|
20 | + * administrator privilege |
|
21 | + */ |
|
22 | + public bool $can_manage_chat; |
|
23 | 23 | |
24 | - /** True, if the administrator can delete messages of other users */ |
|
25 | - public bool $can_delete_messages; |
|
24 | + /** True, if the administrator can delete messages of other users */ |
|
25 | + public bool $can_delete_messages; |
|
26 | 26 | |
27 | - /** True, if the administrator can manage video chats */ |
|
28 | - public bool $can_manage_video_chats; |
|
27 | + /** True, if the administrator can manage video chats */ |
|
28 | + public bool $can_manage_video_chats; |
|
29 | 29 | |
30 | - /** True, if the administrator can restrict, ban or unban chat members */ |
|
31 | - public bool $can_restrict_members; |
|
30 | + /** True, if the administrator can restrict, ban or unban chat members */ |
|
31 | + public bool $can_restrict_members; |
|
32 | 32 | |
33 | - /** |
|
34 | - * True, if the administrator can add new administrators with a subset of their own privileges or demote |
|
35 | - * administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by |
|
36 | - * the user) |
|
37 | - */ |
|
38 | - public bool $can_promote_members; |
|
33 | + /** |
|
34 | + * True, if the administrator can add new administrators with a subset of their own privileges or demote |
|
35 | + * administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by |
|
36 | + * the user) |
|
37 | + */ |
|
38 | + public bool $can_promote_members; |
|
39 | 39 | |
40 | - /** True, if the user is allowed to change the chat title, photo and other settings */ |
|
41 | - public bool $can_change_info; |
|
40 | + /** True, if the user is allowed to change the chat title, photo and other settings */ |
|
41 | + public bool $can_change_info; |
|
42 | 42 | |
43 | - /** True, if the user is allowed to invite new users to the chat */ |
|
44 | - public bool $can_invite_users; |
|
43 | + /** True, if the user is allowed to invite new users to the chat */ |
|
44 | + public bool $can_invite_users; |
|
45 | 45 | |
46 | - /** Optional. True, if the administrator can post in the channel; channels only */ |
|
47 | - public bool $can_post_messages; |
|
46 | + /** Optional. True, if the administrator can post in the channel; channels only */ |
|
47 | + public bool $can_post_messages; |
|
48 | 48 | |
49 | - /** Optional. True, if the administrator can edit messages of other users and can pin messages; channels only */ |
|
50 | - public bool $can_edit_messages; |
|
49 | + /** Optional. True, if the administrator can edit messages of other users and can pin messages; channels only */ |
|
50 | + public bool $can_edit_messages; |
|
51 | 51 | |
52 | - /** Optional. True, if the user is allowed to pin messages; groups and supergroups only */ |
|
53 | - public bool $can_pin_messages; |
|
52 | + /** Optional. True, if the user is allowed to pin messages; groups and supergroups only */ |
|
53 | + public bool $can_pin_messages; |
|
54 | 54 | |
55 | 55 | |
56 | - public function __construct(stdClass $update) { |
|
57 | - parent::__construct($update, self::subs); |
|
58 | - } |
|
56 | + public function __construct(stdClass $update) { |
|
57 | + parent::__construct($update, self::subs); |
|
58 | + } |
|
59 | 59 | } |
@@ -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 | } |