You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide further variables to all commands by using setCommandConfig() with an empty command name
Summary
in Telegram.php one could change function getCommandConfig() f.e. as follows :
public function getCommandConfig($command)
{
$config=isset($this->commands_config[$command]) ? $this->commands_config[$command] : [];
if (isset($this->commands_config[''])) $config=array_merge($this->commands_config[''],$config);
return $config;
}
🎉 Feature Request
Provide further variables to all commands by using setCommandConfig() with an empty command name
Summary
in Telegram.php one could change function getCommandConfig() f.e. as follows :
then, using
it is possible to add extra variables to all commands on top of variables for a particular command.
Existing 'general' keys are replaced by (if present) keys for a particular command.
The text was updated successfully, but these errors were encountered: