Package-level declarations

Functions

Link copied to clipboard
suspend fun TelegramBot.convertGiftToStars(businessConnectionId: BusinessConnectionId, ownedGiftId: GiftId): Boolean
suspend fun TelegramBot.convertGiftToStars(businessConnectionId: BusinessConnectionId, gift: Gift.Regular): Boolean
suspend fun TelegramBot.convertGiftToStars(businessConnectionId: BusinessConnectionId, gift: Gift.Regular, keepOriginalDetails: Boolean = false): Boolean
suspend fun TelegramBot.convertGiftToStars(businessConnectionId: BusinessConnectionId, ownedGiftId: GiftId, keepOriginalDetails: Boolean = false, starCount: Int? = null): Boolean
Link copied to clipboard
suspend fun TelegramBot.deleteBusinessMessages(businessConnectionId: BusinessConnectionId, messageIds: List<MessageId>): Boolean
Link copied to clipboard
suspend fun TelegramBot.getBusinessAccountGifts(businessConnectionId: BusinessConnectionId, excludeUnsaved: Boolean = false, excludeSaved: Boolean = false, excludeUnlimited: Boolean = false, excludeLimited: Boolean = false, excludeUnique: Boolean = false, sortByPrice: Boolean = false, offset: String? = null, limit: Int? = null): OwnedGifts<GiftSentOrReceived.ReceivedInBusinessAccount>
Link copied to clipboard
fun TelegramBot.getBusinessAccountGiftsFlow(businessConnectionId: BusinessConnectionId, excludeUnsaved: Boolean = false, excludeSaved: Boolean = false, excludeUnlimited: Boolean = false, excludeLimited: Boolean = false, excludeUnique: Boolean = false, sortByPrice: Boolean = false, initialOffset: String? = null, limit: Int? = null, onErrorContinueChecker: suspend (Throwable?) -> Boolean = { false }): Flow<OwnedGifts<GiftSentOrReceived.ReceivedInBusinessAccount>>

Creates a flow that emits business account gifts in a paginated manner.

Link copied to clipboard
Link copied to clipboard
suspend fun TelegramBot.readBusinessMessage(businessConnectionId: BusinessConnectionId, message: AccessibleMessage): Boolean
suspend fun TelegramBot.readBusinessMessage(businessConnectionId: BusinessConnectionId, chatId: ChatId, messageId: MessageId): Boolean
suspend fun TelegramBot.readBusinessMessage(businessConnectionId: BusinessConnectionId, chat: Chat, messageId: MessageId): Boolean
Link copied to clipboard
suspend fun TelegramBot.removeBusinessAccountProfilePhoto(businessConnectionId: BusinessConnectionId, isPublic: Boolean = false): Boolean
Link copied to clipboard
suspend fun TelegramBot.setBusinessAccountBio(businessConnectionId: BusinessConnectionId, bio: String): Boolean
Link copied to clipboard
suspend fun TelegramBot.setBusinessAccountGiftSettings(businessConnectionId: BusinessConnectionId, showGiftButton: Boolean, acceptedGiftTypes: AcceptedGiftTypes): Boolean

Sets the gift settings for a business account

suspend fun TelegramBot.setBusinessAccountGiftSettings(message: BusinessContentMessage<*>, showGiftButton: Boolean, acceptedGiftTypes: AcceptedGiftTypes): Boolean

Sets the gift settings for a business account using business message context

Link copied to clipboard
suspend fun TelegramBot.setBusinessAccountName(businessConnectionId: BusinessConnectionId, firstName: String, lastName: String? = null): Boolean
Link copied to clipboard
suspend fun TelegramBot.setBusinessAccountProfilePhoto(businessConnectionId: BusinessConnectionId, photo: InputProfilePhoto, isPublic: Boolean = false): Boolean
Link copied to clipboard
suspend fun TelegramBot.setBusinessAccountUsername(businessConnectionId: BusinessConnectionId, username: Username): Boolean
suspend fun TelegramBot.setBusinessAccountUsername(businessConnectionId: BusinessConnectionId, username: String): Boolean
Link copied to clipboard
suspend fun TelegramBot.transferBusinessAccountStars(businessConnectionId: BusinessConnectionId, amount: Int): Boolean
Link copied to clipboard
suspend fun TelegramBot.transferGift(businessConnectionId: BusinessConnectionId, ownedGiftId: GiftId, newOwnerChatId: ChatId, transferPaymentStarCount: Int? = null): Boolean
suspend fun TelegramBot.transferGift(businessConnectionId: BusinessConnectionId, gift: Gift.Regular, newOwnerChatId: ChatId, transferPaymentStarCount: Int? = null): Boolean