# Message Sent by Bot

> Triggers when a message is sent by a bot.

- ID: `message_create_bot`
- Type: Event trigger
- Category: [Messages](https://inventor.bot/docs/reference/triggers/messages.md)

> Only triggers when a message is sent by a bot or webhook. Message content will be empty without message content intent.

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `content` | The content of the message that was sent | e.g. `"Hello world!"` |
| `message_id` | The unique ID of the message | e.g. `"123456789012345678"` |
| `channel_id` | The ID of the channel where the message was sent | e.g. `"123456789012345678"` |
| `author_id` | The ID of the user who sent the message | e.g. `"123456789012345678"` |
| `server_id` | The ID of the server where the message was sent | e.g. `"123456789012345678"` |
| `webhook_id` | The webhook ID, if the message was sent by a webhook | e.g. `"123456789012345678"` |
| `user_mentions` | Comma-separated list of mentioned user IDs | e.g. `"123456789012345678,987654321098765432"` |
| `role_mentions` | Comma-separated list of mentioned role IDs | e.g. `"123456789012345678,987654321098765432"` |
| `message_sent_at` | Unix timestamp when the message was sent | e.g. `"1640995200"` |
| `interaction_executed_by_user_id` | User ID of the user who executed the interaction that sent this message | e.g. `"123456789012345678"` |

**Example**

```go
var trigger = message_create_bot()

func main() {
	send_text_message(Args{
		channel_id:      trigger.channel_id,
		message_content: "Message Content: " + trigger.content,
	})
}
```