Package-level declarations

Functions

Link copied to clipboard
suspend fun BaseMessage.awaitDeleteFeedback()

Deletes the feedback for the message. The feedback can be deleted only when the FeedbackStatus is FeedbackStatus.SUBMITTED.

Link copied to clipboard
suspend fun BaseMessage.Companion.awaitGetMessage(params: MessageRetrievalParams): BaseMessage

Retrieves a BaseMessage object with a specified message ID.

Link copied to clipboard
suspend fun BaseMessage.Companion.awaitGetScheduledMessage(params: ScheduledMessageRetrievalParams): BaseMessage

Retrieves a BaseMessage object with a specified scheduled message ID.

Link copied to clipboard
suspend fun BaseMessage.awaitGetThreadedMessagesByTimestamp(ts: Long, params: ThreadMessageListParams): ThreadedMessagesResult

Retrieves the threaded replies of the current message depending on the timestamp. If the current message doesn’t have replies, the result is an empty list. The result is passed to handler as list.

Link copied to clipboard
suspend fun BaseMessage.awaitSubmitFeedback(feedbackRating: FeedbackRating, feedbackComment: String? = null): Feedback

Submits the feedback for the message. The feedback can be submitted only when the FeedbackStatus is FeedbackStatus.NO_FEEDBACK.

Link copied to clipboard
suspend fun BaseMessage.awaitSubmitForm(form: Form)

Submits the form message received from the bot.

Link copied to clipboard
suspend fun BaseMessage.awaitSubmitMessageForm()

Submits the form message received from the bot. The answers of the message form should be set to the MessageFormItem.draftValues before calling this method.

Link copied to clipboard
suspend fun BaseMessage.awaitUpdateFeedback(feedbackRating: FeedbackRating, feedbackComment: String? = null): Feedback

Updates the feedback for the message. The feedback can be updated only when the FeedbackStatus is FeedbackStatus.SUBMITTED.

Link copied to clipboard
suspend fun BaseMessage.deleteFeedback()

Deletes the feedback for the message. The feedback can be deleted only when the FeedbackStatus is FeedbackStatus.SUBMITTED.

Link copied to clipboard
suspend fun BaseMessage.Companion.getMessage(params: MessageRetrievalParams): BaseMessage
fun BaseMessage.Companion.getMessage(params: MessageRetrievalParams, handler: ResultHandler<BaseMessage>?)

Retrieves a BaseMessage object with a specified message ID.

Link copied to clipboard
suspend fun BaseMessage.Companion.getScheduledMessage(params: ScheduledMessageRetrievalParams): BaseMessage
fun BaseMessage.Companion.getScheduledMessage(params: ScheduledMessageRetrievalParams, handler: ResultHandler<BaseMessage>?)

Retrieves a BaseMessage object with a specified scheduled message ID.

Link copied to clipboard
suspend fun BaseMessage.getThreadedMessagesByTimestamp(ts: Long, params: ThreadMessageListParams): ThreadedMessagesResult
fun BaseMessage.getThreadedMessagesByTimestamp(ts: Long, params: ThreadMessageListParams, handler: ResultHandler<ThreadedMessagesResult>?)

Retrieves the threaded replies of the current message depending on the timestamp. If the current message doesn’t have replies, the result is an empty list. The result is passed to handler as list.

Link copied to clipboard
suspend fun BaseMessage.submitFeedback(feedbackRating: FeedbackRating, feedbackComment: String? = null): Feedback
fun BaseMessage.submitFeedback(feedbackRating: FeedbackRating, feedbackComment: String? = null, handler: ResultHandler<Feedback>?)

Submits the feedback for the message. The feedback can be submitted only when the FeedbackStatus is FeedbackStatus.NO_FEEDBACK.

Link copied to clipboard
suspend fun BaseMessage.submitForm(form: Form)

Submits the form message received from the bot.

Link copied to clipboard
suspend fun BaseMessage.updateFeedback(feedbackRating: FeedbackRating, feedbackComment: String? = null): Feedback
fun BaseMessage.updateFeedback(feedbackRating: FeedbackRating, feedbackComment: String? = null, handler: ResultHandler<Feedback>?)

Updates the feedback for the message. The feedback can be updated only when the FeedbackStatus is FeedbackStatus.SUBMITTED.