Created
July 25, 2015 14:25
-
-
Save vedant1811/ed6c0f128f2201c62034 to your computer and use it in GitHub Desktop.
lua_functions accepted by telegram-cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct lua_function functions[] = { | |
{"get_contact_list", lq_contact_list, { lfp_none }}, | |
{"get_dialog_list", lq_dialog_list, { lfp_none }}, | |
{"rename_chat", lq_rename_chat, { lfp_chat, lfp_string, lfp_none }}, | |
{"send_msg", lq_msg, { lfp_peer, lfp_string, lfp_none }}, | |
{"send_typing", lq_send_typing, { lfp_peer, lfp_none }}, | |
{"send_typing_abort", lq_send_typing_abort, { lfp_peer, lfp_none }}, | |
{"send_photo", lq_send_photo, { lfp_peer, lfp_string, lfp_none }}, | |
{"send_video", lq_send_video, { lfp_peer, lfp_string, lfp_none }}, | |
{"send_audio", lq_send_audio, { lfp_peer, lfp_string, lfp_none }}, | |
{"send_document", lq_send_document, { lfp_peer, lfp_string, lfp_none }}, | |
{"send_file", lq_send_file, { lfp_peer, lfp_string, lfp_none }}, | |
{"send_text", lq_send_text, { lfp_peer, lfp_string, lfp_none }}, | |
{"chat_set_photo", lq_chat_set_photo, { lfp_chat, lfp_string, lfp_none }}, | |
{"load_photo", lq_load_photo, { lfp_msg, lfp_none }}, | |
{"load_video", lq_load_video, { lfp_msg, lfp_none }}, | |
{"load_video_thumb", lq_load_video_thumb, { lfp_msg, lfp_none }}, | |
{"load_audio", lq_load_audio, { lfp_msg, lfp_none }}, | |
{"load_document", lq_load_document, { lfp_msg, lfp_none }}, | |
{"load_document_thumb", lq_load_document_thumb, { lfp_msg, lfp_none }}, | |
{"fwd_msg", lq_fwd, { lfp_peer, lfp_msg, lfp_none }}, | |
{"fwd_media", lq_fwd_media, { lfp_peer, lfp_msg, lfp_none }}, | |
{"chat_info", lq_chat_info, { lfp_chat, lfp_none }}, | |
{"user_info", lq_user_info, { lfp_user, lfp_none }}, | |
{"get_history", lq_history, { lfp_peer, lfp_nonnegative_number, lfp_none }}, | |
{"chat_add_user", lq_chat_add_user, { lfp_chat, lfp_user, lfp_none }}, | |
{"chat_del_user", lq_chat_del_user, { lfp_chat, lfp_user, lfp_none }}, | |
{"add_contact", lq_add_contact, { lfp_string, lfp_string, lfp_string, lfp_none }}, | |
{"del_contact", lq_del_contact, { lfp_user, lfp_none }}, | |
{"rename_contact", lq_rename_contact, { lfp_string, lfp_string, lfp_string, lfp_none }}, | |
{"msg_search", lq_search, { lfp_peer, lfp_string, lfp_none }}, | |
{"msg_global_search", lq_global_search, { lfp_string, lfp_none }}, | |
{"mark_read", lq_mark_read, { lfp_peer, lfp_none }}, | |
{"set_profile_photo", lq_set_profile_photo, { lfp_string, lfp_none }}, | |
{"set_profile_name", lq_set_profile_name, { lfp_string, lfp_none }}, | |
{"create_secret_chat", lq_create_secret_chat, { lfp_user, lfp_none }}, | |
{"create_group_chat", lq_create_group_chat, { lfp_user, lfp_string, lfp_none }}, | |
{"delete_msg", lq_delete_msg, { lfp_msg, lfp_none }}, | |
{"restore_msg", lq_restore_msg, { lfp_positive_number, lfp_none }}, | |
{"accept_secret_chat", lq_accept_secret_chat, { lfp_secret_chat, lfp_none }}, | |
{"send_contact", lq_send_contact, { lfp_peer, lfp_string, lfp_string, lfp_string, lfp_none }}, | |
{"status_online", lq_status_online, { lfp_none }}, | |
{"status_offline", lq_status_offline, { lfp_none }}, | |
{"send_location", lq_send_location, { lfp_peer, lfp_double, lfp_double, lfp_none }}, | |
{"ext_function", lq_extf, { lfp_string, lfp_none }}, | |
{"import_chat_link", lq_import_chat_link, { lfp_string, lfp_none }}, | |
{ 0, 0, { lfp_none}} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment