I know using " ejabberdctl send_message groupchat user1@localhost [email protected] Sub Bodyyy" this command we can send group messages. But how to implement the same using HTTP API that ejabbered provides (here)? Is it possible? Else what are the other options which i can use?
Yes, see https://docs.ejabberd.im/developer/ejabberd-api/simple-configuration/ to enable the module. Or you can enable ejabberd_xmlrpc and send XML-RPC queries.