๐ฏ I built Bulls & Cows inside WhatsApp using Rust + whatsapp-business-rs
โ Rust ๐ 2025-10-21 ๐ค surdeus ๐๏ธ 5Hey folks! ![]()
I wanted to share a small but fun side project I recently finished โ a Bulls & Cows game that runs entirely on WhatsApp, powered by my Rust crate whatsapp-business-rs
.
The idea came from wanting to test the interactivity and message flow of the crate in a real-world setting. So instead of another โsend message / get replyโ demo, I thought โ why not make something playful?
Using whatsapp-business-rs, I wired up:
Message handling for player guesses ![]()
Dynamic responses with hints (Bulls
= correct digit & position, Cows
= correct digit, wrong position)
A simple game state tracker per user (stored in memory for now)
A few emojis and delays to make it feel conversational ![]()
Hereโs what a game session looks like ![]()
It was surprisingly fun to build and a great way to stress-test interactive message logic, buttons, and delivery events.
If youโre into Rust, WhatsApp bots, or just want to see Rust do something a bit unexpected, check out the repo here:
GitHub - veecore/whatsapp-business-rs: Rust SDK for the WhatsApp Business API โ bulk messaging, batching, and multi-tenant support.
Happy to answer questions about the crate, game flow, or how the WhatsApp Business API fits in.
1 post - 1 participant
๐ท๏ธ Rust_feed

