Skip to content

Instantly share code, notes, and snippets.

View greenplugin's full-sized avatar

Nikolay Goduiko greenplugin

View GitHub Profile
<?php
declare(strict_types=1);
namespace TgBotApi\BotApiBase\Normalizer;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use TgBotApi\BotApiBase\Method\SendPollMethod;
use Symfony\Component\Serializer\Serializer;
class SendPoollNormalizer implements NormalizerInterface
parameters:
telegram.token: '%env(TELEGRAM_TOKEN)%'
telegram.webhook_secret: '%env(TELEGRAM_WEBHOOK_SECRET)%'
services:
GuzzleHttp\Client:
arguments:
- { timeout: 120}
Http\Factory\Guzzle\RequestFactory: