Why tweets are failed when my tweet start with m space some url or text?


I am trying to share a tweet through my app but API returned errors":[{“code”:151,“message”:“There was an error sending your message: You can’t send blank direct messages!.”}]}. My tweet is like this m test post , what could be reason for this ,this error is because my tweet start with m ? If so any such type of restrictions are there ?


yes, M (and D) are SMS short code commands so you cannot start a regular Tweet with those characters.