DEV Community

Cover image for How to Put a "Send us a Private Message" Button in a Tweet
Nima Owji
Nima Owji

Posted on • Originally published at hackernoon.com

How to Put a "Send us a Private Message" Button in a Tweet

Today, I want to show you how to put a "Send us a private message" button in a tweet. Something like this:
Twitter message me button - Nima Owji
Let's start!

Finding Twitter ID

First of all, you should find your Twitter ID. You can get your ID from many websites. I found a website called "TweeterID". Click here to open it.

You should give your Twitter handle to it and it will convert your Twitter handle to Twitter ID!
How to Put a
If this website isn't available, you can simply search "Find Twitter ID" and find another website. When you got your ID, copy it!

Creating the button

Okay, now you should compose a new tweet. In your tweet, you can write anything. After that, you should paste this link into your tweet! (This link is that button).

https://twitter.com/messages/compose?text=[Your Message]&recipient_id=[Your Twitter ID]

You should assign a message to "text". When people click on this button, this message will appear in the textbox!

You should also assign your Twitter ID to "recipient_id".

Finished!

Finished! You can tweet it. It will convert to a button automatically!

I hope you liked this! Don't forget to like this article. If you liked it, please share it in a tweet and mention me too! Please follow me on Twitter. My name is Nima Owji. I am a 14-year-old programmer. Thanks.

Special thanks to Chris Messina!

Top comments (1)

Collapse
 
0xazach profile image
0xazach

the link provided is no longer working, you can use this telegram bot instead t.me/x_sent_me_a_private_message_bot, it worked for me, it gave me the full link that i needed.