telegram.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Telegram Bot API Access Token [REQUIRED]
  6. |--------------------------------------------------------------------------
  7. |
  8. | Your Telegram's Bot Access Token.
  9. | Example: 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
  10. |
  11. | Refer for more details:
  12. | https://core.telegram.org/bots#botfather
  13. |
  14. */
  15. 'bot_token' => env('TELEGRAM_BOT_TOKEN', '869244226:AAG1K-ku_c7q-8TgaaEKR9k14kEWZ7AqfCs'),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Asynchronous Requests [Optional]
  19. |--------------------------------------------------------------------------
  20. |
  21. | When set to True, All the requests would be made non-blocking (Async).
  22. |
  23. | Default: false
  24. | Possible Values: (Boolean) "true" OR "false"
  25. |
  26. */
  27. 'async_requests' => env('TELEGRAM_ASYNC_REQUESTS', false),
  28. /*
  29. |--------------------------------------------------------------------------
  30. | HTTP Client Handler [Optional]
  31. |--------------------------------------------------------------------------
  32. |
  33. | If you'd like to use a custom HTTP Client Handler.
  34. | Should be an instance of \Telegram\Bot\HttpClients\HttpClientInterface
  35. |
  36. | Default: GuzzlePHP
  37. |
  38. */
  39. 'http_client_handler' => null,
  40. /*
  41. |--------------------------------------------------------------------------
  42. | Register Telegram Commands [Optional]
  43. |--------------------------------------------------------------------------
  44. |
  45. | If you'd like to use the SDK's built in command handler system,
  46. | You can register all the commands here.
  47. |
  48. | The command class should extend the \Telegram\Bot\Commands\Command class.
  49. |
  50. | Default: The SDK registers, a help command which when a user sends /help
  51. | will respond with a list of available commands and description.
  52. |
  53. */
  54. 'commands' => [
  55. Telegram\Bot\Commands\HelpCommand::class,
  56. ],
  57. ];