@@ -55,28 +55,28 @@ |
||
| 55 | 55 | * Optional. 0-based identifier of the correct answer option. Available only for polls in the quiz mode, which |
| 56 | 56 | * are closed, or was sent (not forwarded) by the bot or to the private chat with the bot. |
| 57 | 57 | */ |
| 58 | - public null|int $correct_option_id = null; |
|
| 58 | + public null | int $correct_option_id = null; |
|
| 59 | 59 | |
| 60 | 60 | /** |
| 61 | 61 | * Optional. Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style |
| 62 | 62 | * poll, 0-200 characters |
| 63 | 63 | */ |
| 64 | - public null|string $explanation = null; |
|
| 64 | + public null | string $explanation = null; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Optional. Special entities like usernames, URLs, bot commands, etc. that appear in the explanation |
| 68 | 68 | * @var messageEntity[] |
| 69 | 69 | */ |
| 70 | - public null|array $explanation_entities = null; |
|
| 70 | + public null | array $explanation_entities = null; |
|
| 71 | 71 | |
| 72 | 72 | /** Optional. Amount of time in seconds the poll will be active after creation */ |
| 73 | - public null|int $open_period = null; |
|
| 73 | + public null | int $open_period = null; |
|
| 74 | 74 | |
| 75 | 75 | /** Optional. Point in time (Unix timestamp) when the poll will be automatically closed */ |
| 76 | - public null|int $close_date = null; |
|
| 76 | + public null | int $close_date = null; |
|
| 77 | 77 | |
| 78 | 78 | |
| 79 | - public function __construct(stdClass|null $object = null) { |
|
| 79 | + public function __construct(stdClass | null $object = null) { |
|
| 80 | 80 | if ($object != null) { |
| 81 | 81 | parent::__construct($object, self::subs); |
| 82 | 82 | } |
@@ -38,19 +38,19 @@ discard block |
||
| 38 | 38 | * Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events |
| 39 | 39 | * only. |
| 40 | 40 | */ |
| 41 | - public null|chatInviteLink $invite_link = null; |
|
| 41 | + public null | chatInviteLink $invite_link = null; |
|
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Optional. True, if the user joined the chat after sending a direct join request and being approved by an |
| 45 | 45 | * administrator |
| 46 | 46 | */ |
| 47 | - public null|bool $via_join_request = null; |
|
| 47 | + public null | bool $via_join_request = null; |
|
| 48 | 48 | |
| 49 | 49 | /** Optional. True, if the user joined the chat via a chat folder invite link */ |
| 50 | - public null|bool $via_chat_folder_invite_link = null; |
|
| 50 | + public null | bool $via_chat_folder_invite_link = null; |
|
| 51 | 51 | |
| 52 | 52 | |
| 53 | - public function __construct(stdClass|null $object = null) { |
|
| 53 | + public function __construct(stdClass | null $object = null) { |
|
| 54 | 54 | if ($object != null) { |
| 55 | 55 | parent::__construct($object, self::subs); |
| 56 | 56 | } |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * |
| 80 | 80 | * @return bool |
| 81 | 81 | */ |
| 82 | - public function isMe (): bool { |
|
| 82 | + public function isMe(): bool { |
|
| 83 | 83 | return $this->new_chat_member->user->id == settings::$bot_id; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * |
| 116 | 116 | * @return bool |
| 117 | 117 | */ |
| 118 | - public function isLeaved (): bool { |
|
| 118 | + public function isLeaved(): bool { |
|
| 119 | 119 | return $this->new_chat_member->status === chatMemberStatus::LEFT; |
| 120 | 120 | } |
| 121 | 121 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @return bool |
| 126 | 126 | */ |
| 127 | - public function isKicked (): bool { |
|
| 127 | + public function isKicked(): bool { |
|
| 128 | 128 | return $this->new_chat_member->status === chatMemberStatus::KICKED; |
| 129 | 129 | } |
| 130 | 130 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * |
| 134 | 134 | * @return bool |
| 135 | 135 | */ |
| 136 | - public function isOldAdmin (): bool { |
|
| 136 | + public function isOldAdmin(): bool { |
|
| 137 | 137 | return $this->old_chat_member->status === chatMemberStatus::ADMINISTRATOR; |
| 138 | 138 | } |
| 139 | 139 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | * |
| 143 | 143 | * @return bool |
| 144 | 144 | */ |
| 145 | - public function isNewAdmin (): bool { |
|
| 145 | + public function isNewAdmin(): bool { |
|
| 146 | 146 | return $this->new_chat_member->status === chatMemberStatus::ADMINISTRATOR; |
| 147 | 147 | } |
| 148 | 148 | } |