diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/send/payments/CreateInvoiceLink.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/send/payments/CreateInvoiceLink.kt index 598d9a277b..f1114a47f4 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/send/payments/CreateInvoiceLink.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/requests/send/payments/CreateInvoiceLink.kt @@ -54,7 +54,7 @@ data class CreateInvoiceLink( @SerialName(priceDependOnShipAddressField) override val priceDependOnShipAddress: Boolean = false ) : CommonSendInvoiceData, SimpleRequest { - override fun method(): String = "sendInvoice" + override fun method(): String = "createInvoiceLink" override val resultDeserializer: DeserializationStrategy get() = String.serializer() override val requestSerializer: SerializationStrategy<*>