Package dev.inmo.tgbotapi.types.actions

Types

BotAction
Link copied to clipboard
interface BotAction

Use BotAction objects realisations to notify user about bot actions

BotActionSerializer
Link copied to clipboard
object BotActionSerializer : KSerializer<BotAction>
ChooseStickerAction
Link copied to clipboard
object ChooseStickerAction : BotAction

Will notify user that bot is uploading video note

CustomBotAction
Link copied to clipboard
class CustomBotAction constructor(actionName: String) : BotAction
FindLocationAction
Link copied to clipboard
object FindLocationAction : BotAction

Will notify user that bot is trying to find location

RecordVideoAction
Link copied to clipboard
object RecordVideoAction : BotAction

Will notify user that bot is recording some video

RecordVideoNoteAction
Link copied to clipboard
object RecordVideoNoteAction : BotAction

Will notify user that bot is recording video note

RecordVoiceAction
Link copied to clipboard
object RecordVoiceAction : BotAction

Will notify user that bot is recording some audio

TypingAction
Link copied to clipboard
object TypingAction : BotAction

Will notify user that bot is "typing" something

UploadDocumentAction
Link copied to clipboard
object UploadDocumentAction : BotAction

Will notify user that bot is uploading some document

UploadPhotoAction
Link copied to clipboard
object UploadPhotoAction : BotAction

Will notify user that bot is uploading some photo

UploadVideoAction
Link copied to clipboard
object UploadVideoAction : BotAction

Will notify user that bot is uploading some photo

UploadVideoNoteAction
Link copied to clipboard
object UploadVideoNoteAction : BotAction

Will notify user that bot is uploading video note

UploadVoiceAction
Link copied to clipboard
object UploadVoiceAction : BotAction

Will notify user that bot is uploading some audio

Functions

asChooseStickerAction
Link copied to clipboard
inline fun BotAction.asChooseStickerAction(): ChooseStickerAction?
asFindLocation
Link copied to clipboard
inline fun BotAction.asFindLocation(): FindLocationAction?
asRecordVideo
Link copied to clipboard
inline fun BotAction.asRecordVideo(): RecordVideoAction?
asRecordVideoNote
Link copied to clipboard
inline fun BotAction.asRecordVideoNote(): RecordVideoNoteAction?
asRecordVoice
Link copied to clipboard
inline fun BotAction.asRecordVoice(): RecordVoiceAction?
asTyping
Link copied to clipboard
inline fun BotAction.asTyping(): TypingAction?
asUploadDocument
Link copied to clipboard
inline fun BotAction.asUploadDocument(): UploadDocumentAction?
asUploadPhoto
Link copied to clipboard
inline fun BotAction.asUploadPhoto(): UploadPhotoAction?
asUploadVideo
Link copied to clipboard
inline fun BotAction.asUploadVideo(): UploadVideoAction?
asUploadVideoNote
Link copied to clipboard
inline fun BotAction.asUploadVideoNote(): UploadVideoNoteAction?
asUploadVoice
Link copied to clipboard
inline fun BotAction.asUploadVoice(): UploadVoiceAction?

Properties

chooseSticker
Link copied to clipboard
val chooseSticker: ChooseStickerAction
findLocation
Link copied to clipboard
val findLocation: FindLocationAction
recordVideo
Link copied to clipboard
val recordVideo: RecordVideoAction
recordVideoNote
Link copied to clipboard
val recordVideoNote: RecordVideoNoteAction
recordVoice
Link copied to clipboard
val recordVoice: RecordVoiceAction
typing
Link copied to clipboard
val typing: TypingAction
uploadDocument
Link copied to clipboard
val uploadDocument: UploadDocumentAction
uploadPhoto
Link copied to clipboard
val uploadPhoto: UploadPhotoAction
uploadVideo
Link copied to clipboard
val uploadVideo: UploadVideoAction
uploadVideoNote
Link copied to clipboard
val uploadVideoNote: UploadVideoNoteAction
uploadVoice
Link copied to clipboard
val uploadVoice: UploadVoiceAction