From 2b45dd6799cce551be0e0a586e071c385c32747d Mon Sep 17 00:00:00 2001 From: V V Date: Wed, 6 Jan 2016 00:07:35 +0300 Subject: [PATCH] added document captions support --- interface.c | 6 +++--- tgl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface.c b/interface.c index 6ac7352..92bdbfe 100644 --- a/interface.c +++ b/interface.c @@ -1737,10 +1737,10 @@ struct command commands[MAX_COMMANDS_SIZE] = { {"safe_quit", {ca_none}, do_safe_quit, "safe_quit\tWaits for all queries to end, then quits", NULL}, {"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)", NULL}, //{"secret_chat_rekey", { ca_secret_chat, ca_none}, do_secret_chat_rekey, "generate new key for active secret chat", NULL}, - {"send_audio", {ca_peer, ca_file_name, ca_none}, do_send_audio, "send_audio \tSends audio to peer", NULL}, + {"send_audio", {ca_peer, ca_file_name, ca_string_end | ca_optional, ca_none}, do_send_audio, "send_audio \tSends audio to peer", NULL}, {"send_contact", {ca_peer, ca_string, ca_string, ca_string, ca_none}, do_send_contact, "send_contact \tSends contact (not necessary telegram user)", NULL}, - {"send_document", {ca_peer, ca_file_name, ca_none}, do_send_document, "send_document \tSends document to peer", NULL}, - {"send_file", {ca_peer, ca_file_name, ca_none}, do_send_file, "send_file \tSends document to peer", NULL}, + {"send_document", {ca_peer, ca_file_name, ca_string_end | ca_optional, ca_none}, do_send_document, "send_document \tSends document to peer", NULL}, + {"send_file", {ca_peer, ca_file_name, ca_string_end | ca_optional, ca_none}, do_send_file, "send_file \tSends document to peer", NULL}, {"send_location", {ca_peer, ca_double, ca_double, ca_none}, do_send_location, "send_location \tSends geo location", NULL}, {"send_photo", {ca_peer, ca_file_name, ca_string_end | ca_optional, ca_none}, do_send_photo, "send_photo [caption]\tSends photo to peer", NULL}, {"send_text", {ca_peer, ca_file_name_end, ca_none}, do_send_text, "send_text \tSends contents of text file as plain text message", NULL}, diff --git a/tgl b/tgl index 9802119..627d803 160000 --- a/tgl +++ b/tgl @@ -1 +1 @@ -Subproject commit 980211943f9199b1eee36db8f7589dc311251d8b +Subproject commit 627d8036d1cd379a799a42e783056e916465d52f