Document new errors and limits for inline results

This commit is contained in:
Lonami Exo
2019-02-14 19:45:25 +01:00
parent 41bfb8ae52
commit 628a16f287
3 changed files with 17 additions and 2 deletions

View File

@@ -145,6 +145,12 @@ class InlineQuery(EventBuilder):
r2 = builder.article('Be bad', text="I don't like you")
await inline.answer([r1, r2])
You can send up to 50 results as documented in
https://core.telegram.org/bots/api#answerinlinequery.
Sending more will raise ``ResultsTooMuchError``,
and you should consider using `next_offset` to
paginate them.
cache_time (`int`, optional):
For how long this result should be cached on
the user's client. Defaults to 0 for no cache.