mirror of
https://github.com/retailcrm/mg-bot-api-client-go.git
synced 2025-03-30 11:30:12 +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
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ func main() {
|
|||
Scope: "public",
|
||||
Content: "Bonjour!",
|
||||
ChatID: eventData.Message.ChatID,
|
||||
Type: "text",
|
||||
}
|
||||
|
||||
_, status, err := client.MessageSend(message)
|
||||
|
|
Loading…
Add table
Reference in a new issue