aiogram / telegram-bot-api

Docker image of Telegram Bot API Server
https://hub.docker.com/r/aiogram/telegram-bot-api
153 stars 50 forks source link

cant send file (video) #17

Closed arshiay closed 2 months ago

arshiay commented 2 months ago

hi cant send file (video ) over 150MB is there any setting?

JrooTJunior commented 2 months ago

You cannot upload or send files larger than the size described in the bot API documentation over the network (HTTP requests), but you can do so using local mode and working with local files on disk.

So when you set TELEGRAM_LOCAL=1, you can read the file after calling the getFile method from disk directly at the path specified in the response.

Just read the README in the official Telegram Bot API repository: https://github.com/tdlib/telegram-bot-api?tab=readme-ov-file#usage