Skip to content

Instantly share code, notes, and snippets.

@greenplugin

greenplugin/telegram.yaml

Last active Nov 10, 2020
Embed
What would you like to do?
parameters:
telegram.token: '%env(TELEGRAM_TOKEN)%'
telegram.webhook_secret: '%env(TELEGRAM_WEBHOOK_SECRET)%'
services:
GuzzleHttp\Client:
arguments:
- { timeout: 120}
Http\Factory\Guzzle\RequestFactory:
Http\Factory\Guzzle\StreamFactory:
Psr\Http\Message\RequestFactoryInterface: '@Http\Factory\Guzzle\RequestFactory'
Psr\Http\Message\StreamFactoryInterface: '@Http\Factory\Guzzle\StreamFactory'
Http\Adapter\Guzzle6\Client:
arguments:
- '@GuzzleHttp\Client'
Psr\Http\Client\ClientInterface: '@Http\Adapter\Guzzle6\Client'
TgBotApi\BotApiBase\BotApiNormalizer:
TgBotApi\BotApiBase\NormalizerInterface: '@TgBotApi\BotApiBase\BotApiNormalizer'
TgBotApi\BotApiBase\ApiClientInterface:
class: TgBotApi\BotApiBase\ApiClient
arguments:
- '@Psr\Http\Message\RequestFactoryInterface'
- '@Psr\Http\Message\StreamFactoryInterface'
- '@Psr\Http\Client\ClientInterface'
TgBotApi\BotApiBase\WebhookFetcherInterface:
class: TgBotApi\BotApiBase\WebhookFetcher
arguments:
- '@TgBotApi\BotApiBase\NormalizerInterface'
TgBotApi\BotApiBase\BotApiInterface:
class: TgBotApi\BotApiBase\BotApiComplete
arguments:
- '%telegram.token%'
- '@TgBotApi\BotApiBase\ApiClientInterface'
- '@TgBotApi\BotApiBase\NormalizerInterface'
@deepraybhatt1234

This comment has been minimized.

Copy link

@deepraybhatt1234 deepraybhatt1234 commented Nov 9, 2020

How to create a new bot

@greenplugin

This comment has been minimized.

Copy link
Owner Author

@greenplugin greenplugin commented Nov 10, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.