Skip to content
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

Official documentation of InlineQueryResult discrepancy #647

Open
Sarisan opened this issue Oct 6, 2024 · 2 comments
Open

Official documentation of InlineQueryResult discrepancy #647

Sarisan opened this issue Oct 6, 2024 · 2 comments

Comments

@Sarisan
Copy link

Sarisan commented Oct 6, 2024

Media size limitation passed with URL is different in each case.

InlineQueryResultPhoto - 5 MiB
InlineQueryResultMpeg4Gif - 1 MiB
InlineQueryResultGif - 1 MiB
InlineQueryResultDocument - provides no size limitation

While in reality all support files up to 10 MiB and up to 20 MiB in local mode.
Is this a mistake or the documentation is outdated?

@levlam
Copy link
Contributor

levlam commented Oct 7, 2024

While in reality all support files up to 10 MiB and up to 20 MiB in local mode.

This makes no sense. There is no a single difference in handling of files uploaded by URL in local mode compared to api.telegram.org.

@Sarisan
Copy link
Author

Sarisan commented Oct 7, 2024

While in reality all support files up to 10 MiB and up to 20 MiB in local mode.

This makes no sense. There is no a single difference in handling of files uploaded by URL in local mode compared to api.telegram.org.

Yes, specifically this makes no sense. It's always up to 20 MiB despite the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@levlam @Sarisan and others