Set md2 as default for edited texts, also

This commit is contained in:
Thilo Karraß 2020-10-28 15:34:51 +01:00
parent 1ba9536622
commit 375a9ebc9f

View File

@ -97,6 +97,7 @@ func (b *Bot) EditMessageText(chatid int64, messageid int64, message string) (*M
call := b.api.PostForm( "/editMessageText")
call.Parameters["chat_id"] = fmt.Sprintf("%v", chatid)
call.Parameters["message_id"] = fmt.Sprintf("%v", messageid)
call.Parameters["parse_mode"] = "MarkdownV2"
call.Parameters["text"] = message
ret := &MessageResponse{}
err := call.Fire(context.Background(), ret)