Skip to content

Commit cdba688

Browse files
committed
Add screenshot showcase for impact
1 parent 2796013 commit cdba688

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

assets/img/whatsapp.png

258 KB
Loading

readme.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,16 @@ if (message is ContentMessage content)
8989
await client.ReactAsync(message, "🧠");
9090
// simulate some hard work at hand, like doing some LLM-stuff :)
9191
await Task.Delay(2000);
92-
await client.ReplyAsync(message, $"☑️ Got your {content.Content.Type}");
92+
var json = JsonSerializer.Serialize(content, options);
93+
await client.ReplyAsync(message, $"☑️ Got your {content.Content.Type}:\r\n{json}");
9394
}
9495
```
9596

97+
The above code would render as follows in WhatsApp:
98+
99+
![](https://raw.githubusercontent.com/devlooped/WhatsApp/main/assets/img/whatsapp.png)
100+
101+
96102
## Configuration
97103

98104
You need to register an app in the Meta [App Dashboard](https://developers.facebook.com/apps/].

0 commit comments

Comments
 (0)