How do I add custom button?

I want to add a custom button alongside the message input area. How do I do that?