mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2024-11-21 12:26:06 +03:00
Update README.md
Type is a required parameter. Without it the message won't be sent. Types available: text | order | product | file Error returned: 400 Unsupported message type. See more: https://139810.selcdn.ru/download/doc/mg-bot-api/bot.v1.ru.html#_messagesendrequest
This commit is contained in:
parent
28241f8a8e
commit
6f2192b089
@ -91,6 +91,7 @@ func main() {
|
|||||||
Scope: "public",
|
Scope: "public",
|
||||||
Content: "Bonjour!",
|
Content: "Bonjour!",
|
||||||
ChatID: eventData.Message.ChatID,
|
ChatID: eventData.Message.ChatID,
|
||||||
|
Type: "text",
|
||||||
}
|
}
|
||||||
|
|
||||||
_, status, err := client.MessageSend(message)
|
_, status, err := client.MessageSend(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user