docs: def _decode_telegram_base64(string):
      """
      Decodes an url-safe base64-encoded string into its bytes
      by first adding the stripped necessary padding characters.
  
      This is the way Telegram shares binary data as strings,
      such as Bot API-style file IDs or invite links.
  
      Returns ``None`` if the input string was not valid.
      """
      try:
          return base64.urlsafe_b64decode(string + '=' * (len(string) % 4))
      except (binascii.Error, ValueError, TypeError):
          return None