def get_chat_id(name): time.sleep(3) return "chat-%s" % name async def main(): result = get_chat_id("django")