Encode scope parameter to JSON in SetMyCommands method
This commit is contained in:
parent
c7eec21824
commit
c48dbda47b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
|
||||
if(isset($parameters['scope']) && $parameters['scope'] instanceof ObjectTypeInterface)
|
||||
{
|
||||
$parameters['scope'] = $parameters['scope']->toArray();
|
||||
$parameters['scope'] = json_encode($parameters['scope']->toArray());
|
||||
}
|
||||
|
||||
return (bool)self::executeCurl(self::buildPost($bot, Methods::SET_MY_COMMANDS->value, $parameters));
|
||||
|
|
Loading…
Add table
Reference in a new issue