Messages extension

Set of functionality related to message

on

Methods

addPollOption({required int pollId, required String optionText, OnPollCallback? onCompleted}) Future<Poll>
Add Poll Option
cancelScheduledMessage(int scheduledMessageId, {OnScheduledMessageCancelCallback? callback}) Future<void>
Cancels scheduled message
cancelUploadingFileMessage(String requestId) bool
closePoll({required int pollId, OnPollCallback? onCompleted}) Future<Poll>
Close Poll
copyMessage(BaseMessage message, BaseChannel targetChannel, {OnMessageCallback? onCompleted}) BaseMessage
Copies message to targetChannel.
createScheduledFileMessage(ScheduledFileMessageParams fileMessageParams, {OnScheduledMessageCallback<ScheduledFileMessage>? callback}) Future<ScheduledFileMessage>
Creates scheduled file message
createScheduledUserMessage(ScheduledUserMessageParams userMessageParams, {OnScheduledMessageCallback<ScheduledUserMessage>? callback}) Future<ScheduledUserMessage>
Creates scheduled user message
deleteMessage(int messageId) Future<void>
Deletes message with given messageId.
deletePoll({required int pollId, OnCompleteCallback? onCompleted}) Future<void>
Delete Poll
deletePollOption({required int pollId, required int pollOptionId, OnCompleteCallback? onCompleted}) Future<void>
Delete Poll Option
getMessageChangeLogs({int? timestamp, String? token, required MessageChangeLogParams params}) Future<MessageChangeLogsResponse>
Retreieve massage change logs with timestamp or token and params.
getMessagesById(int messageId, MessageListParams params) Future<List<BaseMessage>>
Retrieves a list of BaseMessage with given messageId and params.
getMessagesByTimestamp(int timestamp, MessageListParams params) Future<List<BaseMessage>>
Retrieves a list of BaseMessage with given timestamp and params.
resendFileMessage(FileMessage message, {required FileMessageParams params, OnFileMessageCallback? onCompleted, OnUploadProgressCallback? progress}) FileMessage
Resends failed FileMessage on this channel with message.
resendUserMessage(UserMessage message, {OnUserMessageCallback? onCompleted}) UserMessage
Resends failed UserMessage on this channel with message.
sendFileMessage(FileMessageParams params, {OnFileMessageCallback? onCompleted, OnUploadProgressCallback? progress}) FileMessage
Sends FileMessage on this channel with params.
sendScheduledMessageNow({required int scheduledMessageId, OnScheduledMessageSendNowCallback? callback}) Future<void>
Sends Scheduled Message Now
sendUserMessage(UserMessageParams params, {OnUserMessageCallback? onCompleted}) UserMessage
Sends UserMessage on this channel with params.
sendUserMessageWithText(String text, {OnUserMessageCallback? onCompleted}) UserMessage
Sends UserMessage on this channel with text.
translateUserMessage(UserMessage message, List<String> targetLanguages) Future<UserMessage>
Translates a message with given list of targetLanguages.
updateFileMessage(int messageId, FileMessageParams params) Future<FileMessage>
Updates FileMessage on this channel with messageId and params.
updatePoll({required int pollId, required PollUpdateParams params, OnPollCallback? onCompleted}) Future<Poll>
Updates Poll
updatePollOption({required int pollId, required int pollOptionId, required String optionText, OnPollCallback? onCompleted}) Future<Poll>
Update Poll Option
updateScheduledFileMessage({required ScheduledFileMessageUpdateParams params, required int scheduledMessageid, OnScheduledMessageCallback<ScheduledFileMessage>? callback}) Future<ScheduledFileMessage>
Update scheduled file message
updateScheduledUserMessage({required ScheduledUserMessageUpdateParams params, required int scheduledMessageid, OnScheduledMessageCallback<ScheduledUserMessage>? callback}) Future<ScheduledUserMessage>
Update scheduled user message
updateUserMessage(int messageId, UserMessageParams params) Future<UserMessage>
Updates UserMessage on this channel with messageId and params.
votePoll({required int pollId, required List<int> pollOptionIds, OnPollVoteEventCallback? onCompleted}) Future<PollVoteEvent>
Cast/ Cancel Poll Vote