Hello! I am very glad to use your BotAPI! This

API gives me incredible opportunity to creating bots. But I have some problems. I have two bots. First bot works as shop and users can buy something. Second bot managing content in this shop. So I uploading photos and video to my second bot, and get file_id and file_unique_id. But I can't use file_unique_id to send photos in my first bot. My final question is "Why file_unique_id is needed?". I hope you can help me. Thanks in advance!

5 ответов

18 просмотров

File_id are unique for each bot. You can’t use file_id of one bot to send photo/video using another bot

Егор-Туллий Автор вопроса
Mr. Anonymous
File_id are unique for each bot. You can’t use fil...

Yes, I know the docs, but there nothibg about file_unique_id.

I think I will answer you and I will be able to answer your question. file_id – ID of this file, which can be used to download or reuse the file. file_unique_id – unique identifier of this file, which should be the same over time and for different bots. Cannot be used to download or reuse a file.

Егор-Туллий Автор вопроса

Why we need file_unique_id if it useless actually?

Егор Туллий
Why we need file_unique_id if it useless actually?

file_unique_id generated based on media content, for the same two photos, this file_unique_id will be identical, but file_id will be different; you can't send media by file_unique_id, only by file_id; file_unique_id for different bots on the same media will be the same; file_id of the same media for different bots will be different.

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

Карта сайта