Not shortening URLs with a colon while sending DMs


When I try to send a DM with an URL like:

The API returns an error code 151 (The text of your direct message is over 140 characters), but when I try to send it without the “:param” part, it shorts the link properly and sends the message.


Make sure you encode the “:” character. It should look like this when you POST it: “”