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!
File_id are unique for each bot. You can’t use file_id of one bot to send photo/video using another bot
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?
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.
Обсуждают сегодня