Hi, I’ve developed an app using Laravel and codebird-php to post tweets with images,videos and links, however, my boss told me to hide the url from the final tweet and leave only the card, I’ll show a couple of examples.

For example, in the above image is what I want to achieve, show a card but no the url that’s referring it.
On the other side, I’ve also seen tweets like this one:

Is it OK to think that Twitter for web automatically removes the url only if it’s the last thing in the message?
Also, is there some kind of parameter when posting a new tweet that I can use to send the url separately and achieve what is shown in the first image?
Thank you for your response.