SendAction

@Serializable
data class SendAction(val chatId: ChatIdentifier, val action: BotAction, val threadId: MessageThreadId? = chatId.threadId, val businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId) : SendChatMessageRequest<Boolean> , OptionallyMessageThreadRequest, OptionallyBusinessConnectionRequest

Send notification to user which will be shown for 5 seconds or while user have no messages from bot

Constructors

Link copied to clipboard
constructor(chatId: ChatIdentifier, action: BotAction, threadId: MessageThreadId? = chatId.threadId, businessConnectionId: BusinessConnectionId? = chatId.businessConnectionId)

Properties

Link copied to clipboard
@SerialName(value = "action")
val action: BotAction
Link copied to clipboard
@SerialName(value = "business_connection_id")
open override val businessConnectionId: BusinessConnectionId?
Link copied to clipboard
@SerialName(value = "chat_id")
open override val chatId: ChatIdentifier
Link copied to clipboard
open override val requestSerializer: SerializationStrategy<*>
Link copied to clipboard
open override val resultDeserializer: DeserializationStrategy<Boolean>
Link copied to clipboard
@SerialName(value = "message_thread_id")
open override val threadId: MessageThreadId?

Functions

Link copied to clipboard
open override fun method(): String