mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-09-07 11:16:52 +00:00
71 lines
19 KiB
Markdown
71 lines
19 KiB
Markdown
|
//[docs](../../../index.md)/[dev.inmo.tgbotapi.types.actions](../index.md)/[BotAction](index.md)
|
||
|
|
||
|
|
||
|
|
||
|
# BotAction
|
||
|
[common] sealed class [BotAction](index.md)
|
||
|
|
||
|
Use BotAction objects realisations to notify user about bot actions
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
## Properties
|
||
|
|
||
|
| Name | Summary |
|
||
|
|---|---|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/BotAction/actionName/#/PointingToDeclaration/"></a>[actionName](action-name.md)| <a name="dev.inmo.tgbotapi.types.actions/BotAction/actionName/#/PointingToDeclaration/"></a> [common] abstract val [actionName](action-name.md): [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) <br>|
|
||
|
|
||
|
|
||
|
## Inheritors
|
||
|
|
||
|
| Name |
|
||
|
|---|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/TypingAction///PointingToDeclaration/"></a>[TypingAction](../-typing-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/UploadPhotoAction///PointingToDeclaration/"></a>[UploadPhotoAction](../-upload-photo-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/RecordVideoAction///PointingToDeclaration/"></a>[RecordVideoAction](../-record-video-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/UploadVideoAction///PointingToDeclaration/"></a>[UploadVideoAction](../-upload-video-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/RecordAudioAction///PointingToDeclaration/"></a>[RecordAudioAction](../-record-audio-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/UploadAudioAction///PointingToDeclaration/"></a>[UploadAudioAction](../-upload-audio-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/UploadDocumentAction///PointingToDeclaration/"></a>[UploadDocumentAction](../-upload-document-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/FindLocationAction///PointingToDeclaration/"></a>[FindLocationAction](../-find-location-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/RecordVideoNoteAction///PointingToDeclaration/"></a>[RecordVideoNoteAction](../-record-video-note-action/index.md)|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions/UploadVideoNoteAction///PointingToDeclaration/"></a>[UploadVideoNoteAction](../-upload-video-note-action/index.md)|
|
||
|
|
||
|
|
||
|
## Extensions
|
||
|
|
||
|
| Name | Summary |
|
||
|
|---|---|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asFindLocation/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asFindLocation](../as-find-location.md)| <a name="dev.inmo.tgbotapi.types.actions//asFindLocation/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asFindLocation](../as-find-location.md)(): [FindLocationAction](../-find-location-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asFindLocationAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asFindLocationAction](../../dev.inmo.tgbotapi.extensions.utils/as-find-location-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asFindLocationAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asFindLocationAction](../../dev.inmo.tgbotapi.extensions.utils/as-find-location-action.md)(): [FindLocationAction](../-find-location-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asRecordAudio/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asRecordAudio](../as-record-audio.md)| <a name="dev.inmo.tgbotapi.types.actions//asRecordAudio/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asRecordAudio](../as-record-audio.md)(): [RecordAudioAction](../-record-audio-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asRecordAudioAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asRecordAudioAction](../../dev.inmo.tgbotapi.extensions.utils/as-record-audio-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asRecordAudioAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asRecordAudioAction](../../dev.inmo.tgbotapi.extensions.utils/as-record-audio-action.md)(): [RecordAudioAction](../-record-audio-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asRecordVideo/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asRecordVideo](../as-record-video.md)| <a name="dev.inmo.tgbotapi.types.actions//asRecordVideo/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asRecordVideo](../as-record-video.md)(): [RecordVideoAction](../-record-video-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asRecordVideoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asRecordVideoAction](../../dev.inmo.tgbotapi.extensions.utils/as-record-video-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asRecordVideoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asRecordVideoAction](../../dev.inmo.tgbotapi.extensions.utils/as-record-video-action.md)(): [RecordVideoAction](../-record-video-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asRecordVideoNote/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asRecordVideoNote](../as-record-video-note.md)| <a name="dev.inmo.tgbotapi.types.actions//asRecordVideoNote/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asRecordVideoNote](../as-record-video-note.md)(): [RecordVideoNoteAction](../-record-video-note-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asRecordVideoNoteAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asRecordVideoNoteAction](../../dev.inmo.tgbotapi.extensions.utils/as-record-video-note-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asRecordVideoNoteAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asRecordVideoNoteAction](../../dev.inmo.tgbotapi.extensions.utils/as-record-video-note-action.md)(): [RecordVideoNoteAction](../-record-video-note-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asTyping/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asTyping](../as-typing.md)| <a name="dev.inmo.tgbotapi.types.actions//asTyping/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asTyping](../as-typing.md)(): [TypingAction](../-typing-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asTypingAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asTypingAction](../../dev.inmo.tgbotapi.extensions.utils/as-typing-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asTypingAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asTypingAction](../../dev.inmo.tgbotapi.extensions.utils/as-typing-action.md)(): [TypingAction](../-typing-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asUploadAudio/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadAudio](../as-upload-audio.md)| <a name="dev.inmo.tgbotapi.types.actions//asUploadAudio/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadAudio](../as-upload-audio.md)(): [UploadAudioAction](../-upload-audio-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadAudioAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadAudioAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-audio-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadAudioAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadAudioAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-audio-action.md)(): [UploadAudioAction](../-upload-audio-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asUploadDocument/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadDocument](../as-upload-document.md)| <a name="dev.inmo.tgbotapi.types.actions//asUploadDocument/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadDocument](../as-upload-document.md)(): [UploadDocumentAction](../-upload-document-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadDocumentAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadDocumentAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-document-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadDocumentAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadDocumentAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-document-action.md)(): [UploadDocumentAction](../-upload-document-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asUploadPhoto/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadPhoto](../as-upload-photo.md)| <a name="dev.inmo.tgbotapi.types.actions//asUploadPhoto/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadPhoto](../as-upload-photo.md)(): [UploadPhotoAction](../-upload-photo-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadPhotoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadPhotoAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-photo-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadPhotoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadPhotoAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-photo-action.md)(): [UploadPhotoAction](../-upload-photo-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asUploadVideo/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadVideo](../as-upload-video.md)| <a name="dev.inmo.tgbotapi.types.actions//asUploadVideo/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadVideo](../as-upload-video.md)(): [UploadVideoAction](../-upload-video-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadVideoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadVideoAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-video-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadVideoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadVideoAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-video-action.md)(): [UploadVideoAction](../-upload-video-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.types.actions//asUploadVideoNote/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadVideoNote](../as-upload-video-note.md)| <a name="dev.inmo.tgbotapi.types.actions//asUploadVideoNote/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadVideoNote](../as-upload-video-note.md)(): [UploadVideoNoteAction](../-upload-video-note-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadVideoNoteAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[asUploadVideoNoteAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-video-note-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//asUploadVideoNoteAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[asUploadVideoNoteAction](../../dev.inmo.tgbotapi.extensions.utils/as-upload-video-note-action.md)(): [UploadVideoNoteAction](../-upload-video-note-action/index.md)? <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireFindLocationAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireFindLocationAction](../../dev.inmo.tgbotapi.extensions.utils/require-find-location-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireFindLocationAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireFindLocationAction](../../dev.inmo.tgbotapi.extensions.utils/require-find-location-action.md)(): [FindLocationAction](../-find-location-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireRecordAudioAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireRecordAudioAction](../../dev.inmo.tgbotapi.extensions.utils/require-record-audio-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireRecordAudioAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireRecordAudioAction](../../dev.inmo.tgbotapi.extensions.utils/require-record-audio-action.md)(): [RecordAudioAction](../-record-audio-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireRecordVideoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireRecordVideoAction](../../dev.inmo.tgbotapi.extensions.utils/require-record-video-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireRecordVideoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireRecordVideoAction](../../dev.inmo.tgbotapi.extensions.utils/require-record-video-action.md)(): [RecordVideoAction](../-record-video-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireRecordVideoNoteAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireRecordVideoNoteAction](../../dev.inmo.tgbotapi.extensions.utils/require-record-video-note-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireRecordVideoNoteAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireRecordVideoNoteAction](../../dev.inmo.tgbotapi.extensions.utils/require-record-video-note-action.md)(): [RecordVideoNoteAction](../-record-video-note-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireTypingAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireTypingAction](../../dev.inmo.tgbotapi.extensions.utils/require-typing-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireTypingAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireTypingAction](../../dev.inmo.tgbotapi.extensions.utils/require-typing-action.md)(): [TypingAction](../-typing-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadAudioAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireUploadAudioAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-audio-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadAudioAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireUploadAudioAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-audio-action.md)(): [UploadAudioAction](../-upload-audio-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadDocumentAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireUploadDocumentAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-document-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadDocumentAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireUploadDocumentAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-document-action.md)(): [UploadDocumentAction](../-upload-document-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadPhotoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireUploadPhotoAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-photo-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadPhotoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireUploadPhotoAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-photo-action.md)(): [UploadPhotoAction](../-upload-photo-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadVideoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireUploadVideoAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-video-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadVideoAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireUploadVideoAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-video-action.md)(): [UploadVideoAction](../-upload-video-action/index.md) <br><br><br>|
|
||
|
| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadVideoNoteAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[requireUploadVideoNoteAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-video-note-action.md)| <a name="dev.inmo.tgbotapi.extensions.utils//requireUploadVideoNoteAction/dev.inmo.tgbotapi.types.actions.BotAction#/PointingToDeclaration/"></a>[common] <br>Content <br>inline fun [BotAction](index.md).[requireUploadVideoNoteAction](../../dev.inmo.tgbotapi.extensions.utils/require-upload-video-note-action.md)(): [UploadVideoNoteAction](../-upload-video-note-action/index.md) <br><br><br>|
|
||
|
|