Skip to content

Commit

Permalink
Update _index.md (#3670)
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel authored Nov 11, 2024
1 parent b8d5b04 commit b1081dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}}
Expand All @@ -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 %}}
Expand Down

0 comments on commit b1081dd

Please sign in to comment.