Package-level declarations
Functions
Link copied to clipboard
inline suspend fun TelegramBot.addStickerToSet(userId: Long, name: String, noinline input: () -> InputSticker)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.answerInlineQuery(inlineQueryId: String, vararg result: InlineQueryResult)
inline suspend fun TelegramBot.answerInlineQuery(inlineQueryId: String, noinline results: ListingBuilder<InlineQueryResult>.() -> Unit)
inline suspend fun TelegramBot.answerInlineQuery(inlineQueryId: String, results: List<InlineQueryResult>)
Link copied to clipboard
inline suspend fun TelegramBot.answerPreCheckoutQuery(preCheckoutQueryId: String, ok: Boolean, errorMessage: String? = null)
Link copied to clipboard
inline suspend fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, errorMessage: String? = null, vararg shippingOption: ShippingOption)
inline suspend fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, errorMessage: String? = null, noinline shippingOptions: ListingBuilder<ShippingOption>.() -> Unit)
inline suspend fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, shippingOptions: List<ShippingOption>? = null, errorMessage: String? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.banChatMember(user: User, untilDate: Instant? = null, revokeMessages: Boolean? = null, chatId: Long)
inline suspend fun TelegramBot.banChatMember(userId: Long, untilDate: Instant? = null, revokeMessages: Boolean? = null, chatId: Long)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.chatAction(action: ChatAction, messageThreadId: Int? = null, chatId: Long)
inline suspend fun TelegramBot.chatAction(messageThreadId: Int? = null, noinline block: () -> ChatAction, chatId: Long)
Link copied to clipboard
Function to check is web app data is safe.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.convertGiftToStars(businessConnectionId: String, ownedGiftId: String)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.copyMessages(fromChatId: Identifier, messageIds: List<Long>, chatId: Long)
inline suspend fun TelegramBot.copyMessages(fromChatId: String, vararg messageId: Long, chatId: Long)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.createChatSubscriptionInviteLink(subscriptionPrice: Int, name: String? = null, subscriptionPeriod: Duration, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.createForumTopic(name: String, iconColor: IconColor? = null, iconCustomEmojiId: String? = null, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.createInvoiceLink(title: String, description: String, currency: Currency, vararg prices: LabeledPrice, noinline payload: () -> String)
inline suspend fun TelegramBot.createInvoiceLink(title: String, description: String, payload: String, currency: Currency, prices: List<LabeledPrice>)
Link copied to clipboard
inline suspend fun TelegramBot.createNewStickerSet(userId: Long, name: String, title: String, stickers: List<InputSticker>)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.deleteBusinessMessages(businessConnectionId: String, messageIds: List<Long>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.deleteMyCommands(languageCode: String? = null, scope: BotCommandScope? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.editChatSubscriptionInviteLink(inviteLink: String, name: String? = null, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.editForumTopic(messageThreadId: Int, name: String? = null, iconCustomEmojiId: String? = null, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.editMessageLiveLocation(latitude: Float, longitude: Float, chatId: Long)
inline suspend fun TelegramBot.editMessageLiveLocation(messageId: Long, latitude: Float, longitude: Float, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.editMessageMedia(messageId: Long, inputMedia: InputMedia, chatId: Long)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.editMessageText(noinline block: EntitiesCtxBuilder<EditMessageTextAction>.() -> String, chatId: Long)
inline suspend fun TelegramBot.editMessageText(messageId: Long, noinline block: () -> String, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.editStory(businessConnectionId: String, storyId: String, content: InputStoryContent)
Link copied to clipboard
inline suspend fun TelegramBot.editText(noinline block: EntitiesCtxBuilder<EditMessageTextAction>.() -> String, chatId: Long)
inline suspend fun TelegramBot.editText(messageId: Long, noinline block: () -> String, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.editUserStarSubscription(userId: Long, telegramPaymentChargeId: String, isCanceled: Boolean)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.forwardMessage(fromChatId: Identifier, messageId: Long, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.forwardMessages(fromChatId: User, vararg messageId: Long, chatId: Long)
inline suspend fun TelegramBot.forwardMessages(fromChatId: Chat, vararg messageId: Long, chatId: Long)
inline suspend fun TelegramBot.forwardMessages(fromChatId: Identifier, messageIds: List<Long>, chatId: Long)
inline suspend fun TelegramBot.forwardMessages(fromChatId: Long, vararg messageId: Long, chatId: Long)
inline suspend fun TelegramBot.forwardMessages(fromChatId: String, vararg messageId: Long, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.getMyCommands(languageCode: String? = null, scope: BotCommandScope? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.getUserProfilePhotos(user: User, offset: Int? = null, limit: Int? = null)
inline suspend fun TelegramBot.getUserProfilePhotos(userId: Long, offset: Int? = null, limit: Int? = null)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.giftPremiumSubscription(userId: Long, monthCount: Int, starCount: Int, textParseMode: ParseMode? = null, noinline text: () -> String? = null)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.invoice(title: String, description: String, payload: String, providerToken: String? = null, currency: Currency, prices: List<LabeledPrice>, chatId: Long)
inline suspend fun TelegramBot.invoice(title: String, description: String, providerToken: String? = null, currency: Currency, vararg prices: LabeledPrice, noinline payload: () -> String, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.message(noinline block: EntitiesCtxBuilder<SendMessageAction>.() -> String, chatId: Long)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.pinChatMessage(messageId: Long, disableNotification: Boolean? = null, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.poll(question: String, vararg options: InputPollOption, chatId: Long)
inline suspend fun TelegramBot.poll(question: String, noinline options: PollOptionsBuilder.() -> Unit, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.postStory(businessConnectionId: String, content: InputStoryContent, activePeriod: Duration)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.readBusinessMessage(businessConnectionId: String, messageId: Long, chatId: Long)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.removeBusinessAccountProfilePhoto(businessConnectionId: String, isPublic: Boolean? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.replaceStickerInSet(userId: Long, name: String, oldSticker: String, sticker: InputSticker, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.restrictChatMember(user: User, chatPermissions: ChatPermissions, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null, chatId: Long)
inline suspend fun TelegramBot.restrictChatMember(user: User, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null, noinline chatPermissions: ChatPermissions.() -> Unit, chatId: Long)
inline suspend fun TelegramBot.restrictChatMember(userId: Long, chatPermissions: ChatPermissions, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null, chatId: Long)
inline suspend fun TelegramBot.restrictChatMember(userId: Long, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null, noinline chatPermissions: ChatPermissions.() -> Unit, chatId: Long)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.savePreparedInlineMessage(userId: Long, noinline result: () -> InlineQueryResult)
Link copied to clipboard
suspend fun <R> Action<R>.sendAnd(to: User, bot: TelegramBot, onFailure: suspend () -> Nothing = DEFAULT_FAILURE_ACTION, block: suspend R.() -> Unit)
suspend fun <R> Action<R>.sendAnd(to: Chat, bot: TelegramBot, onFailure: suspend () -> Nothing = DEFAULT_FAILURE_ACTION, block: suspend R.() -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.sendChatAction(action: ChatAction, messageThreadId: Int? = null, chatId: Long)
inline suspend fun TelegramBot.sendChatAction(messageThreadId: Int? = null, noinline block: () -> ChatAction, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.sendInvoice(title: String, description: String, payload: String, providerToken: String? = null, currency: Currency, prices: List<LabeledPrice>, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.sendMessage(noinline block: EntitiesCtxBuilder<SendMessageAction>.() -> String, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.sendPaidMedia(starCount: Int, vararg media: InputPaidMedia, chatId: Long)
inline suspend fun TelegramBot.sendPaidMedia(starCount: Int, noinline media: ListingBuilder<InputPaidMedia>.() -> Unit, chatId: Long)
inline suspend fun TelegramBot.sendPaidMedia(starCount: Int, media: List<InputPaidMedia>, chatId: Long)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.sendPoll(question: String, noinline options: PollOptionsBuilder.() -> Unit, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.setBusinessAccountBio(businessConnectionId: String, bio: String? = null)
Link copied to clipboard
inline suspend fun TelegramBot.setBusinessAccountGiftSettings(businessConnectionId: String, showGiftButton: Boolean, acceptedGiftTypes: AcceptedGiftTypes)
Link copied to clipboard
inline suspend fun TelegramBot.setBusinessAccountName(businessConnectionId: String, firstName: String, lastName: String? = null)
Link copied to clipboard
inline suspend fun TelegramBot.setBusinessAccountProfilePhoto(businessConnectionId: String, photo: InputProfilePhoto, isPublic: Boolean? = null)
Link copied to clipboard
inline suspend fun TelegramBot.setBusinessAccountUsername(businessConnectionId: String, username: String? = null)
Link copied to clipboard
inline suspend fun TelegramBot.setChatAdministratorCustomTitle(user: User, customTitle: String, chatId: Long)
inline suspend fun TelegramBot.setChatAdministratorCustomTitle(userId: Long, customTitle: String, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.setChatPermissions(permissions: ChatPermissions, useIndependentChatPermissions: Boolean? = null, chatId: Long)
inline suspend fun TelegramBot.setChatPermissions(useIndependentChatPermissions: Boolean? = null, noinline permissions: ChatPermissions.() -> Unit, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.setCustomEmojiStickerSetThumbnail(name: String, customEmojiId: String? = null)
Link copied to clipboard
inline suspend fun TelegramBot.setGameScore(userId: Long, messageId: Long, score: Long, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.setMessageReaction(messageId: Long, vararg reaction: ReactionType, isBig: Boolean? = null, chatId: Long)
inline suspend fun TelegramBot.setMessageReaction(messageId: Long, isBig: Boolean? = null, noinline reaction: ListingBuilder<ReactionType>.() -> Unit, chatId: Long)
inline suspend fun TelegramBot.setMessageReaction(messageId: Long, reaction: List<ReactionType>? = null, isBig: Boolean? = null, chatId: Long)
Link copied to clipboard
inline suspend fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, vararg command: BotCommand)
inline suspend fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, noinline block: BotCommandsBuilder.() -> Unit)
inline suspend fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, command: List<BotCommand>)
Link copied to clipboard
inline suspend fun TelegramBot.setMyDefaultAdministratorRights(rights: ChatAdministratorRights? = null, forChannel: Boolean? = null)
Link copied to clipboard
inline suspend fun TelegramBot.setMyDescription(description: String? = null, languageCode: String? = null)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.setMyShortDescription(description: String? = null, languageCode: String? = null)
Link copied to clipboard
inline suspend fun TelegramBot.setPassportDataError(userId: Long, vararg error: PassportElementError)
Link copied to clipboard
inline suspend fun TelegramBot.setPassportDataErrors(userId: Long, noinline errors: ListingBuilder<PassportElementError>.() -> Unit)
inline suspend fun TelegramBot.setPassportDataErrors(userId: Long, errors: List<PassportElementError>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.setStickerMaskPosition(sticker: String, maskPosition: MaskPosition? = null)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.setStickerSetThumbnail(name: String, userId: Long, format: StickerFormat, thumbnail: ImplicitFile? = null)
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.setUserEmojiStatus(userId: Long, emojiStatusCustomEmojiId: String? = null, emojiStatusExpirationDate: Instant? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.transferBusinessAccountStars(businessConnectionId: String, starCount: Int)
Link copied to clipboard
inline suspend fun TelegramBot.transferGift(businessConnectionId: String, ownedGiftId: String, newOwnerChatId: Long, starCount: Int? = null)
Link copied to clipboard
inline suspend fun TelegramBot.unbanChatMember(user: User, onlyIfBanned: Boolean? = null, chatId: Long)
inline suspend fun TelegramBot.unbanChatMember(userId: Long, onlyIfBanned: Boolean? = null, chatId: Long)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline suspend fun TelegramBot.upgradeGift(businessConnectionId: String, ownedGiftId: String, keepOriginalDetails: Boolean? = null, starCount: Int? = null)
Link copied to clipboard
inline suspend fun TelegramBot.uploadStickerFile(userId: Long, sticker: InputFile, stickerFormat: StickerFormat)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard