Skip to content

GOWA - WhatsApp REST API with support for UI, Multi Account, Webhooks, and MCP, and Chatwoot. Built with Golang for efficient memory use.

fix: create pathmedia as well on init (#96)

Anshuman Mishra99ba1b464e54
diff --git a/src/cmd/root.go b/src/cmd/root.go
index 2cc70551..2f12f4e5 100644
--- a/src/cmd/root.go
+++ b/src/cmd/root.go
@@ -49,7 +49,7 @@ func runRest(_ *cobra.Command, _ []string) {
// TODO: Init Rest App
//preparing folder if not exist
- err := utils.CreateFolder(config.PathQrCode, config.PathSendItems, config.PathStorages)
+ err := utils.CreateFolder(config.PathQrCode, config.PathSendItems, config.PathStorages, config.PathMedia)
if err != nil {
log.Fatalln(err)
}