diff --git a/assets/img/whatsapp.png b/assets/img/whatsapp.png new file mode 100644 index 0000000..1b38a53 Binary files /dev/null and b/assets/img/whatsapp.png differ diff --git a/readme.md b/readme.md index 2c6c303..7a587bd 100644 --- a/readme.md +++ b/readme.md @@ -89,10 +89,16 @@ if (message is ContentMessage content) await client.ReactAsync(message, "🧠"); // simulate some hard work at hand, like doing some LLM-stuff :) await Task.Delay(2000); - await client.ReplyAsync(message, $"☑️ Got your {content.Content.Type}"); + var json = JsonSerializer.Serialize(content, options); + await client.ReplyAsync(message, $"☑️ Got your {content.Content.Type}:\r\n{json}"); } ``` +The above code would render as follows in WhatsApp: + +![](https://raw.githubusercontent.com/devlooped/WhatsApp/main/assets/img/whatsapp.png) + + ## Configuration You need to register an app in the Meta [App Dashboard](https://developers.facebook.com/apps/].