Add constants.MessageLimit.DEEP_LINK_LENGTH (#3315)

This commit is contained in:
Biruk Alamirew 2022-11-01 19:58:58 +03:00 committed by GitHub
parent a1e6a6e779
commit 55106d6d57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -28,6 +28,7 @@ The following wonderful people contributed directly or indirectly to this projec
- `Avanatiker <https://github.com/Avanatiker>`_ - `Avanatiker <https://github.com/Avanatiker>`_
- `Balduro <https://github.com/Balduro>`_ - `Balduro <https://github.com/Balduro>`_
- `Bibo-Joshi <https://github.com/Bibo-Joshi>`_ - `Bibo-Joshi <https://github.com/Bibo-Joshi>`_
- `Biruk Alamirew <https://github.com/BAcode-X>`_
- `bimmlerd <https://github.com/bimmlerd>`_ - `bimmlerd <https://github.com/bimmlerd>`_
- `cyc8 <https://github.com/cyc8>`_ - `cyc8 <https://github.com/cyc8>`_
- `d-qoi <https://github.com/d-qoi>`_ - `d-qoi <https://github.com/d-qoi>`_

View file

@ -655,6 +655,8 @@ class MessageLimit(IntEnum):
CAPTION_LENGTH = 1024 CAPTION_LENGTH = 1024
""":obj:`int`: Maximum number of characters for a message caption.""" """:obj:`int`: Maximum number of characters for a message caption."""
# constants above this line are tested # constants above this line are tested
DEEP_LINK_LENGTH = 64
""":obj:`int`: Maximum number of characters for a deep link."""
MESSAGE_ENTITIES = 100 MESSAGE_ENTITIES = 100
""":obj:`int`: Maximum number of entities that can be displayed in a message. Further entities """:obj:`int`: Maximum number of entities that can be displayed in a message. Further entities
will simply be ignored by Telegram. will simply be ignored by Telegram.