How can i get response after tweeted successfullly


how can i get a response function after tweeted successfullly ?!

                    count: 'none',
                    text: url
                }).then(function (el) {
                console.log("Button created.");

            //event bind
            **'tweet', handleTweetEvent);**
            function handleTweetEvent(event) {

but i just want to trigger the function ‘SomeCode()’ when it tweeted successfully ;


That’s not possible unfortunately - the event will trigger when the Tweet action is invoked, there’s no corresponding event when the Tweet is successfully posted.