/whatsapp-bot

This is whatsapp bot that can convert sticker to image and vicce versa

Primary LanguageGoMIT LicenseMIT

Aphrodite

Requirements

This is whatsapp bot that can convert image/video to sticker and vice versa. First install ffmpeg to your computer or server to start using this bot.

git clone https://github.com/seynth/whatsapp-bot.git
cd whatsapp-bot
go mod tidy
go run .

Scan qr when it show on your terminal.

Scan qr code to use the bot

Once the prompt say Aphrodite ready you can go ahead and type some command to start using it.

Available command

#i2s - image to sticker (with image attachment)

compressed-i2s.mp4

#v2s - video to sticker (with video attachment)

compressed-v2s.mp4

#s2i - sticker to image (reply to a sticker)

compressed-s2i.mp4

Caution

Currently this bot does not support convert animated sticker to video

What i learn?..

  • channel in golang
  • goroutine
  • how whatsapp API works
  • send whatsapp message with golang
  • convert webp to jpg and vice versa
  • convert video to webp
  • convert webp to video/gif

Support this repo

Feel free to pull request or open an issue

Buy Me a Coffee at ko-fi.com

Thanks to