Skip to content

Commit

Permalink
bugfix with new types
Browse files Browse the repository at this point in the history
  • Loading branch information
sSimuSs committed Dec 30, 2022
1 parent 7d230df commit 757993f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions messenger.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ func (m *Messenger) Response(to int64) *Response {
}

// Send will send a textual message to a user. This user must have previously initiated a conversation with the bot.
func (m *Messenger) Send(to Recipient, message string, messagingType MessagingType, tags ...string) error {
func (m *Messenger) Send(to Recipient, message string, messagingType MessagingType, tags ...TagType) error {
return m.SendWithReplies(to, message, nil, messagingType, tags...)
}

Expand All @@ -440,13 +440,13 @@ func (m *Messenger) SendGeneralMessage(to Recipient, elements *[]StructuredMessa
}

// SendWithReplies sends a textual message to a user, but gives them the option of numerous quick response options.
func (m *Messenger) SendWithReplies(to Recipient, message string, replies []QuickReply, messagingType MessagingType, tags ...string) error {
func (m *Messenger) SendWithReplies(to Recipient, message string, replies []QuickReply, messagingType MessagingType, tags ...TagType) error {
response := &Response{
token: m.token,
to: to,
}

return response.TextWithReplies(message, replies, messagingType, tags...)
return response.TextWithReplies(message, replies, messagingType, NotificationRegularType, tags...)
}

// Attachment sends an image, sound, video or a regular file to a given recipient.
Expand Down

0 comments on commit 757993f

Please sign in to comment.