D
D
Dev4032021-12-15 20:36:52
PHP
Dev403, 2021-12-15 20:36:52

Question about site integration with telegram?

Friends who worked on APi with telegram?
The initial data left by the previous developer.
There is a server on Debian 10.
Judging by the history, this application was installed
https://github.com/tdlib/telegram-bot-api

It worked in conjunction with WP, sending an audio file (from 100mb to 200mb) with a description in the telegram channel.
Recently this functionality stopped working, useful to understand.
He sent the request not to https://api.telegram.org/bot
, but to a subdomain. Through which the application apparently worked.

The question of such a plan, sent a request to https://api.telegram.org/bot
I am logging sending a file with a description.
I get a response in the logs

Responce: '{"ok":false,"error_code":413,"description":"Request Entity Too Large"}'

Sends only an audio file less than 50 MB.
The question is, how did it work before so that it sent files of both 100 and 200 mb?
Previously, I did not work with telegram api, well, judging by the docks, the maximum size is 50 mb.

Are there ways to send heavier files?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question