pinMessage

fun pinMessage(message: Message, expirationDate: Date? = null): Call<Message>

Pins the message.

Return

Executable async Call responsible for pinning the message.

Parameters

message

The message object containing the ID of the message to be pinned.

expirationDate

The exact expiration date.


fun pinMessage(message: Message, timeout: Int): Call<Message>

Pins the message.

Return

Executable async Call responsible for pinning the message.

Parameters

message

The message object containing the ID of the message to be pinned.

timeout

The expiration timeout in seconds.