Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
}
else if (message is InteractiveMessage interactive)
{
logger.LogWarning("👤 User chose button {Button}({Title})", interactive.Button.Id, interactive.Button.Title);
logger.LogWarning("👤 User chose button {Button} ({Title})", interactive.Button.Id, interactive.Button.Title);
return;
}
else if (message is StatusMessage status)
Expand Down
7 changes: 3 additions & 4 deletions src/Tests/WhatsAppClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ public async Task SendsButtonAsync()
type = "button",
body = new
{
text = "Choose a button"
text = "Is SpaceX great?"
},
action = new
{
buttons = new[]
{
new { type = "reply", reply = new { id = "1", title = "Button 1" } },
new { type = "reply", reply = new { id = "2", title = "Button 2" } },
new { type = "reply", reply = new { id = "3", title = "Button 3" } }
new { type = "reply", reply = new { id = "btn_yes", title = "Yes" } },
new { type = "reply", reply = new { id = "btn_no", title = "No" } },
}
}
}
Expand Down