whatsmeow-antiban: ported baileys-antiban's ban-risk mitigation (rate limiting, warm-up ramp, typing sim) to Go #1225
TA-rathnayaka
started this conversation in
Show and tell
Replies: 1 comment 1 reply
|
Nice. Thank you for the porting! Had the same idea. Maybe you can also describe in your repo which event handlers need be connected with which recording function. Would also prefer constants for the presets but that's a matter of taste. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
whatsmeow is a bare protocol client on purpose, which is great, but it means anyone sending messages programmatically has to build their own rate limiting / warm-up / pacing layer or risk a ban. On the Baileys (Node) side, baileys-antiban already solves this well, so I ported its 11-gate design to Go for use with whatsmeow.
whatsmeow-antiban — ban-risk mitigation for whatsmeow bots:
It's pure logic with zero external dependencies and no whatsmeow-specific types — you feed it JIDs/strings and wire
BeforeSend/AfterSendaround your ownclient.SendMessagecalls, so it works with whatsmeow directly:MIT licensed, 63 tests,
go get github.com/TA-rathnayaka/whatsmeow-antiban. Feedback and issues welcome, especially on the parts ofRecord463/ban-signal classification that depend on the exact whatsmeow error shapes for these responses.All reactions