Suppose you want to pin a message, then long-press on the message that you want to pin. After this many, many options will arise on the screen. And your message will be pinned to the other persons.