src/Controller/TelegramBot/CandidatesPhotoTelegramBotController.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Controller\TelegramBot;
  3. use App\Library\TelegramBot\TelegramObject\Update;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use App\Library\TelegramBot\CandidatesPhotoTelegramBot\CandidatesPhotoTelegramBot;
  7. class CandidatesPhotoTelegramBotController
  8. {
  9.     function webhook(Request $requestCandidatesPhotoTelegramBot $telegramBot) {
  10.         $post json_decode($request->getContent(), true);
  11.         $update = new Update($post);
  12.         $telegramBot->handleUpdate($update);
  13.         return new Response();
  14.     }
  15. }