Hey, I’ve made a bot to save stuff in chats and

send using file id in database and use sendPhoto, sendVideo to send it to chat.
I’m implementing a cloning system in bot, is there any alternative way to send the same file id using another bot?

One workaround I know is to save the file in a local or remote server (object storage), and send using the Url
But bot api only supports upto 50mb for this, is there any way to send large files?

12 ответов

19 просмотров

store message id instead of file id

Local API server supports up to 2GB https://github.com/tdlib/telegram-bot-api

Divkix- Автор вопроса
Shrimadhav U K
store message id instead of file id

But what if someone deleted that message? Should I forward each message to a channel or group, store it and then forward using other bot?

Divkix- Автор вопроса
sunglasses
Local API server supports up to 2GB https://github...

Ya but I don’t want to host it It’s gonna mess up the old file ids and the earlier content won’t be send Kind of hassle managing bot + storage + local api server

Divkix- Автор вопроса
Shrimadhav U K
Yes

Thanks, gonna try this Does bot api allow to forward without the forwarded tag?

Divkix- Автор вопроса
Shrimadhav U K
store message id instead of file id

then how retrieve file, not getMessage in botapi right

https://t.me/BotTalk/676336

Divkix- Автор вопроса
Shrimadhav U K
copyMessage

Is there a limit on how old messages can bot api fetch? Like bot cannot delete messages earlier than 48 hours, is this also a case for copyMessage?

Похожие вопросы

Карта сайта