Package-level declarations

Functions

Link copied to clipboard
inline fun TelegramBot.addStickerToSet(userId: Long, name: String, noinline input: () -> InputSticker): AddStickerToSetAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.answerPreCheckoutQuery(preCheckoutQueryId: String, ok: Boolean, errorMessage: String? = null): AnswerPreCheckoutQueryAction
Link copied to clipboard
inline fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, errorMessage: String? = null, vararg shippingOption: ShippingOption): AnswerShippingQueryAction
inline fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, errorMessage: String? = null, noinline shippingOptions: ListingBuilder<ShippingOption>.() -> Unit): AnswerShippingQueryAction
inline fun TelegramBot.answerShippingQuery(shippingQueryId: String, ok: Boolean, shippingOptions: List<ShippingOption>? = null, errorMessage: String? = null): AnswerShippingQueryAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.banChatMember(user: User, untilDate: Instant? = null, revokeMessages: Boolean? = null): BanChatMemberAction
inline fun TelegramBot.banChatMember(userId: Long, untilDate: Instant? = null, revokeMessages: Boolean? = null): BanChatMemberAction
Link copied to clipboard
inline fun TelegramBot.chatAction(action: ChatAction, messageThreadId: Int? = null): SendChatActionAction
inline fun TelegramBot.chatAction(messageThreadId: Int? = null, noinline block: () -> ChatAction): SendChatActionAction
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
inline fun TelegramBot.contact(firstName: String, phoneNumber: String): SendContactAction
Link copied to clipboard
inline fun TelegramBot.copyMessage(fromChatId: User, messageId: Long): CopyMessageAction
inline fun TelegramBot.copyMessage(fromChatId: Chat, messageId: Long): CopyMessageAction
inline fun TelegramBot.copyMessage(fromChatId: Identifier, messageId: Long): CopyMessageAction
inline fun TelegramBot.copyMessage(fromChatId: Long, messageId: Long): CopyMessageAction
inline fun TelegramBot.copyMessage(fromChatId: String, messageId: Long): CopyMessageAction
Link copied to clipboard
inline fun TelegramBot.copyMessages(fromChatId: User, vararg messageId: Long): CopyMessagesAction
inline fun TelegramBot.copyMessages(fromChatId: Chat, vararg messageId: Long): CopyMessagesAction
inline fun TelegramBot.copyMessages(fromChatId: Identifier, messageIds: List<Long>): CopyMessagesAction
inline fun TelegramBot.copyMessages(fromChatId: Long, vararg messageId: Long): CopyMessagesAction
inline fun TelegramBot.copyMessages(fromChatId: String, vararg messageId: Long): CopyMessagesAction
Link copied to clipboard
inline fun TelegramBot.createChatSubscriptionInviteLink(subscriptionPrice: Int, name: String? = null, subscriptionPeriod: Duration): CreateChatSubscriptionInviteLinkAction
Link copied to clipboard
inline fun TelegramBot.createForumTopic(name: String, iconColor: IconColor? = null, iconCustomEmojiId: String? = null): CreateForumTopicAction
Link copied to clipboard
inline fun TelegramBot.createInvoiceLink(title: String, description: String, currency: Currency, vararg prices: LabeledPrice, noinline payload: () -> String): CreateInvoiceLinkAction
inline fun TelegramBot.createInvoiceLink(title: String, description: String, payload: String, currency: Currency, prices: List<LabeledPrice>): CreateInvoiceLinkAction
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 fun TelegramBot.deleteMyCommands(languageCode: String? = null, scope: BotCommandScope? = null): DeleteMyCommandsAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.deleteWebhook(dropPendingUpdates: Boolean): DeleteWebhookAction
Link copied to clipboard
inline fun TelegramBot.dice(emoji: String? = null): SendDiceAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.editForumTopic(messageThreadId: Int, name: String? = null, iconCustomEmojiId: String? = null): EditForumTopicAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.editText(messageId: Long, noinline block: () -> String): EditMessageTextAction
Link copied to clipboard
inline fun TelegramBot.editUserStarSubscription(userId: Long, telegramPaymentChargeId: String, isCanceled: Boolean): EditUserStarSubscriptionAction
Link copied to clipboard
inline fun TelegramBot.forwardMessage(fromChatId: User, messageId: Long): ForwardMessageAction
inline fun TelegramBot.forwardMessage(fromChatId: Chat, messageId: Long): ForwardMessageAction
inline fun TelegramBot.forwardMessage(fromChatId: Identifier, messageId: Long): ForwardMessageAction
inline fun TelegramBot.forwardMessage(fromChatId: Long, messageId: Long): ForwardMessageAction
inline fun TelegramBot.forwardMessage(fromChatId: String, messageId: Long): ForwardMessageAction
Link copied to clipboard
inline fun TelegramBot.forwardMessages(fromChatId: User, vararg messageId: Long): ForwardMessagesAction
inline fun TelegramBot.forwardMessages(fromChatId: Chat, vararg messageId: Long): ForwardMessagesAction
inline fun TelegramBot.forwardMessages(fromChatId: Identifier, messageIds: List<Long>): ForwardMessagesAction
inline fun TelegramBot.forwardMessages(fromChatId: Long, vararg messageId: Long): ForwardMessagesAction
inline fun TelegramBot.forwardMessages(fromChatId: String, vararg messageId: Long): ForwardMessagesAction
Link copied to clipboard
inline fun TelegramBot.game(gameShortName: String): SendGameAction
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 fun TelegramBot.getMyCommands(languageCode: String? = null, scope: BotCommandScope? = null): GetMyCommandsAction
Link copied to clipboard
inline fun TelegramBot.getMyDescription(languageCode: String? = null): GetMyDescriptionAction
Link copied to clipboard
inline fun TelegramBot.getMyName(languageCode: String? = null): GetMyNameAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.getStarTransactions(offset: Int? = null, limit: Int? = null): GetStarTransactionsAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.getUserProfilePhotos(user: User, offset: Int? = null, limit: Int? = null): GetUserProfilePhotosAction
inline fun TelegramBot.getUserProfilePhotos(userId: Long, offset: Int? = null, limit: Int? = null): GetUserProfilePhotosAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.invoice(title: String, description: String, payload: String, providerToken: String? = null, currency: Currency, prices: List<LabeledPrice>): SendInvoiceAction
inline fun TelegramBot.invoice(title: String, description: String, providerToken: String? = null, currency: Currency, vararg prices: LabeledPrice, noinline payload: () -> String): SendInvoiceAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.location(latitude: Float, longitude: Float): SendLocationAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.pinChatMessage(messageId: Long, disableNotification: Boolean? = null): PinChatMessageAction
Link copied to clipboard
inline fun TelegramBot.poll(question: String, vararg options: InputPollOption): SendPollAction
inline fun TelegramBot.poll(question: String, noinline options: PollOptionsBuilder.() -> Unit): SendPollAction
inline fun TelegramBot.poll(question: String, options: List<InputPollOption>): SendPollAction
Link copied to clipboard
inline fun TelegramBot.refundStarPayment(telegramPaymentChargeId: String, userId: Long): RefundStarPaymentAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.replaceStickerInSet(userId: Long, name: String, oldSticker: String, sticker: InputSticker): ReplaceStickerInSetAction
Link copied to clipboard
inline fun TelegramBot.restrictChatMember(user: User, chatPermissions: ChatPermissions, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null): RestrictChatMemberAction
inline fun TelegramBot.restrictChatMember(user: User, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null, noinline chatPermissions: ChatPermissions.() -> Unit): RestrictChatMemberAction
inline fun TelegramBot.restrictChatMember(userId: Long, chatPermissions: ChatPermissions, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null): RestrictChatMemberAction
inline fun TelegramBot.restrictChatMember(userId: Long, untilDate: Instant? = null, useIndependentChatPermissions: Boolean? = null, noinline chatPermissions: ChatPermissions.() -> Unit): RestrictChatMemberAction
Link copied to clipboard
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)
suspend fun <R> Action<R>.sendAnd(to: Long, bot: TelegramBot, onFailure: suspend () -> Nothing = DEFAULT_FAILURE_ACTION, block: suspend R.() -> Unit)
suspend fun <R> Action<R>.sendAnd(to: String, bot: TelegramBot, onFailure: suspend () -> Nothing = DEFAULT_FAILURE_ACTION, block: suspend R.() -> Unit)
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendAudio(noinline block: () -> String): SendAudioAction
Link copied to clipboard
inline fun TelegramBot.sendChatAction(action: ChatAction, messageThreadId: Int? = null): SendChatActionAction
inline fun TelegramBot.sendChatAction(messageThreadId: Int? = null, noinline block: () -> ChatAction): SendChatActionAction
Link copied to clipboard
inline fun TelegramBot.sendContact(firstName: String, phoneNumber: String): SendContactAction
Link copied to clipboard
inline fun TelegramBot.sendDice(emoji: String? = null): SendDiceAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendGame(gameShortName: String): SendGameAction
Link copied to clipboard
inline fun TelegramBot.sendGift(userId: Long, giftId: String, payForUpgrade: Boolean? = null, textParseMode: ParseMode? = null, noinline text: () -> String?): SendGiftAction
Link copied to clipboard
inline fun TelegramBot.sendInvoice(title: String, description: String, payload: String, providerToken: String? = null, currency: Currency, prices: List<LabeledPrice>): SendInvoiceAction
Link copied to clipboard
inline fun TelegramBot.sendLocation(latitude: Float, longitude: Float): SendLocationAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendPaidMedia(starCount: Int, vararg media: InputPaidMedia): SendPaidMediaAction
inline fun TelegramBot.sendPaidMedia(starCount: Int, noinline media: ListingBuilder<InputPaidMedia>.() -> Unit): SendPaidMediaAction
Link copied to clipboard
inline fun TelegramBot.sendPhoto(noinline block: () -> String): SendPhotoAction
Link copied to clipboard
inline fun TelegramBot.sendPoll(question: String, noinline options: PollOptionsBuilder.() -> Unit): SendPollAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendVenue(latitude: Float, longitude: Float, title: String, address: String): SendVenueAction
Link copied to clipboard
inline fun TelegramBot.sendVideo(noinline block: () -> String): SendVideoAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.sendVoice(noinline block: () -> String): SendVoiceAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setChatPermissions(permissions: ChatPermissions, useIndependentChatPermissions: Boolean? = null): SetChatPermissionsAction
inline fun TelegramBot.setChatPermissions(useIndependentChatPermissions: Boolean? = null, noinline permissions: ChatPermissions.() -> Unit): SetChatPermissionsAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setGameScore(userId: Long, score: Long): SetGameScoreAction
inline fun TelegramBot.setGameScore(user: User, messageId: Long, score: Long): SetGameScoreAction
inline fun TelegramBot.setGameScore(userId: Long, messageId: Long, score: Long): SetGameScoreAction
Link copied to clipboard
inline fun TelegramBot.setMessageReaction(messageId: Long, vararg reaction: ReactionType, isBig: Boolean? = null): SetMessageReactionAction
inline fun TelegramBot.setMessageReaction(messageId: Long, isBig: Boolean? = null, noinline reaction: ListingBuilder<ReactionType>.() -> Unit): SetMessageReactionAction
inline fun TelegramBot.setMessageReaction(messageId: Long, reaction: List<ReactionType>? = null, isBig: Boolean? = null): SetMessageReactionAction
Link copied to clipboard
inline fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, vararg command: BotCommand): SetMyCommandsAction
inline fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, noinline block: BotCommandsBuilder.() -> Unit): SetMyCommandsAction
inline fun TelegramBot.setMyCommands(languageCode: String? = null, scope: BotCommandScope? = null, command: List<BotCommand>): SetMyCommandsAction
Link copied to clipboard
inline fun TelegramBot.setMyDescription(description: String? = null, languageCode: String? = null): SetMyDescriptionAction
Link copied to clipboard
inline fun TelegramBot.setMyName(name: String? = null, languageCode: String? = null): SetMyNameAction
Link copied to clipboard
inline fun TelegramBot.setMyShortDescription(description: String? = null, languageCode: String? = null): SetMyShortDescriptionAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setStickerKeywords(sticker: String, keywords: List<String>? = null): SetStickerKeywordsAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.setUserEmojiStatus(userId: Long, emojiStatusCustomEmojiId: String? = null, emojiStatusExpirationDate: Instant? = null): SetUserEmojiStatusAction
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.stopPoll(messageId: Long): StopPollAction
Link copied to clipboard
inline fun TelegramBot.unbanChatMember(user: User, onlyIfBanned: Boolean? = null): UnbanChatMemberAction
inline fun TelegramBot.unbanChatMember(userId: Long, onlyIfBanned: Boolean? = null): UnbanChatMemberAction
Link copied to clipboard
Link copied to clipboard
inline fun TelegramBot.uploadStickerFile(userId: Long, sticker: InputFile, stickerFormat: StickerFormat): UploadStickerFileAction
Link copied to clipboard
inline fun TelegramBot.venue(latitude: Float, longitude: Float, title: String, address: String): SendVenueAction
Link copied to clipboard
inline fun TelegramBot.verifyChat(chat: Chat, noinline customDescription: () -> String?): VerifyChatAction
inline fun TelegramBot.verifyChat(chatId: Long, noinline customDescription: () -> String?): VerifyChatAction
inline fun TelegramBot.verifyChat(chatId: Long, customDescription: String? = null): VerifyChatAction
Link copied to clipboard
inline fun TelegramBot.verifyUser(user: User, noinline customDescription: () -> String?): VerifyUserAction
inline fun TelegramBot.verifyUser(userId: Long, noinline customDescription: () -> String?): VerifyUserAction
inline fun TelegramBot.verifyUser(userId: Long, customDescription: String? = null): VerifyUserAction
Link copied to clipboard
Link copied to clipboard