All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.dev.inmo.tgbotapi.abstracts.CommonSendInvoiceData.kt Maven / Gradle / Ivy

Go to download

Core part of tgbotapi with all (and only) required functionality for working with Telegram Bot API

There is a newer version: 23.1.0
Show newest version
package dev.inmo.tgbotapi.abstracts

import dev.inmo.tgbotapi.utils.internal.ClassCastsIncluded
import dev.inmo.tgbotapi.types.payments.abstracts.Currencied
import dev.inmo.tgbotapi.types.payments.abstracts.Priced

@ClassCastsIncluded
interface CommonSendInvoiceData : Titled, Currencied, Priced {
    val description: String
    val payload: String
    val providerToken: String?
    val maxTipAmount: Int?
    val suggestedTipAmounts: List?
    val providerData: String?
    val requireName: Boolean
    val requirePhoneNumber: Boolean
    val requireEmail: Boolean
    val requireShippingAddress: Boolean
    val shouldSendPhoneNumberToProvider: Boolean
    val shouldSendEmailToProvider: Boolean
    val priceDependOnShipAddress: Boolean

    val photoUrl: String?
    val photoSize: Long?
    val photoWidth: Int?
    val photoHeight: Int?



    fun setPhoto(
        photoUrl: String,
        photoSize: Long? = null,
        photoWidth: Int? = null,
        photoHeight: Int? = null
    )

    fun unsetPhoto()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy