{"reply_photo",{ca_number,ca_file_name_end,ca_none},do_reply_photo,"reply_photo <msg-id> <file>\tSends photo to peer"},
{"reply_photo",{ca_number,ca_file_name,ca_string_end|ca_optional,ca_none},do_reply_photo,"reply_photo <msg-id> <file> [caption]\tSends photo to peer"},
//{"reply_text", {ca_number, ca_file_name_end, ca_none}, do_reply_text, "reply_text <msg-id> <file>\tSends contents of text file as plain text message"},
{"reply_video",{ca_number,ca_file_name_end,ca_none},do_reply_video,"reply_video <msg-id> <file>\tSends video to peer"},
{"reply_video",{ca_number,ca_file_name,ca_none},do_reply_video,"reply_video <msg-id> <file>\tSends video to peer"},
// {"restore_msg", {ca_number, ca_none}, do_restore_msg, "restore_msg <msg-id>\tRestores message. Only available shortly (one hour?) after deletion"},
{"safe_quit",{ca_none},do_safe_quit,"safe_quit\tWaits for all queries to end, then quits"},
{"search",{ca_peer|ca_optional,ca_number|ca_optional,ca_number|ca_optional,ca_number|ca_optional,ca_number|ca_optional,ca_string_end},do_search,"search [peer] [limit] [from] [to] [offset] pattern\tSearch for pattern in messages from date from to date to (unixtime) in messages with peer (if peer not present, in all messages)"},
{"secret_chat_rekey",{ca_secret_chat,ca_none},do_secret_chat_rekey,"generate new key for active secret chat"},
{"send_audio",{ca_peer,ca_file_name_end,ca_none},do_send_audio,"send_audio <peer> <file>\tSends audio to peer"},
{"send_audio",{ca_peer,ca_file_name,ca_none},do_send_audio,"send_audio <peer> <file>\tSends audio to peer"},
{"send_video",{ca_peer,ca_file_name_end,ca_none},do_send_video,"send_video <peer> <file>\tSends video to peer"},
{"send_video",{ca_peer,ca_file_name,ca_string|ca_optional,ca_none},do_send_video,"send_video <peer> <file> [caption]\tSends video to peer"},
{"set",{ca_string,ca_number,ca_none},do_set,"set <param> <value>\tSets value of param. Currently available: log_level, debug_verbosity, alarm, msg_num"},