feat: added the giftPremiumSubscription method

This commit is contained in:
bpavuk committed 2025-04-16 19:49:49 +03:00
1 parent 1bde43ceaf
commit b407fc5c86
4 files changed
+116 -2

No files matched your search

@@ -0,0 +1,30 @@
package dev.inmo.tgbotapi.extensions.api.gifts
import dev.inmo.tgbotapi.bot.TelegramBot
import dev.inmo.tgbotapi.requests.gifts.GiftPremiumSubscription
import dev.inmo.tgbotapi.types.UserId
import dev.inmo.tgbotapi.types.message.ParseMode
import dev.inmo.tgbotapi.types.message.textsources.TextSourcesList
public suspend fun TelegramBot.giftPremiumSubscription(
userId: UserId,
monthCount: Int,
starCount: Int,
text: String,
parseMode: ParseMode?
): Boolean = execute(
GiftPremiumSubscription(
userId, monthCount, starCount, text, parseMode
)
)
public suspend fun TelegramBot.giftPremiumSubscription(
userId: UserId,
monthCount: Int,
starCount: Int,
textSources: TextSourcesList? = null,
): Boolean = execute(
GiftPremiumSubscription(
userId, monthCount, starCount, textSources
)
)