Skip to content

Commit

Permalink
api.go: fix CopyMessage endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
iniudin committed Sep 6, 2023
1 parent 3ae51ee commit 73cb44f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (a API) CopyMessage(chatID, fromChatID int64, messageID int, opts *CopyOpti
vals.Set("chat_id", itoa(chatID))
vals.Set("from_chat_id", itoa(fromChatID))
vals.Set("message_id", itoa(int64(messageID)))
return get[APIResponseMessageID](a.base, "forwardMessage", addValues(vals, opts))
return get[APIResponseMessageID](a.base, "copyMessage", addValues(vals, opts))
}

// SendPhoto is used to send photos.
Expand Down

0 comments on commit 73cb44f

Please sign in to comment.