Package dev.inmo.tgbotapi.extensions.api.send

Types

TelegramBotActionCallback
Link copied to clipboard
common
typealias TelegramBotActionCallback<T> = suspend TelegramBot.() -> T

Functions

copyMessage
Link copied to clipboard
common
inline suspend fun TelegramBot.copyMessage(toChatId: ChatIdentifier, message: Message, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(toChat: Chat, message: Message, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: MessageIdentifier, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(fromChatId: ChatIdentifier, toChat: Chat, messageId: MessageIdentifier, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(toChatId: ChatIdentifier, message: Message, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(fromChat: Chat, toChatId: ChatIdentifier, messageId: MessageIdentifier, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(fromChat: Chat, toChat: Chat, messageId: MessageIdentifier, entities: List<TextSource>, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(toChat: Chat, message: Message, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(fromChatId: ChatIdentifier, toChatId: ChatIdentifier, messageId: MessageIdentifier, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(fromChatId: ChatIdentifier, toChat: Chat, messageId: MessageIdentifier, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(fromChat: Chat, toChatId: ChatIdentifier, messageId: MessageIdentifier, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
inline suspend fun TelegramBot.copyMessage(fromChat: Chat, toChat: Chat, messageId: MessageIdentifier, text: String? = null, parseMode: ParseMode? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): Long
reply
Link copied to clipboard
common
inline suspend fun TelegramBot.reply(to: Message, location: StaticLocation, disableNotification: Boolean = false, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
inline suspend fun TelegramBot.reply(to: Message, contact: Contact, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
inline suspend fun TelegramBot.reply(to: Message, animationType: DiceAnimationType? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DiceContent>
inline suspend fun TelegramBot.reply(to: Message, venue: Venue, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
inline suspend fun TelegramBot.reply(to: Message, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
inline suspend fun TelegramBot.reply(to: Message, entities: List<TextSource>, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
inline suspend fun TelegramBot.reply(to: Message, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
inline suspend fun TelegramBot.reply(to: Message, phoneNumber: String, firstName: String, lastName: String? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
inline suspend fun TelegramBot.reply(to: Message, location: StaticLocation, title: String, address: String, foursquareId: FoursquareId? = null, foursquareType: FoursquareType? = null, googlePlaceId: GooglePlaceId? = null, googlePlaceType: GooglePlaceType? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
inline suspend fun TelegramBot.reply(to: Message, latitude: Double, longitude: Double, title: String, address: String, foursquareId: FoursquareId? = null, foursquareType: FoursquareType? = null, googlePlaceId: GooglePlaceId? = null, googlePlaceType: GooglePlaceType? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
replyWithDice
Link copied to clipboard
common
inline suspend fun TelegramBot.replyWithDice(to: Message, animationType: DiceAnimationType? = null, disableNotification: Boolean = false, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DiceContent>
sendActionFindLocation
Link copied to clipboard
common
suspend fun TelegramBot.sendActionFindLocation(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionFindLocation(chat: Chat): Boolean
sendActionRecordVideo
Link copied to clipboard
common
suspend fun TelegramBot.sendActionRecordVideo(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionRecordVideo(chat: Chat): Boolean
sendActionRecordVideoNote
Link copied to clipboard
common
suspend fun TelegramBot.sendActionRecordVideoNote(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionRecordVideoNote(chat: Chat): Boolean
sendActionRecordVoice
Link copied to clipboard
common
suspend fun TelegramBot.sendActionRecordVoice(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionRecordVoice(chat: Chat): Boolean
sendActionTyping
Link copied to clipboard
common
suspend fun TelegramBot.sendActionTyping(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionTyping(chat: Chat): Boolean
sendActionUploadDocument
Link copied to clipboard
common
suspend fun TelegramBot.sendActionUploadDocument(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionUploadDocument(chat: Chat): Boolean
sendActionUploadPhoto
Link copied to clipboard
common
suspend fun TelegramBot.sendActionUploadPhoto(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionUploadPhoto(chat: Chat): Boolean
sendActionUploadVideo
Link copied to clipboard
common
suspend fun TelegramBot.sendActionUploadVideo(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionUploadVideo(chat: Chat): Boolean
sendActionUploadVideoNote
Link copied to clipboard
common
suspend fun TelegramBot.sendActionUploadVideoNote(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionUploadVideoNote(chat: Chat): Boolean
sendActionUploadVoice
Link copied to clipboard
common
suspend fun TelegramBot.sendActionUploadVoice(chatId: ChatIdentifier): Boolean
suspend fun TelegramBot.sendActionUploadVoice(chat: Chat): Boolean
sendBotAction
Link copied to clipboard
common
suspend fun TelegramBot.sendBotAction(chatId: ChatIdentifier, action: BotAction): Boolean
suspend fun TelegramBot.sendBotAction(chat: Chat, action: BotAction): Boolean
sendContact
Link copied to clipboard
common
suspend fun TelegramBot.sendContact(chatId: ChatIdentifier, contact: Contact, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun TelegramBot.sendContact(chat: Chat, contact: Contact, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun TelegramBot.sendContact(chatId: ChatIdentifier, phoneNumber: String, firstName: String, lastName: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
suspend fun TelegramBot.sendContact(chat: Chat, phoneNumber: String, firstName: String, lastName: String? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<ContactContent>
sendDice
Link copied to clipboard
common
suspend fun TelegramBot.sendDice(chatId: ChatIdentifier, animationType: DiceAnimationType? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DiceContent>
suspend fun TelegramBot.sendDice(chat: Chat, animationType: DiceAnimationType? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<DiceContent>
sendLocation
Link copied to clipboard
common
suspend fun TelegramBot.sendLocation(chatId: ChatIdentifier, location: StaticLocation, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun TelegramBot.sendLocation(chat: Chat, location: StaticLocation, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun TelegramBot.sendLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun TelegramBot.sendLocation(chat: Chat, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
sendMessage
Link copied to clipboard
common
suspend fun TelegramBot.sendMessage(chatId: ChatIdentifier, entities: List<TextSource>, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.sendMessage(chat: Chat, entities: List<TextSource>, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.sendMessage(chatId: ChatIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.sendMessage(chat: Chat, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
sendStaticLocation
Link copied to clipboard
common
suspend fun TelegramBot.sendStaticLocation(chatId: ChatIdentifier, location: StaticLocation, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun TelegramBot.sendStaticLocation(chat: Chat, location: StaticLocation, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun TelegramBot.sendStaticLocation(chatId: ChatIdentifier, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
suspend fun TelegramBot.sendStaticLocation(chat: Chat, latitude: Double, longitude: Double, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<LocationContent>
sendTextMessage
Link copied to clipboard
common
suspend fun TelegramBot.sendTextMessage(chatId: ChatIdentifier, entities: List<TextSource>, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.sendTextMessage(chat: Chat, entities: List<TextSource>, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.sendTextMessage(chatId: ChatIdentifier, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
suspend fun TelegramBot.sendTextMessage(chat: Chat, text: String, parseMode: ParseMode? = null, disableWebPagePreview: Boolean? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<TextContent>
sendVenue
Link copied to clipboard
common
suspend fun TelegramBot.sendVenue(chatId: ChatIdentifier, venue: Venue, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.sendVenue(chat: Chat, venue: Venue, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.sendVenue(chatId: ChatIdentifier, location: StaticLocation, title: String, address: String, foursquareId: FoursquareId? = null, foursquareType: FoursquareType? = null, googlePlaceId: GooglePlaceId? = null, googlePlaceType: GooglePlaceType? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.sendVenue(chat: Chat, location: StaticLocation, title: String, address: String, foursquareId: FoursquareId? = null, foursquareType: FoursquareType? = null, googlePlaceId: GooglePlaceId? = null, googlePlaceType: GooglePlaceType? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.sendVenue(chatId: ChatIdentifier, latitude: Double, longitude: Double, title: String, address: String, foursquareId: FoursquareId? = null, foursquareType: FoursquareType? = null, googlePlaceId: GooglePlaceId? = null, googlePlaceType: GooglePlaceType? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
suspend fun TelegramBot.sendVenue(chat: Chat, latitude: Double, longitude: Double, title: String, address: String, foursquareId: FoursquareId? = null, foursquareType: FoursquareType? = null, googlePlaceId: GooglePlaceId? = null, googlePlaceType: GooglePlaceType? = null, disableNotification: Boolean = false, replyToMessageId: MessageIdentifier? = null, allowSendingWithoutReply: Boolean? = null, replyMarkup: KeyboardMarkup? = null): ContentMessage<VenueContent>
withAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withAction(actionRequest: SendAction, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withAction(chatId: ChatId, action: BotAction, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withAction(chat: Chat, action: BotAction, block: TelegramBotActionCallback<T>): T
withFindLocationAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withFindLocationAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withFindLocationAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withRecordVideoAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withRecordVideoAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withRecordVideoAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withRecordVideoNoteAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withRecordVideoNoteAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withRecordVideoNoteAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withRecordVoiceAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withRecordVoiceAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withRecordVoiceAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withTypingAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withTypingAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withTypingAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withUploadDocumentAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withUploadDocumentAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withUploadDocumentAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withUploadPhotoAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withUploadPhotoAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withUploadPhotoAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withUploadVideoAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withUploadVideoAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withUploadVideoAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withUploadVideoNoteAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withUploadVideoNoteAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withUploadVideoNoteAction(chat: Chat, block: TelegramBotActionCallback<T>): T
withUploadVoiceAction
Link copied to clipboard
common
suspend fun <T> TelegramBot.withUploadVoiceAction(chatId: ChatId, block: TelegramBotActionCallback<T>): T
suspend fun <T> TelegramBot.withUploadVoiceAction(chat: Chat, block: TelegramBotActionCallback<T>): T