fixed reply bug.

This commit is contained in:
5elenay 2021-08-30 13:13:26 +03:00
parent f0da4024d5
commit 525127e317

View File

@ -13,7 +13,7 @@ type SendMessage struct {
DeleteAfter uint `json:"-"` DeleteAfter uint `json:"-"`
Replies []struct { Replies []struct {
Id string `json:"id,omitempty"` Id string `json:"id,omitempty"`
Mention bool `json:"mention,omitempty"` Mention bool `json:"mention"`
} `json:"replies,omitempty"` } `json:"replies,omitempty"`
} }
@ -45,7 +45,7 @@ func (sms *SendMessage) AddAttachment(attachment string) *SendMessage {
func (sms *SendMessage) AddReply(id string, mention bool) *SendMessage { func (sms *SendMessage) AddReply(id string, mention bool) *SendMessage {
sms.Replies = append(sms.Replies, struct { sms.Replies = append(sms.Replies, struct {
Id string "json:\"id,omitempty\"" Id string "json:\"id,omitempty\""
Mention bool "json:\"mention,omitempty\"" Mention bool "json:\"mention\""
}{ }{
Id: id, Id: id,
Mention: mention, Mention: mention,