1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:34:40 +01:00
This commit is contained in:
Daniil Gentili 2020-01-16 20:23:39 +01:00
parent 170308d574
commit 489ce873d0
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -567,7 +567,7 @@ trait BotAPI
*/ */
public function parseMode(array $arguments): \Generator public function parseMode(array $arguments): \Generator
{ {
if ($arguments['message'] === '' || !isset($arguments['message']) || !isset($arguments['parse_mode'])) { if (($arguments['message'] ?? '') === '' || !isset($arguments['parse_mode'])) {
return $arguments; return $arguments;
} }
if (isset($arguments['parse_mode']['_'])) { if (isset($arguments['parse_mode']['_'])) {