Hello, I wish to modify https://fr.wikipedia.org/wiki/MediaWiki:Gadget-PaStec.js in order to send message in flow's talk page too. I tried, with the documentation Flow/Architecture/API#Posting a new topic from on-wiki JavaScript, to write (https://fr.wikipedia.org/wiki/Utilisateur:Gratus/PaStec_real.js) but I have the message "TypeError: mw.messagePoster is undefined" in the console.
I think it's because I should import https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.loader-method-using but I don't know how to do this.
Thanks for your help