Messages class

Методы для работы с личными сообщениями.

Constructors

Messages.new(Api _api)
Конструктор.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addChatUser<T>(Map<String, Object> params) Future<ApiResponse<T>>
Adds a new user to a chat.
allowMessagesFromGroup<T>(Map<String, Object> params) Future<ApiResponse<T>>
Allows sending messages from community to the current user.
createChat<T>(Map<String, Object> params) Future<ApiResponse<T>>
Creates a chat with several participants.
delete<T>(Map<String, Object> params) Future<ApiResponse<T>>
Deletes one or more messages.
deleteChatPhoto<T>(Map<String, Object> params) Future<ApiResponse<T>>
Deletes a chat's cover picture.
deleteConversation<T>(Map<String, Object> params) Future<ApiResponse<T>>
Deletes all private messages in a conversation.
deleteReaction<T>(Map<String, Object> params) Future<ApiResponse<T>>
Удаление ранее поставленной реакции.
denyMessagesFromGroup<T>(Map<String, Object> params) Future<ApiResponse<T>>
Denies sending message from community to the current user.
edit<T>(Map<String, Object> params) Future<ApiResponse<T>>
Edits the message.
editChat<T>(Map<String, Object> params) Future<ApiResponse<T>>
Edits the title of a chat.
forceCallFinish<T>(Map<String, Object> params) Future<ApiResponse<T>>
Метод используется для принудительного завершения звонка.
get<T>(Map<String, Object> params) Future<ApiResponse<T>>
Возвращает список входящих личных сообщений текущего пользователя или сообщества.
getByConversationMessageId<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns messages by their IDs within the conversation.
getById<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns messages by their IDs.
getChat<T>(Map<String, Object> params) Future<ApiResponse<T>>
Возвращает информацию о беседе.
getChatPreview<T>(Map<String, Object> params) Future<ApiResponse<T>>
Получает данные для превью чата с приглашением по ссылке.
getChatUsers<T>(Map<String, Object> params) Future<ApiResponse<T>>
Позволяет получить список пользователей мультидиалога по его id.
getConversationMembers<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns a list of IDs of users participating in a chat.
getConversations<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns a list of the current user's conversations.
getConversationsById<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns conversations by their IDs
getDialogs<T>(Map<String, Object> params) Future<ApiResponse<T>>
Возвращает список диалогов текущего пользователя или сообщества. Актуальный метод: getConversations.
getHistory<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns message history for the specified user or group chat.
getHistoryAttachments<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns media files from the dialog or group chat.
getImportantMessages<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns a list of user's important messages.
getIntentUsers<T>(Map<String, Object> params) Future<ApiResponse<T>>
Метод отдает пользователей, которые подписались на определенные интенты.
Получает ссылку для приглашения пользователя в беседу.
getLastActivity<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns a user's current status and date of last activity.
getLongPollHistory<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns updates in user's private messages.
getLongPollServer<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns data required for connection to a Long Poll server.
getMessagesReactions<T>(Map<String, Object> params) Future<ApiResponse<T>>
Получить актуальные счётчики реакций на сообщения
getReactedPeers<T>(Map<String, Object> params) Future<ApiResponse<T>>
Получить список пользователей и сообществ, которые поставили реакцию на сообщение
getReactionsAssets<T>(Map<String, Object> params) Future<ApiResponse<T>>
Получение ассетов реакций
isMessagesFromGroupAllowed<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns information whether sending messages from the community to current user is allowed.
Позволяет присоединиться к чату по ссылке-приглашению.
markAsAnsweredConversation<T>(Map<String, Object> params) Future<ApiResponse<T>>
Marks and unmarks conversations as unanswered.
markAsImportant<T>(Map<String, Object> params) Future<ApiResponse<T>>
Marks and unmarks messages as important (starred).
markAsImportantConversation<T>(Map<String, Object> params) Future<ApiResponse<T>>
Marks and unmarks conversations as important.
markAsRead<T>(Map<String, Object> params) Future<ApiResponse<T>>
Marks messages as read.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pin<T>(Map<String, Object> params) Future<ApiResponse<T>>
Pin a message.
removeChatUser<T>(Map<String, Object> params) Future<ApiResponse<T>>
Allows the current user to leave a chat or, if the current user started the chat, allows the user to remove another user from the chat.
restore<T>(Map<String, Object> params) Future<ApiResponse<T>>
Restores a deleted message.
Returns a list of the current user's private messages that match search criteria.
searchConversations<T>(Map<String, Object> params) Future<ApiResponse<T>>
Returns a list of the current user's conversations that match search criteria.
searchDialogs<T>(Map<String, Object> params) Future<ApiResponse<T>>
Возвращает список найденных диалогов текущего пользователя по введенной строке поиска.
send<T>(Map<String, Object> params) Future<ApiResponse<T>>
Sends a message.
sendMessageEventAnswer<T>(Map<String, Object> params) Future<ApiResponse<T>>
Отправляет событие с действием, которое произойдет при нажатии на callback-кнопку.
sendReaction<T>(Map<String, Object> params) Future<ApiResponse<T>>
Метод установки реакции на сообщение
setActivity<T>(Map<String, Object> params) Future<ApiResponse<T>>
Changes the status of a user as typing in a conversation.
setChatPhoto<T>(Map<String, Object> params) Future<ApiResponse<T>>
Sets a previously-uploaded picture as the cover picture of a chat.
startCall<T>(Map<String, Object> params) Future<ApiResponse<T>>
Старт нового звонка от имени пользователя или от сообщества
toString() String
A string representation of this object.
inherited
unpin<T>(Map<String, Object> params) Future<ApiResponse<T>>
Открепляет сообщение.

Operators

operator ==(Object other) bool
The equality operator.
inherited