defstudio / telegraph

Telegraph is a Laravel package for fluently interacting with Telegram Bots
MIT License
675 stars 116 forks source link

How to send large videos using Telegraph? #470

Closed RamSen-IT closed 8 months ago

RamSen-IT commented 8 months ago

Hello! I've been working on a bot that would send users videos (mostly larger than 500mb). I've read the telegram bot api docs. There is a restriction of 50MB, with videos/animations/documents. In the recent changes, Telegram announced now bots can send files upto 2000 MB.

I tried to do it with Telegraph::video, but it didn't work.

There are many bots that are uploading files upto 2GB, So, my question is how to do it?

fabio-ivona commented 8 months ago

I'm still seeing a 50mb limit on video size

https://core.telegram.org/bots/api#sendvideo

Could you paste a link to the source of your information?

RamSen-IT commented 8 months ago

I have my own hosting server, but files are still only sent up to 50 MB. Is there a method in the Telegraph to send up to 2000 MB?

Source: https://core.telegram.org/bots/api#using-a-local-bot-api-server

fabio-ivona commented 8 months ago

Hmm, I think we could tune the file size check when the bot server is not the standard one

Will be added in next release

RamSen-IT commented 8 months ago

Yes, I would be very grateful for this feature

I'll be waiting :)

fabio-ivona commented 8 months ago

fixed in #476