From 0e340af2a8c7db04077ae78304b451c2e9b5653a Mon Sep 17 00:00:00 2001 From: luckydonald Date: Thu, 21 May 2015 16:42:51 +0200 Subject: [PATCH] Fix for ```send_video``` failing without a caption string given. (see https://github.com/vysheng/tg/issues/538) --- interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface.c b/interface.c index 303426d..ad03b1f 100644 --- a/interface.c +++ b/interface.c @@ -1353,7 +1353,7 @@ struct command commands[MAX_COMMANDS_SIZE] = { {"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}, {"send_typing", {ca_peer, ca_none}, do_send_typing, "send_typing \tSends typing notification", NULL}, {"send_typing_abort", {ca_peer, ca_none}, do_send_typing_abort, "send_typing \tSends typing notification abort", NULL}, - {"send_video", {ca_peer, ca_file_name, ca_string | ca_optional, ca_none}, do_send_video, "send_video [caption]\tSends video to peer", NULL}, + {"send_video", {ca_peer, ca_file_name, ca_string_end | ca_optional, ca_none}, do_send_video, "send_video [caption]\tSends video to peer", NULL}, {"set", {ca_string, ca_number, ca_none}, do_set, "set \tSets value of param. Currently available: log_level, debug_verbosity, alarm, msg_num", NULL}, {"set_password", {ca_string | ca_optional, ca_none}, do_set_password, "set_password \tSets password", NULL}, {"set_profile_name", {ca_string, ca_string, ca_none}, do_set_profile_name, "set_profile_name \tSets profile name.", NULL},