diff --git a/examples/repl/cmdline.rs b/examples/repl/cmdline.rs index 4890ada73..03b17ca4b 100644 --- a/examples/repl/cmdline.rs +++ b/examples/repl/cmdline.rs @@ -359,6 +359,7 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu send-garbage\n\ sendimage []\n\ sendfile []\n\ + videochat\n\ draft []\n\ devicemsg \n\ listmedia\n\ @@ -808,6 +809,10 @@ pub async fn cmdline(context: Context, line: &str, chat_id: &mut ChatId) -> Resu } chat::send_msg(&context, sel_chat.as_ref().unwrap().get_id(), &mut msg).await?; } + "videochat" => { + ensure!(sel_chat.is_some(), "No chat selected."); + chat::send_videochat_invitation(&context, sel_chat.as_ref().unwrap().get_id()).await?; + } "listmsgs" => { ensure!(!arg1.is_empty(), "Argument missing."); diff --git a/examples/repl/main.rs b/examples/repl/main.rs index e53bed1c2..7be1c9bea 100644 --- a/examples/repl/main.rs +++ b/examples/repl/main.rs @@ -158,7 +158,7 @@ const DB_COMMANDS: [&str; 9] = [ "housekeeping", ]; -const CHAT_COMMANDS: [&str; 26] = [ +const CHAT_COMMANDS: [&str; 27] = [ "listchats", "listarchived", "chat", @@ -178,6 +178,7 @@ const CHAT_COMMANDS: [&str; 26] = [ "send", "sendimage", "sendfile", + "videochat", "draft", "listmedia", "archive",