From 6f2192b089c3d14241b68a6b17f01d4048b893d2 Mon Sep 17 00:00:00 2001 From: Luis Vazquez Alor <36934792+LuisAlor@users.noreply.github.com> Date: Sun, 22 May 2022 13:08:10 +0300 Subject: [PATCH] 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 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 23c71e4..69f78c2 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ func main() { Scope: "public", Content: "Bonjour!", ChatID: eventData.Message.ChatID, + Type: "text", } _, status, err := client.MessageSend(message)