### post_message <a name="post_message"></a>
Sends a message to a channel.
**API Endpoint**: `POST /chat.postMessage`
#### Example Snippet
```rust
let client = simple_slack_gen::Client::default()
.with_auth(&std::env::var("API_TOKEN").unwrap());
let res = client
.chat()
.post_message(simple_slack_gen::resources::chat::PostMessageRequest {
data: simple_slack_gen::models::NewMessage {
as_user: Some("string".to_string()),
attachments: Some("string".to_string()),
blocks: Some("string".to_string()),
channel: "channel_id".to_string(),
icon_emoji: Some("string".to_string()),
icon_url: Some("string".to_string()),
link_names: Some(true),
mrkdwn: Some(true),
parse: Some("string".to_string()),
reply_broadcast: Some(true),
text: "Hello World!".to_string(),
thread_ts: Some("string".to_string()),
unfurl_links: Some(true),
unfurl_media: Some(true),
username: Some("string".to_string()),
},
})
.await;
```