Answer the question
In order to leave comments, you need to log in
Why do I get an error when I connect to the BotApi class?
I have such a problem with Fatal error: Class 'TelegramBot\Api\BotApi' not found in C:\OpenServer\domains\crm\frontend\components\Telegram.php on line 8
Implemented the code like this
<?php
namespace frontend\components;
use TelegramBot\Api\BotApi;
/** @var string $bot */
$bot = new BotApi('1234');
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question