From b1081dda26c6d8cbdee1a6e8c776ebedd716330f Mon Sep 17 00:00:00 2001 From: Naomi Pentrel <5212232+npentrel@users.noreply.github.com> Date: Mon, 11 Nov 2024 22:50:27 +0100 Subject: [PATCH] Update _index.md (#3670) --- docs/_index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_index.md b/docs/_index.md index d49822e78b..1f91d5936c 100644 --- a/docs/_index.md +++ b/docs/_index.md @@ -667,7 +667,7 @@ my_twilio_svc = Generic.from_robot(robot=machine, name="my_twilio_svc") # Use a custom command to send a text message with Twilio command = {"to": "+1 234 567 8901", "body": "Hello world!"} -result = await my_button.do_command(command) +result = await my_twilio_svc.do_command(command) ``` {{% /tab %}} @@ -676,9 +676,9 @@ result = await my_button.do_command(command) ```go myTwilioSvc, err := generic.FromRobot(machine, "my_twilio_svc") -// Use a custom command to push the button 5 +// Use a custom command to send a text message with Twilio command := map[string]interface{}{"to": "+1 234 567 8901", "body": "Hello world!"} -result, err := myButton.DoCommand(context.Background(), command) +result, err := myTwilioSvc.DoCommand(context.Background(), command) ``` {{% /tab %}}