123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- return [
- /*
- |--------------------------------------------------------------------------
- | Telegram Bot API Access Token [REQUIRED]
- |--------------------------------------------------------------------------
- |
- | Your Telegram's Bot Access Token.
- | Example: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
- |
- | Refer for more details:
- | https://core.telegram.org/bots#botfather
- |
- */
- 'bot_token' => env('TELEGRAM_BOT_TOKEN', '869244226:AAG1K-ku_c7q-8TgaaEKR9k14kEWZ7AqfCs'),
- /*
- |--------------------------------------------------------------------------
- | Asynchronous Requests [Optional]
- |--------------------------------------------------------------------------
- |
- | When set to True, All the requests would be made non-blocking (Async).
- |
- | Default: false
- | Possible Values: (Boolean) "true" OR "false"
- |
- */
- 'async_requests' => env('TELEGRAM_ASYNC_REQUESTS', false),
- /*
- |--------------------------------------------------------------------------
- | HTTP Client Handler [Optional]
- |--------------------------------------------------------------------------
- |
- | If you'd like to use a custom HTTP Client Handler.
- | Should be an instance of \Telegram\Bot\HttpClients\HttpClientInterface
- |
- | Default: GuzzlePHP
- |
- */
- 'http_client_handler' => null,
- /*
- |--------------------------------------------------------------------------
- | Register Telegram Commands [Optional]
- |--------------------------------------------------------------------------
- |
- | If you'd like to use the SDK's built in command handler system,
- | You can register all the commands here.
- |
- | The command class should extend the \Telegram\Bot\Commands\Command class.
- |
- | Default: The SDK registers, a help command which when a user sends /help
- | will respond with a list of available commands and description.
- |
- */
- 'commands' => [
- Telegram\Bot\Commands\HelpCommand::class,
- \App\TCommands\TestCommand::class,
- \App\TCommands\MyEmail::class
- ],
- ];
|