Return generator

This commit is contained in:
Daniil Gentili 2019-12-28 18:53:37 +01:00
parent a3ad3b5c2f
commit b11b31ce6d

View File

@ -563,9 +563,9 @@ trait BotAPI
*
* @internal
*
* @return array
* @return \Generator<array>
*/
public function parseMode(array $arguments): array
public function parseMode(array $arguments): \Generator
{
if ($arguments['message'] === '' || !isset($arguments['message']) || !isset($arguments['parse_mode'])) {
return $arguments;