From 048691e9ec321005f98ad4946fb0ff92cd5e5fec Mon Sep 17 00:00:00 2001 From: Luis Vazquez Alor <36934792+LuisAlor@users.noreply.github.com> Date: Sun, 22 May 2022 13:05:11 +0300 Subject: [PATCH] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Type is a required parameter. Without it the message won't be sent. Type: "text", // Пример : "text | order | product | file" Error returned: 400 Unsupported message type. See: 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)