SendChatActionRequest

data class SendChatActionRequest(chatId: Int, action: String)

Request body for sendChatAction

Parameters

chatId

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

action

Type of action to broadcast. Choose one, depending on what the user is about to receive: typing for text messages, upload_photo for photos, record_video or upload_video for videos, record_voice or upload_voice for voice notes, upload_document for general files, find_location for location data, record_video_note or upload_video_note for video notes.

Constructors

SendChatActionRequest
Link copied to clipboard
common
fun SendChatActionRequest(chatId: Int, action: String)
Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Functions

component1
Link copied to clipboard
common
operator fun component1(): Int
component2
Link copied to clipboard
common
operator fun component2(): String
copy
Link copied to clipboard
common
fun copy(chatId: Int, action: String): SendChatActionRequest
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

action
Link copied to clipboard
common
val action: String
Type of action to broadcast.
chatId
Link copied to clipboard
common
val chatId: Int
Unique identifier for the target chat or username of the target channel (in the format @channelusername)