-
Notifications
You must be signed in to change notification settings - Fork 612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to send any type of file with InlineQueryResultDocument #644
Comments
It can't be supported now. Inline mode isn't different from sending files by URL on behalf of the user. It works by downloading content of the specified URL server-side and using it as message content. The content of the URL must uniquely determine the type of the message. PNG and JPG files are treated as photos and therefore can be used only for |
In this case they are supposed to be sent as files, original files, not compressed photos. |
Both propositions are not true. The documentation says
which is correct up to the possibility to send photos as documents and the ability of |
It is not officially supported by Bot API yet, but you can actually put any file like PNG there and set mine type to zip. It will be sent and displayed properly in any client, except for the moment when file is being downloaded by Telegram server, it will show it as file.zip during download. Can all other mime types like gif, png, jpg, mp4, webm, webp and other popular ones be supported too?
The text was updated successfully, but these errors were encountered: