Skip to content

Commit

Permalink
ForwardMessages properly unmarshal result (#68)
Browse files Browse the repository at this point in the history
closes #67
  • Loading branch information
sevkin authored Mar 11, 2024
1 parent 786df41 commit 5b9c322
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ 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) ([]int, error) {
var result []int
err := b.rawRequest(ctx, "forwardMessages", params, result)
func (b *Bot) ForwardMessages(ctx context.Context, params *ForwardMessagesParams) ([]models.MessageID, error) {
var result []models.MessageID
err := b.rawRequest(ctx, "forwardMessages", params, &result)
return result, err
}

Expand Down

0 comments on commit 5b9c322

Please sign in to comment.