How to change shortened url length?


I am using twitter oauth api to tweet messages when I am tweeting the text with url’s it is not tweting becaues of url length.Can anybody suggest me how to control url length with this api. There is any way to change parameters for this url length.