class Handler: def __init__(self): pass @staticmethod def load_callback_query(callback_query: str): command, query = callback_query.split("?") params_str = query.split("&") params = {} for param in params_str: t = param.split("=") params[t[0]] = t[1] return [command, params]