def send_voiceLocationTranslationFromCommand(p, rec_command, userInfo=False): digits = rec_command[5:] if utility.hasOnlyDigits(digits): rec_id = long(digits) rec = Recording.get_by_id(rec_id) if rec is None: send_message(p.chat_id, 'No recording found!') else: send_voiceLocationTranslation(p, rec, userInfo=userInfo) else: send_message(p.chat_id, FROWNING_FACE + "Input non valido.")