mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Document new errors and limits for inline results
This commit is contained in:
@@ -43,8 +43,15 @@ class InlineBuilder:
|
||||
id (`str`, optional):
|
||||
The string ID to use for this result. If not present, it
|
||||
will be the SHA256 hexadecimal digest of converting the
|
||||
request with empty ID to ``bytes()``, so that the ID will
|
||||
be deterministic for the same input.
|
||||
created :tl:`InputBotInlineResult` with empty ID to ``bytes()``,
|
||||
so that the ID will be deterministic for the same input.
|
||||
|
||||
.. note::
|
||||
|
||||
If two inputs are exactly the same, their IDs will be the same
|
||||
too. If you send two articles with the same ID, it will raise
|
||||
``ResultIdDuplicateError``. Consider giving them an explicit
|
||||
ID if you need to send two results that are the same.
|
||||
"""
|
||||
def __init__(self, client):
|
||||
self._client = client
|
||||
|
Reference in New Issue
Block a user