Closed kupeepla closed 2 months ago
Do you have a high-speed internet connection on the server where the Bot API server is hosted?
You can enable logs by adding parameters -v4 -l log.txt to the Bot API server and send the file log.txt
to https://t.me/tdlib_bot to know the exact reason.
Yes its 1gbps unshared. ( dedicated server ) btw, my bot is a kind of downloader where user sends the instagram post link ( image / video ) and they get the media file. on api.telegram.org it happens in a blink of an eye but on locally it takes 1-2 mins
specially video when i try to send the video i get this error
An error occurred while sending video to user
also should i user IP:PORT or domain.com and with http or https ?
Why do use domain at all and don't host the Bot API server on the same server as the bot?
Bot and BOT API both are hosted on same server, i think because i am using HTTP://ip:port and not HTTPS my download/upload speed is capped to certain kbps maybe
And i thought if i use HTTPS with domain name i will get good speeds
What to do ?
P.S. https://t.me/tdlib_bot not responding
Bot and BOT API both are hosted on same server,
Then you should send request to http://127.0.0.1:
Files are not on the disk i am sending media link directly to user using replywithVideo / replywithphoto with url, My bot really works fast on api.telegram.org and i am using same sending methods and i do succeed its just that its super slow on BOT API
These are my logs,
In the log upload speed is less than 1 megabit per second. The speed depends on your server and there is no way to upload files with a higher speed.
This is my speed tests, also download and uploading speed on other apps are very impressive
thats the sample code
const { Telegraf } = require('telegraf');
const bot = new Telegraf('
bot.start((ctx) => ctx.reply('Welcome! Use /send to get a video.'));
bot.command('send', (ctx) => {
const videoUrl = '
bot.launch();
thats the sample code
const { Telegraf } = require('telegraf');
const bot = new Telegraf('', { telegram: { apiRoot: 'http://IP:PORT' }, });
bot.start((ctx) => ctx.reply('Welcome! Use /send to get a video.'));
bot.command('send', (ctx) => { const videoUrl = ''; ctx.replyWithVideo(videoUrl); });
bot.launch();
I also have the ### same problem, is there an answer now?
Hello,
I having problem regarding the speed of responses to commands and other requests earlier my bot was on api.telegram.org but later i planned to move bot to local server because sometimes i might need to send files over 50MB
but i noticed that even 5-10MB file takes 60-70 seconds sometimes 2-3 mins to deliver/uploaded and user gets it.
Before you guys ask for the log file please let me know where do i find the log file.
Thank you