Return generator
This commit is contained in:
parent
a3ad3b5c2f
commit
b11b31ce6d
@ -563,9 +563,9 @@ trait BotAPI
|
|||||||
*
|
*
|
||||||
* @internal
|
* @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'])) {
|
if ($arguments['message'] === '' || !isset($arguments['message']) || !isset($arguments['parse_mode'])) {
|
||||||
return $arguments;
|
return $arguments;
|
||||||
|
Loading…
Reference in New Issue
Block a user