Свойство | Тип | Описание | |
---|---|---|---|
$bots | The active bot instances. | ||
$config | array | The config instance. | |
$container | Illuminate\Contracts\Container\Container | The container instance. |
Метод | Описание | |
---|---|---|
__call ( string $method, array $parameters ) : mixed | Magically pass methods to the default bot. | |
__construct ( array $config ) | TelegramManager constructor. | |
bot ( string $name = null ) : |
Get a bot instance. | |
disconnect ( string $name = null ) : void | Disconnect from the given bot. | |
getBotConfig ( string | null $name = null ) : array | Get the configuration for a bot. | |
getBots ( ) : |
Return all of the created bots. | |
getConfig ( string $key, mixed $default = null ) : mixed | Get the specified configuration value for Telegram. | |
getDefaultBot ( ) : string | Get the default bot name. | |
reconnect ( string $name = null ) : |
Reconnect to the given bot. | |
setContainer ( Illuminate\Contracts\Container\Container $container ) | Set the IoC Container. | |
setDefaultBot ( string $name ) | Set the default bot name. |
Метод | Описание | |
---|---|---|
deduplicateArray ( array $array ) : array | De-duplicate an array. | |
makeBot ( string $name ) : |
Make the bot instance. | |
parseBotCommands ( array $commands ) : array | Builds the list of commands for the given commands array. | |
parseCommands ( array $commands ) : array | Parse an array of commands and build a list. |
public __construct ( array $config ) | ||
$config | array |
protected deduplicateArray ( array $array ) : array | ||
$array | array | |
Результат | array |
public disconnect ( string $name = null ) : void | ||
$name | string | |
Результат | void |
public getBots ( ) : |
||
Результат |
public getDefaultBot ( ) : string | ||
Результат | string |
protected parseBotCommands ( array $commands ) : array | ||
$commands | array | |
Результат | array | An array of commands which includes global and bot specific commands. |
protected parseCommands ( array $commands ) : array | ||
$commands | array | |
Результат | array |
public setContainer ( Illuminate\Contracts\Container\Container $container ) | ||
$container | Illuminate\Contracts\Container\Container | Container instance |
public setDefaultBot ( string $name ) | ||
$name | string |
protected Api[],Telegram\Bot $bots | ||
Результат |