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:
Luis Vazquez Alor 2022-05-22 13:08:10 +03:00 committed by GitHub
parent 28241f8a8e
commit 6f2192b089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)