From 55106d6d578ceda134d60f05eb61ed300492c42b Mon Sep 17 00:00:00 2001 From: Biruk Alamirew Date: Tue, 1 Nov 2022 19:58:58 +0300 Subject: [PATCH] Add `constants.MessageLimit.DEEP_LINK_LENGTH` (#3315) --- AUTHORS.rst | 1 + telegram/constants.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index bb118e4c7..b0e5c07da 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -28,6 +28,7 @@ The following wonderful people contributed directly or indirectly to this projec - `Avanatiker `_ - `Balduro `_ - `Bibo-Joshi `_ +- `Biruk Alamirew `_ - `bimmlerd `_ - `cyc8 `_ - `d-qoi `_ diff --git a/telegram/constants.py b/telegram/constants.py index 3c594fbe2..f5cd7b838 100644 --- a/telegram/constants.py +++ b/telegram/constants.py @@ -655,6 +655,8 @@ class MessageLimit(IntEnum): CAPTION_LENGTH = 1024 """:obj:`int`: Maximum number of characters for a message caption.""" # constants above this line are tested + DEEP_LINK_LENGTH = 64 + """:obj:`int`: Maximum number of characters for a deep link.""" MESSAGE_ENTITIES = 100 """:obj:`int`: Maximum number of entities that can be displayed in a message. Further entities will simply be ignored by Telegram.