diff --git a/Types-of-Handlers.md b/Types-of-Handlers.md index 3e622c2..55bebeb 100644 --- a/Types-of-Handlers.md +++ b/Types-of-Handlers.md @@ -35,6 +35,10 @@ Clicking this link will open your Telegram Client and show a big START button. W Note that since telegram doesn't support spaces in deep linking parameters, you will have to manually split the single `Hello_World` argument, into `["Hello", "World!"]` (using `args[0].split('_')` for example) +You also have to pay attention to the maximum lenght accepted by Telegram itself. As stated in the [documentation](https://core.telegram.org/bots#deep-linking) the maximum lenght for the start parameter is 64. + +Also, since this is an URL parameter, you have to pay attention on how to correctly pass the values in order to avoid passing URL reserved characters. Consier the usage of `base64.urlsafe_b64encode`. + ## Pattern matching: The RegexHandler For more complex inputs you can employ the [telegram.ext.RegexHandler](https://python-telegram-bot.readthedocs.io/en/latest/telegram.ext.regexhandler.html), which internally uses the `re`-module to match textual user input with a supplied pattern.