How to specify a certificate for an IPA Telegram?

Set webhook for Telegram bot.
Use irazasyed/telegram-bot-sdk
The domain hooked up certificates from Let's encrypt. He has created 4 files:
cert.pem
chain.pem
fullchain.pem
privkey.pem

In the settings set host nginx fullchain.pem and private.pem as private
listen 123.456.789:443 ssl;
ssl on;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_certificate /etc/letsencrypt/live/example.EN/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.EN/privkey.pem;

When creating webhook my point url and path to the certificate
use Telegram\Bot\Api;
$telegram = new Api('moutenot');

$telegram->setWebhook([
 'url' => 'https://example.ru/tgbot',
 'certificate' => __DIR__ . '/cert/fullchain.pub'
]);

Check work:
$tg = new Telegram($token);
print_r($tg->getWebhookInfo());

The answer gives the error:
SSL error {336134278, error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed}

With SSL working in the first place...
Tell me in the right direction)
July 2nd 19 at 13:25
1 answer
July 2nd 19 at 13:27
He will answer)
Somehow, the telegram did not want to accept the certificate from Let's encrypt.
Ordered the certificate in regru - accepted without problems.
Also took a self-signed

Find more questions by tags PHPDigital certificatesTelegram