Source code for telegram_framework.links.call_params

from django.urls.resolvers import RoutePattern


def _match_function(message, pattern):
    route_pattern = RoutePattern(pattern)
    return route_pattern.match(message.data)


[docs] def get_match_function(pattern): def inner(message): return _match_function(message, pattern) return inner