attach the files using API

Hi Guys,
I'm trying the API for sending private and group messages, and I'm trying to find out how to attach the file to a message using the API.
One more question: how to send the message with colour variations, bold,underlining the text, and mentioning the user in the message? I have a lot of questions about the API and python
Can you help someone find it?
I'm trying the API for sending private and group messages, and I'm trying to find out how to attach the file to a message using the API.
One more question: how to send the message with colour variations, bold,underlining the text, and mentioning the user in the message? I have a lot of questions about the API and python
Can you help someone find it?