Skip to content

Commit

Permalink
ForwardMessages return slice of MessageID
Browse files Browse the repository at this point in the history
  • Loading branch information
negasus committed Mar 5, 2024
1 parent da1d60c commit 786df41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.1.6 (2024-03-05)

- ForwardMessages return slice of MessageID (#66)

## v1.1.5 (2024-03-04)

- add option WithAllowedUpdates (#65)
Expand Down
4 changes: 2 additions & 2 deletions methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ func (b *Bot) ForwardMessage(ctx context.Context, params *ForwardMessageParams)
}

// ForwardMessages https://core.telegram.org/bots/api#forwardmessages
func (b *Bot) ForwardMessages(ctx context.Context, params *ForwardMessagesParams) ([]models.Message, error) {
var result []models.Message
func (b *Bot) ForwardMessages(ctx context.Context, params *ForwardMessagesParams) ([]int, error) {
var result []int
err := b.rawRequest(ctx, "forwardMessages", params, result)
return result, err
}
Expand Down

0 comments on commit 786df41

Please sign in to comment.