CN113691438B - Instant message processing method, device, equipment and storage medium - Google Patents

Instant message processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113691438B
CN113691438B CN202010427802.6A CN202010427802A CN113691438B CN 113691438 B CN113691438 B CN 113691438B CN 202010427802 A CN202010427802 A CN 202010427802A CN 113691438 B CN113691438 B CN 113691438B
Authority
CN
China
Prior art keywords
message
resource
target
client
instant
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010427802.6A
Other languages
Chinese (zh)
Other versions
CN113691438A (en
Inventor
吕伟阳
唐锐
李斌
文孝木
潘唐磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010427802.6A priority Critical patent/CN113691438B/en
Publication of CN113691438A publication Critical patent/CN113691438A/en
Application granted granted Critical
Publication of CN113691438B publication Critical patent/CN113691438B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/18Commands or executable codes

Abstract

The embodiment of the application discloses a processing method, a processing device, processing equipment and a computer readable storage medium of instant messages. The method comprises the following steps: determining a storage identifier of a selected target resource indicated by a resource selection command in a resource memory according to the resource selection command triggered in the message sending client; generating an instant message according to the storage identifier corresponding to the target resource; and sending the instant message to a target message receiving client side so that the target message receiving client side takes a storage identifier contained in the instant message as an index, and acquires a target resource corresponding to the storage identifier from the resource memory. The technical scheme of the embodiment of the application can improve the instantaneity of transmitting the instant message in the instant messaging system.

Description

Instant message processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of instant messaging technologies, and in particular, to a method, an apparatus, a device, and a computer readable storage medium for processing an instant message.
Background
With the rapid development of internet application technology, instant messaging (Instant Messaging, abbreviated as IM) is currently becoming the most popular communication mode, and various instant messaging software is also layered endlessly, for example, some common network chat tools and network conference tools are all formed based on instant messaging technology.
The biggest characteristic of instant messaging is that the real-time performance of message transmission, so how to further promote the real-time performance of message transmission is a technical problem that those skilled in the art need to continuously study and solve.
Disclosure of Invention
In order to further improve the real-time performance of message transmission in instant messaging, embodiments of the present application provide a method, an apparatus, a device, and a computer readable storage medium for processing instant messages, respectively.
The technical scheme adopted by the application is as follows:
a method of processing instant messages, comprising: determining a storage identifier of a selected target resource indicated by a resource selection command in a resource memory according to the resource selection command triggered in the message sending client; generating an instant message according to the storage identifier corresponding to the target resource; and sending the instant message to a target message receiving client side so that the target message receiving client side takes a storage identifier contained in the instant message as an index, and acquires a target resource corresponding to the storage identifier from the resource memory.
Another method for processing instant messages comprises the following steps: receiving an instant message sent by a message sending client, wherein the instant message is obtained by determining a storage identifier of a selected target resource in a resource memory according to a resource selection command triggered in the message sending client and packaging the storage identifier corresponding to the target resource; extracting the storage identifier contained in the instant message; and taking the storage identifier as an index, and acquiring a target resource corresponding to the storage identifier from the resource memory.
An instant message processing apparatus, comprising: the device comprises an identification acquisition module, a resource storage module and a resource storage module, wherein the identification acquisition module is used for determining the storage identification of the selected target resource indicated by a resource selection command in a resource storage according to the resource selection command triggered in a message sending client; the message generation module is used for generating instant messages according to the storage identifiers corresponding to the target resources; and the message sending module is used for sending the instant message to a target message receiving client side so that the target message receiving client side takes a storage identifier contained in the instant message as an index and acquires a target resource corresponding to the storage identifier from the resource memory.
Another instant message processing apparatus, comprising: the message receiving module is used for receiving the instant message sent by the message sending client, and the instant message is generated according to the storage identification of the selected target resource in the resource memory and the storage identification corresponding to the target resource according to the resource selection command triggered in the message sending client; the identification extraction module is used for extracting the storage identification contained in the instant message; and the resource acquisition module is used for taking the storage identifier as an index and acquiring a target resource corresponding to the storage identifier from the resource memory.
An instant message processing apparatus comprising a processor and a memory having stored thereon computer readable instructions which when executed by the processor implement the instant message processing method as described above.
A computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the method of processing an instant message as described above.
In the above technical solution, on the one hand, since the instant message only contains the storage identifier of the target resource in the resource memory, even if the instant message contains a large number of storage identifiers corresponding to the target resource, the data size of the instant message is small, so that the instant message can be quickly transmitted to the target message receiving client, and the real-time performance of message transmission is improved. On the other hand, after the target message client receives the instant message, the corresponding target resource is acquired from the resource memory by taking the storage identifier as an index, so that the target resource is not transmitted through a communication network between the message sending client and the message receiving client, the influence of communication network fluctuation on the instant message transmission can be avoided, and the instantaneity of the instant message transmission is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 is a schematic illustration of one implementation environment to which the present application relates;
FIG. 2 is a schematic illustration of another implementation environment to which the present application relates;
FIG. 3 is a flowchart illustrating a method of processing an instant message, according to an exemplary embodiment;
FIG. 4 is a flow chart of step 110 in one embodiment of the embodiment shown in FIG. 3;
FIG. 5 is an interactive schematic diagram of a messaging interface provided by an exemplary messaging client;
FIG. 6 is a flow chart of step 110 in another embodiment of the embodiment shown in FIG. 3;
FIG. 7 is a flow chart of step 110 in another embodiment of the embodiment shown in FIG. 3;
FIG. 8 is a flow chart of step 150 in one embodiment of the embodiment shown in FIG. 3;
fig. 9 is a flowchart illustrating a method of processing an instant message according to another exemplary embodiment;
FIG. 10 is a schematic diagram of a message viewing interface provided by an exemplary messaging client;
FIG. 11 is a flowchart illustrating another method of instant message processing according to an exemplary embodiment;
FIG. 12 is an interactive schematic diagram of a message receiving interface included in an exemplary target message receiving client;
FIG. 13 is a communication flow diagram involved in an exemplary application scenario;
FIG. 14 is a block diagram of an instant message processing device shown in accordance with an exemplary embodiment;
fig. 15 is a block diagram of an instant message processing apparatus according to another exemplary embodiment;
fig. 16 is a schematic diagram illustrating a structure of an instant message processing apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
Referring to fig. 1 and 2, fig. 1 and 2 are schematic diagrams of an implementation environment according to the present application. The implementation environments shown in fig. 1 and fig. 2 are all instant messaging systems, but correspond to different system architectures specifically, and are applicable to different application scenarios.
The instant messaging system shown in fig. 1 is suitable for instant messaging between the same applications, that is, the application to which the messaging client 100 shown in fig. 1 belongs and the application to which the messaging client 200 shown in fig. 1 belongs are the same application, and the server 300 shown in fig. 1 is a server corresponding to the application. For example, if the messaging client 100 and the messaging client 200 are both "WeChat" applications running in the respective terminal devices, the server 300 is a WeChat server.
In the instant messaging system shown in fig. 1, a messaging client 100 and a messaging client 200 access a network, respectively, and communicate with a server 300 through the network. Specifically, the messaging client 100 obtains the storage identifiers of the target resources indicated and selected by the resource selection command according to the resource selection command triggered in the messaging interface, then generates an instant message according to the storage identifiers of the target resources, sends the instant message to the server 300 through the network, and the server 300 forwards the instant message to the messaging client 200. After receiving the instant message, the message receiving client 200 obtains the target resource with the storage identifier in the instant message as an index.
Based on this, the message receiving client 200 can receive the instant message transmitted by the message transmitting client 100 in real time and acquire a specific target resource, thereby realizing instant communication between the message transmitting client 100 and the message receiving client 200.
The instant messaging system shown in fig. 2 is suitable for instant messaging between different applications, that is, the application to which the messaging client 100 shown in fig. 2 belongs and the application to which the messaging client 200 shown in fig. 2 belongs are different applications, and the servers 300 shown in fig. 2 are servers corresponding to the different applications. For example, if messaging client 100 is an "enterprise WeChat" application, server 300 in communication with messaging client 100 is an enterprise WeChat server; the message receiving client 200 is a "WeChat" application, and the server 300 in communication with the message receiving client 200 is a WeChat server.
In the instant messaging system shown in fig. 2, the messaging client 100 and the messaging client 200 are connected to respective corresponding servers 300, respectively, and communication is performed between the different servers 200 through a network. Specifically, after the messaging client 100 generates an instant message according to the storage identifier of the target resource, the instant message is sent to the server 300 connected with the messaging client 100, and then the instant message is forwarded to the server 300 connected with the messaging client 200 via the network, and then the instant message is sent to the messaging client 200 via the server 300, and after the messaging client 200 receives the instant message, the storage identifier in the instant message is used as an index to obtain the target resource, thereby realizing instant communication between the messaging client 100 and the messaging client 200.
It should be understood that, the messaging client 100 and the messaging client 200 shown in fig. 1 and fig. 2 are both application programs running in a terminal device, and the terminal device may be any electronic device capable of running the messaging client 100 or the messaging client 200, such as a smart phone, a tablet, a notebook, or a computer, which is not limited herein.
The server 300 shown in fig. 1 and fig. 2 may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (ContentDelivery Network, content distribution networks), and basic cloud computing services such as big data and artificial intelligence platforms. Also, the connection between the terminal device and the server 300 and between different servers 300 may be through a wired or wireless network, and is not limited in this regard.
Fig. 3 is a flow chart illustrating a method of processing an instant message according to an exemplary embodiment. It should be noted that the method shown in fig. 3 may be applied to the instant messaging system shown in fig. 1 and fig. 2, and is specifically executed by the messaging client 100 in the instant messaging system shown in fig. 1 and fig. 2.
It should also be noted that, the instant message is understood to be a carrier for implementing real-time content transmission in the instant messaging system, that is, the content specifically transmitted in the instant messaging system needs to be transmitted in the form of an instant message.
In particular, instant messaging is a form of message encapsulation in which not only specific data for real-time transmission is encapsulated, but also a transmission protocol for enabling transmission of real-time messages, based on which instant messages can be transmitted in an instant messaging system.
As shown in fig. 3, in an exemplary embodiment, the instant message processing method at least includes the following steps:
step 110, according to the resource selection command triggered in the message sending client, determining the storage identifier of the selected target resource indicated by the resource selection command in the resource storage.
As described above, the instant message processing method disclosed in the present embodiment is applicable to an instant messaging system, for example, the instant messaging system shown in fig. 1 and fig. 2, where the message sending client refers to a party sending an instant message in the instant messaging system, and the target message receiving client refers to a party receiving an instant message in the instant messaging system.
The target resource is specific data which the message sending client hopes the target message receiving client to receive, and is specifically determined according to a resource selection command triggered in the message sending client. For example, a resource selection entry is set in a message sending interface provided by a message sending client, the resource to be sent can be selected by triggering the resource selection entry, a resource selection command can be generated based on a specific triggered selection operation, and the selected resource is called a target resource. The triggering modes of the resource selection entrance and the resource selection to be target can be modes of single click, double click, long press and the like.
The resources available for selection in the messaging client may include at least one of text, file, picture, audio, video, web page, etc., and the number of resources available for selection in the messaging client may be arbitrary, which is not limited in this embodiment. Correspondingly, the specific type of the target resource indicated to be selected by the resource selection command triggered in the message sending client is at least one, and the number of the target resources is at least one.
It is clear that, according to the resource selection command triggered in the messaging client, the present embodiment will be able to determine at least one type of target resource, and the number of each type of target resource determined is at least one.
The resource memory is a storage medium for storing resources, for example, when the resources are stored locally in a terminal device operated by the messaging client, the terminal device is used as the resource memory, for example, specifically a memory configured in the terminal device; when the resource is stored in the server corresponding to the messaging client, the server serves as a resource store.
Different types of resources may be stored in the same resource memory. For example, the picture resources and the video resources may be stored in a dedicated image server, so that the picture resources and the video resources are managed by the image server, for example, information such as storage validity period, data size, format, and the like of the picture resources and the video resources is managed. For another example, the server corresponding to the messaging client stores different types of resources acquired by the messaging client through operations such as collection and downloading.
Alternatively, different types of resources may be stored in different resource storages, or the same type of resources may be stored in different resource storages, for example, web page resources belonging to different web sites are usually stored in different web servers, and the specific storage form of the resources is not limited in this embodiment.
The resource memory is allocated with a storage identifier for the stored resources so as to distinguish different resources based on the storage identifier, and the searching and the obtaining of the resources can be rapidly carried out based on the storage identifier. For example, the storage identifier may specifically be a file name, a web page link, or other identifier information corresponding to the resource, which is not limited in this embodiment.
Therefore, according to the resource selection command triggered in the message sending client, the embodiment can determine the resource memory where the selected target resource indicated by the resource selection command is located, and further can determine the storage identification of the target resource in the resource memory.
And 130, generating the instant message according to the storage identification corresponding to the target resource.
As mentioned above, the instant message is a carrier for implementing real-time content transmission in the instant communication system, and is a message encapsulation form, in which not only specific data for real-time transmission but also a transmission protocol for real-time transmission are encapsulated.
Therefore, in order to send the target resource selected by triggering in the message sending client to the target message receiving client, the target resource is generally encapsulated in an instant message, and the message receiving client receives the target resource through transmission of the instant message.
In this embodiment, however, the instant message is specifically encapsulated with a transmission protocol for implementing the transmission of the real-time message, and the storage identifier of the target resource in the resource memory. That is, the specific data transmitted in real time in the instant messaging system is the storage identification of the target resource in the resource memory, and not the target resource. For the message sending client, the process of downloading the target resource from the resource memory where the target resource is located is not needed, so that the flow of instant message sending is saved, and the instantaneity of instant message transmission is improved to a certain extent.
And because the instant message only contains the storage identification of the target resource in the resource memory, but not the specific target resource, the data size of the instant message is small, and the transmission time in the instant communication system is short, so that the instantaneity is higher.
Even if the number of the target resources triggered and selected in the message sending client is large, the instant message contains a storage identifier corresponding to the large number of the target resources, but compared with the direct transmission of the target resources, the data size of the instant message is still small, so that the instant message can be quickly transmitted to the target message receiving client, and the real-time performance of the instant message transmission is improved.
And step 150, the instant message is sent to the target message receiving client side, so that the target message receiving client side takes the storage identifier contained in the instant message as an index, and the target resource corresponding to the storage identifier is obtained from the resource memory.
It should be noted that, the number of the target message receiving clients may be one or more as a party receiving the instant message in the instant messaging system, and when the number of the target message receiving clients is more, the message sending clients implement multiparty sending of the instant message.
The target message receiving clients may be default in the message sending clients, and after the instant message is generated, the instant message is sent to each target message receiving client. For example, a plurality of message receiving clients are pre-associated in the message sending clients, and after the instant message is generated, the instant message is sent to each associated message receiving client. The association between the messaging client and the messaging client is understood to be a mapping of a communication link between the messaging client and the messaging client, based on which information interaction between the messaging client and the messaging client is enabled.
Or in other embodiments, the target message receiver needs to be determined according to a receiver selection command triggered in the messaging client. For example, after the message sending client acquires the message receiving client list associated with the message sending client, at least one message receiving client is selected from the message receiving client list as a target message receiving client for receiving the instant message according to a receiving end selection command triggered in the message sending client. The message receiving client list is a set formed by a plurality of message receiving clients, and can specifically exist in the form of a tree structure on the message sending client. The message receiving client list can also be displayed in a message sending interface of the message sending client, when the selection operation is triggered in the display area where the message receiving client list is located, a corresponding receiving end selection command can be obtained, and then the message receiving client indicated to be selected by the receiving end selection command is selected as a target message receiving client.
Because the instant message carries the storage identifier corresponding to the target resource, after the target message receiving client receives the instant message, the storage identifier contained in the instant message is used as an index, and the target resource corresponding to the storage identifier is acquired from the resource memory.
Therefore, in this embodiment, the target resource is not transmitted through the instant messaging network between the messaging client and the messaging client, so that the influence of the instant messaging network fluctuation on the instant messaging transmission can be avoided. In addition, as the storage identifier corresponding to the target resource is the unique identifier allocated by the resource memory for accurately distinguishing each resource, the target message receiving client can quickly and accurately acquire the target resource in the resource memory according to the storage identifier, so that the target resource can be acquired in a short time, and the instantaneity of instant message transmission is further improved.
Therefore, based on the above description, the method provided by the embodiment can improve the real-time performance of the instant message transmission from multiple aspects, and has very obvious real-time performance improving effect.
FIG. 4 is a flow chart of step 110 in one embodiment of the embodiment shown in FIG. 3. As shown in fig. 4, in an exemplary embodiment, steps 110 to specifically include the steps of:
step 111, monitoring a resource selection command for different types of resources triggered in a message sending client;
step 113, according to the resource selection command, determining the selected different types of target resources from the resource memory, and obtaining the storage identifiers of the different types of target resources.
In this embodiment, the resource selection command triggered in the message sending client aims at selecting different types of resources, so as to determine different types of target resources indicated by the resource selection command, package storage identifiers of the different types of target resources into an instant message, and then send the instant message to the target message receiving client, so that the target message receiving client obtains the target resources corresponding to the storage identifiers from the corresponding resource memories according to each storage identifier contained in the instant message.
That is, the messaging client is capable of simultaneously sending resource representations of different types of target resources in a package to the target messaging client, thereby enabling the target messaging client to obtain these different types of target resources accordingly.
FIG. 5 is an interactive schematic diagram of a messaging interface provided by an exemplary messaging client. As shown in fig. 5 (a), an entry for triggering and selecting a target message receiving terminal is displayed in the message sending interface, for example, by clicking a message sending selection button, a list of message receiving clients associated with the message sending client can be obtained, and by triggering a selection operation in the list of message receiving clients, a selected target message receiving client can be obtained.
As also shown in fig. 5 (a), the messaging interface also displays an entry for triggering a resource selection command, and when the "+" button in the messaging interface is clicked, the resource selection window shown in fig. 5 (b) is popped up in the messaging interface. And if a shooting button in the resource selection popup window is clicked, a resource selection command corresponding to the picture resource or the video resource can be triggered, and then the picture or the video is shot in real time through a camera of the terminal equipment where the message sending client is located, so that a resource memory corresponding to the selected target resource indicated by the resource selection command is the terminal equipment, and the storage identification of the target resource can be obtained from the terminal equipment.
If the "select from album" button in the resource selection popup window is clicked, the resource selection command corresponding to the picture resource or the video resource is still triggered, and the corresponding resource memory may be the terminal device itself or a storage server connected to the terminal device, such as the image server described in the foregoing embodiment. Clicking the "add file" button and the "add web page" button in the resource selection popup window are the same as the process of triggering the resource selection command, and the process of acquiring the storage identifier of the corresponding target resource is the same as the foregoing process, which is not repeated here.
It should be noted that when the "add file" button in the resource selection pop-up window is clicked, the triggered resource selection command may be an instruction to select a file resource from the messaging client, for example, a file collected in the messaging client, or a file stored in a file server that provides a remote storage service for the messaging client. In other embodiments, the resource selection command triggered by clicking the "add file" button in the resource selection window may also be an indication of acquisition from a designated message receiving client.
In addition, after the storage identifiers of the different types of target resources are obtained according to the resource selection commands of the different types of resources, the obtained storage identifiers of the different types of target resources are displayed in the message sending interface. For example, the message sending interface shown in fig. 5 (c) displays the storage identifiers of the three types of target resources of the video, the web page and the picture, which are selected by triggering, and the storage identifiers of the three types of target resources can be packaged and sent to the target message receiving client by triggering the "send" button, so that the target message receiving client can correspondingly acquire the three types of target resources.
In an exemplary embodiment, as shown in fig. 6, when the resource selection command triggered in the messaging client includes a file resource selection command, the process of determining, in step 110, the storage identifier of the selected target resource indicated by the resource selection command in the resource memory according to the resource selection command triggered in the messaging client may include the following steps:
step 210, according to the file resource selection command triggered in the message sending client, sending a file acquisition request to the designated message receiving client indicated by the file resource selection command.
It should be noted that, in this embodiment, the target file resource indicated to be selected by the file resource selection command is derived from a specified message receiving client, and the specified message receiving client may be at least one target message receiving client, or a message receiving client associated with a message sending client and different from the target message receiving client, which is not limited in this embodiment.
By way of example, the target file resources in the specified message receiving client may include historical messages that it receives or transmits, different types of resources that it obtains based on collection operations, resources stored in a remote server connected to the specified message receiving client, and so forth.
And the file resource selection command triggered in the message sending client is used for indicating that the target file resource is acquired from the designated message receiving client, so that a file acquisition request needs to be sent to the designated message receiving client. And based on the association relationship between the specified message receiving client and the message transmitting client, the file acquisition request can be transmitted to the specified message receiving client.
Step 230, receiving a response message returned by the specified message receiving client for the file acquisition request, where the response message contains a storage identifier of the target file resource in the resource memory.
After receiving the file acquisition request, the designated message receiving client responds to the file acquisition request, determines the target file resource from the corresponding resource memory, acquires the storage identifier corresponding to the target file resource, and returns the storage identifier corresponding to the target file resource to the message sending client. And the storage identification corresponding to the target file resource is returned to the message sending client in the form of a response message corresponding to the file acquisition request.
Therefore, the message sending client receives the response message returned by the designated message receiving client for the file acquisition request, and can extract the storage identification of the target file resource in the corresponding resource memory from the response message.
Step 250, extracting the storage identification of the target file resource from the response message.
The information carried by the response message is stored in the message body, so that the storage identification of the target file resource can be extracted from the message body of the response message.
For example, in the message sending interface shown in fig. 5 (c), if the "add file" button is triggered, a selection operation of the specified message receiving client is triggered, and after the selected specified message receiving client is determined, a selection operation of selecting the target file resource contained in the specified message receiving client may be triggered, so as to obtain the storage identifier of the target file resource in the corresponding resource storage.
If the message sending client is an enterprise WeChat application, the message receiving client and the target message receiving client are designated as WeChat applications, and based on the method provided by the embodiment, the enterprise WeChat application can acquire the storage identifiers corresponding to the target file resources to be sent from one or more users of the WeChat application, and then commonly send the acquired storage identifiers corresponding to the target file resources and the storage identifiers corresponding to the selected other target resources to other users of the WeChat application.
Therefore, in the method provided by the embodiment, the message sending client supports to acquire the storage identifier corresponding to the target file resource from the designated message receiving client, and then packages and sends the acquired storage identifier and the storage identifier of other types of target resources to the target message receiving client at the same time, so that the richness of the instant message content is greatly improved.
In the exemplary embodiment shown in fig. 7, the resource selection command triggered in the messaging client includes a web page resource selection command, and the process of determining, in step 110, the storage identifier of the selected target resource indicated by the resource selection command in the resource memory according to the resource selection command triggered in the messaging client may include the following steps:
step 310, determining the selected target webpage indicated by the webpage resource selection command according to the webpage resource selection command triggered in the message sending client.
In this embodiment, the message sending client supports adding a storage identifier corresponding to the web page resource in the instant message sent by the target message receiving client, and the web page indicated to be selected by the web page resource selection command triggered by the message sending client is the target web page.
Illustratively, the web resource selection command triggered in the messaging client is generated in response to triggering the "Add web" button in the messaging interface shown in FIG. 5 (b).
And 330, extracting key information in the target webpage.
The key information in the target webpage refers to key information in content contained in the target webpage, and includes, for example, information such as a webpage title and a picture.
In one embodiment, based on the generation rule of the webpage, the key page tag can be positioned in the webpage file corresponding to the target webpage, and key information in the target webpage can be obtained by reading tag content contained in the key page tag.
The page tag refers to an HTML (HyperText Markup Language tag, hypertext markup language) tag contained in a web page file corresponding to a target web page, and specific key information such as a title, a picture and the like contained in the target web page can be obtained by acquiring the HTML tag corresponding to elements such as the title, the picture and the like contained in the target web page, and reading tag content specifically contained in the HTML tag.
And 350, taking the webpage links corresponding to the target webpage and the key information as the storage identification of the target webpage.
The webpage links corresponding to the target webpage refer to hyperlinks on the target webpage, and the content of the target webpage can be obtained based on the webpage links. By way of example, the web page link may be a URL (UniformResource Locator ) corresponding to the target web page, the URL corresponding to the complete path of the target web page on the network.
In this embodiment, the web page links and key information corresponding to the target web page are used as storage identifiers of the target web page, and then these storage identifiers are packaged into the instant message, so that the target message receiving client side displays the web page links and key information contained in the instant message in its message receiving interface after receiving the instant message. Through the key information displayed in the message receiving interface, a user corresponding to the target message receiving client can judge whether the complete webpage content needs to be read or not based on the key information, and if so, the target webpage can be jumped into by triggering the webpage link.
Therefore, when the message sending client needs to send the webpage resource to the target message receiving client, the method provided by the embodiment can provide great convenience for the user corresponding to the target message receiving client to browse the webpage.
FIG. 8 is a flow chart of step 150 in one embodiment of the embodiment shown in FIG. 3. As shown in fig. 8, in an exemplary embodiment, the process of transmitting an instant message to a target message receiving client in step 150 may include the steps of:
in step 151, an identification field for uniquely identifying the instant message is generated based on the stored identification contained in the instant message.
In this embodiment, in order to avoid sending duplicate instant messages to the target message receiving client, message repetition prevention is also required at the time of instant message sending. The technical scheme is that when the instant message is sent, the instant message carries an identification field for uniquely identifying the instant message, so that the identification fields carried by the same instant message are consistent.
The method for judging whether the instant messages are the same is to judge whether the storage identifiers corresponding to the target resources contained in the instant messages are the same safely, so that the identifier fields are required to be generated according to the storage identifiers contained in the instant messages.
For example, a character may be extracted from the storage identifier corresponding to each target resource contained in the instant message according to a set rule, and the extracted character may be spliced into a character string according to the arrangement order of the corresponding storage identifiers in the instant message, where the character string is unique with respect to the instant message, so that the character string is used as an identifier field of the instant message.
In another embodiment, each target resource contained in the instant message may be further transmitted to a designated interface, and the unique identification field is generated by an application program corresponding to the designated interface, so as to obtain the identification field of the instant message.
It should be noted that, in this embodiment, the generation of a random number by the random number generation method is not limited to the generation of the identification field at the time of the above two types, but may be carried in the instant message, which is not limited in this embodiment. The obtained result field can be used as the identification field of the instant message to be carried in the instant message so as to uniquely identify the instant message as long as the obtained result field has the unique characteristic.
Step 153, the identification field is carried in the instant message.
Step 155, the instant message carrying the identification field is sent to the target message receiving client.
After the instant message carrying the identification field is sent to the target message receiving client, the target message receiving client can pre-analyze the identification field contained in the instant message and judge whether the instant message is repeatedly sent or not according to the field.
Specifically, the target message receiving client acquires the history identification field contained in the history received instant message, compares whether the identification field contained in the current instant message is identical to the history identification field, and if so, indicates that the current instant message is repeatedly transmitted by the message transmitting client, so that the instant message can be refused to be received.
In another embodiment, the messaging client acquires the history identifier field carried when sending the history instant message, compares whether the identifier field carried in the instant message to be sent currently is consistent with the history identifier field, and if so, indicates that the instant message is repeatedly sent, so that the sending of the instant message to the target messaging client is terminated. Based on the method, the repeated instant messages can be intercepted at the message sending client, so that the repeated instant messages do not occupy the instant messaging network channel, and the efficiency of instant message sending in other message sending clients in the instant messaging system is improved.
And considering that repeated transmissions for the same instant message typically occur within a recent historical time period, the historical identification field acquired by the messaging client may be carried by the historical instant message transmitted from a time period prior to the current time.
Or, for the case of continuously sending the same instant message, the message sending client may further obtain a history identification field carried by the instant message sent last time, and if the history identification field is the same as the identification field carried by the instant message to be sent currently, terminate sending the instant message to the target message receiving client.
Therefore, according to the method provided by the embodiment, the situation that the same instant message is repeatedly sent for a plurality of times can be effectively avoided, and for the user corresponding to the target message receiving client, the same instant message is not repeatedly received, so that the user experience is very good.
In a further embodiment, in order to facilitate the messaging client to obtain the delivery of the instant message in the target client, a feedback marking function is also provided in the messaging client. As shown in fig. 9, the feedback marking function is implemented by the steps of:
in step 410, a feedback message returned by the target message receiving client is received, where the feedback message is used to indicate that the instant message has been delivered.
After receiving the instant message, the target message receiving client extracts the storage identifier contained in the instant message, takes the storage identifier as an index, acquires the target resource corresponding to the storage identifier from the corresponding resource memory, and displays the target resource in the message receiving interface.
If the target message receiving client detects that the message reading command is triggered in the message receiving interface, the target message receiving client indicates that the instant message is read by a user, and the instant message is regarded as delivered to the target message receiving client, and a feedback message is returned to the message sending client.
It should be noted that, the message reading command triggered in the message receiving interface may be generated when a specified feedback button set in the message receiving interface is clicked, or generated when a browsing operation of an instant message triggered in the message receiving interface is detected, and the browsing operation of the instant message may be operations such as clicking, up/down sliding, etc., which is not limited in this embodiment.
Step 430, marking the target message receiving client in the message receiving client list that has returned the feedback message.
After receiving the feedback message returned by the target message receiving client, the message sending client can determine the target message receiving client to which the instant message has been delivered, and the user of the message sending client can clearly acquire the delivery condition of the instant message by marking the target message receiving client in the message receiving client list.
And in an embodiment, after the messaging client sends the instant message, whether the feedback message returned by the target messaging client needs to be received or not may be preset. For example, a notification confirmation selection button is provided in the message transmission interface shown in fig. 5 (a), and if the notification confirmation selection button is selected before the instant message is transmitted, the message transmission client receives the feedback message transmitted by the target message reception client after the instant message is transmitted.
The message sending client may also be provided with a message viewing interface, as shown in fig. 10, in which sending information of the instant message, for example, remark information of the target message receiving client, storage identifiers of target resources contained in the instant message, a message delivery viewing button, and the like are displayed. By triggering the message delivery to view button, a view interface is displayed in a skip mode, wherein the identification information of each target message receiving client and the instant message delivery result in each target message receiving client are displayed.
In addition, another embodiment of the present application further provides a method for processing an instant message, where a flowchart of the method is shown in fig. 11. The method is also applicable to the instant messaging system shown in fig. 1 and 2, and is specifically performed by the message receiving client 200 in the instant messaging system shown in fig. 1 and 2.
As shown in fig. 11, in an exemplary embodiment, the method includes at least the steps of:
step 510, receiving an instant message sent by a messaging client, wherein the instant message is generated according to a storage identifier of a selected target resource in a resource memory and a storage identifier corresponding to the target resource according to a resource selection command triggered in the messaging client;
Step 530, extracting the storage identifier contained in the instant message;
and 550, taking the storage identifier as an index, and acquiring the target resource corresponding to the storage identifier from the resource memory.
It should be noted that, the method provided in this embodiment is applicable to a party receiving an instant message in an instant messaging system, and corresponds to the method shown in fig. 3, so specific implementation details of the method in this embodiment are described in the foregoing embodiments, and the description of this embodiment is omitted.
In this embodiment, the message receiving client is used as a target message receiving client, receives the instant message sent by the message sending client, extracts the storage identifier contained in the instant message, and then obtains the target resource corresponding to the storage identifier from the resource memory by using the storage identifier as an index.
Fig. 12 is an interactive schematic diagram of a message receiving interface included in an exemplary target message receiving client. As shown in fig. 12 (a), after receiving an instant message, the target message receiving client displays a notification button, a contact button and a skip application button in the message receiving interface, and clicking the notification button skips into the content display interface shown in fig. 12 (b), wherein the target resource corresponding to the storage identifier contained in the received instant message is displayed in a tiled manner, and if clicking the notification button is confirmed to be received in the content display interface, a feedback message is returned to the message sending client. If the contact button shown in fig. 12 (a) is clicked, the contact list shown in fig. 12 (c) is jumped to display the contact information of the selected contact by selecting any one of the contacts, as shown in fig. 12 (d).
Therefore, after the target message client receives the instant message, the corresponding target resource is acquired from the resource memory by taking the storage identifier as an index, and the target resource is not transmitted through the communication network between the message sending client and the message receiving client, so that the influence of the fluctuation of the communication network on the instant message transmission can be avoided, and the instantaneity of the instant message transmission is improved.
The following describes in detail a method for processing instant messages provided in the present application with a specific application scenario.
The application scenario corresponds to the instant messaging system shown in fig. 2, wherein the messaging client is specifically an "enterprise WeChat" application, and the messaging client is specifically a "WeChat" application. And the application scene is particularly applied to the education industry, the enterprise WeChat is used by schools, and the WeChat is used by parents of students.
A communication flow chart between a WeChat used by a parent (hereinafter referred to as a parent end) and a corporate WeChat used by a school (hereinafter referred to as a school end) is shown in fig. 13.
As shown in fig. 13, the parent end may pay attention to the school notification in the form of a micro-letter service number, public number, applet, etc. to connect to a message transmission channel between the parent end and the school end, for example, in fig. 13, the parent end specifically connects to a home-school communication service provided by the school end. The school communication service may be understood as the same entrance configured by the school terminal through the administrator for contacting the parents, so that the school communication service may obtain the focused parent list.
The school terminal administrator can also configure notification authority of school teacher, for example, for a class, the configurable class teacher has to send notification messages to all parents of students in the class, for example, to issue homework, and the teacher of the school propaganda unit can issue notification to parents of all students, for example, to specifically send campus event notification.
The teacher of the specific notification right can edit the notification to be sent in the enterprise WeChat used by each other, for example, the teacher selects parents needing to receive the notification in the message sending interface shown in fig. 5, and can add various types of attachments such as pictures, files, videos, webpages and the like when editing the notification message, specifically, add storage identifiers of various types of attachments in corresponding resource memories, edit text messages, and add teacher information which can be contacted by the parents when editing the notification message, and after the notification message of complex type is formed according to the edited various types of information, send the notification message to the WeChat of each selected parents through the notification channel between the school terminal and the parents.
The parent end can browse the notification message sent by the teacher directly in the WeChat, and can also contact the relevant teacher directly and initiate a session to the relevant teacher, for example, browse the notification and contact the teacher according to the operation shown in FIG. 12. The various types of accessories displayed in the parent end are obtained from the corresponding resource memory by taking the storage identifier as an index after receiving the storage identifier sent by the school end.
And when a teacher issues important notification messages, the teacher can select notification delivery options in the message sending interface so as to make the read condition of the important notification at the parent end clear at a glance. Meanwhile, a teacher can initiate a reminiscence to parents who have not read the notification, so that the reaching rate of the important notification is ensured.
It can be seen that in the application scene, a school teacher uses enterprise WeChat office, can separate work generation, students and parents directly use WeChat to receive notifications issued by the school, the enterprise WeChat is not required to be downloaded and used, the students and parents cannot be puzzled, diversification of notification accessories in the education industry can be dealt with, and the contact requirements between school parties and parents in the education industry are met.
Fig. 14 is a block diagram illustrating an instant message processing apparatus according to an example embodiment. The device is suitable for the instant messaging system shown in fig. 1 and 2, and can be specifically configured in the messaging client 100 shown in fig. 1 and 2.
As shown in fig. 14, the apparatus includes an identification acquisition module 610, a message generation module 630, and a message transmission module 650. The identifier obtaining module 610 is configured to determine, according to a resource selection command triggered in the messaging client, a storage identifier of a target resource indicated to be selected by the resource selection command in the resource memory. The message generation module 630 is configured to generate an instant message according to the storage identifier corresponding to the target resource. The message sending module 650 is configured to send the instant message to the target message receiving client, so that the target message receiving client uses the storage identifier contained in the instant message as an index, and obtains the target resource corresponding to the storage identifier from the resource memory.
In another exemplary embodiment, the identity acquisition module 610 includes a command listening unit and an identity selection unit. The command monitoring unit is used for monitoring resource selection commands aiming at different types of resources and triggered in the message sending client. The identification selection unit is used for respectively determining the selected different types of target resources from the resource memory according to the resource selection command and acquiring the storage identifications of the different types of target resources.
In another exemplary embodiment, the resource selection command includes a file resource selection command, and the target file resource indicated to be selected by the file resource selection command is derived from the specified message receiving client; the identifier acquisition module 610 specifically includes a request transmission unit, a response reception unit, and an identifier extraction unit. The request sending unit is used for sending a file acquisition request to a designated message receiving client indicated by the file resource selection command according to the file resource selection command triggered in the message sending client. The response receiving unit is used for receiving a response message returned by the specified message receiving client side aiming at the file acquisition request, wherein the response message contains a storage identifier of the target file resource in the resource memory. The identification extraction unit is used for extracting the storage identification of the target file resource from the response message.
In another exemplary embodiment, the resource selection command comprises a web page resource selection command; the identifier acquisition module 610 specifically includes a web page determination unit, an information extraction unit, and a web page identifier acquisition unit. The webpage determining unit is used for determining a target webpage indicated to be selected by the webpage resource selecting command according to the webpage resource selecting command triggered in the message sending client. The information extraction unit is used for extracting key information in the target webpage. The webpage identifier acquisition unit is used for taking webpage links corresponding to the target webpage and key information as storage identifiers of the target webpage.
In another exemplary embodiment, the information extraction unit includes a tag locating unit and a content acquisition unit. The label positioning unit is used for positioning the key page label in the webpage file corresponding to the target webpage. The content acquisition unit is used for reading tag content contained in the key page tag to obtain key information in the target webpage.
In another exemplary embodiment, the message transmission module 650 includes a field generation unit, a field carrying unit, and a field transmission unit. The field generating unit is used for generating an identification field for uniquely identifying the instant message according to the storage identification contained in the instant message. The field carrying unit is used for carrying the identification field in the instant message. The field sending unit is used for sending the instant message carrying the identification field to the target message receiving client.
In another exemplary embodiment, the field transmitting unit includes a history field acquiring subunit, a field comparing subunit, and a message terminating unit. The history field obtaining subunit is configured to obtain a history identifier field carried when the messaging client sends a history instant message. The field comparison subunit is configured to compare an identification field carried in the instant message with a history identification field. The message termination unit is used for terminating sending the instant message to the target message receiving client when the identification field is the same as the history identification field.
In another exemplary embodiment, the apparatus further comprises a list acquisition module and a client selection module. The list acquisition module is used for acquiring a list of message receiving clients associated with the message sending client. The client selection module is used for selecting at least one message receiving client from the message receiving client list as a target message receiving client according to a receiving end selection command triggered in the message sending client.
In another exemplary embodiment, the apparatus further comprises a feedback receiving module and a list marking module. The feedback receiving module is used for receiving feedback information returned by the target message receiving client, and the feedback information is used for indicating that the instant message is delivered. The list marking module is used for marking the target message receiving client which has returned the feedback message in the message receiving client list.
In another exemplary embodiment, the identity acquisition module 610 includes an interface display unit, a command listening unit, and an identity display unit. The interface display unit is used for displaying the message sending interface. The command monitoring unit is used for monitoring the triggered resource selection command in the message sending interface. The identification display unit is used for displaying the storage identification of the selected target resource indicated by the resource selection command in the resource storage in the message sending interface.
In another exemplary embodiment, the application to which the messaging client belongs is a different application than the application to which the target messaging client belongs.
Fig. 15 is a block diagram of an instant message processing apparatus according to another exemplary embodiment. The device is also applicable to the instant messaging system shown in fig. 1 and 2, and can be specifically configured in the message receiving client 200 shown in fig. 1 and 2.
As shown in fig. 15, the apparatus includes a message receiving module 710, an identification extracting module 730, and a resource obtaining module 750.
The message receiving module is used for receiving the instant message sent by the message sending client, and the instant message is generated according to the storage identification of the selected target resource in the resource memory and the storage identification corresponding to the target resource according to the resource selection command triggered in the message sending client; the identification extraction module is used for extracting the storage identification contained in the instant message; and the resource acquisition module is used for taking the storage identifier as an index and acquiring a target resource corresponding to the storage identifier from the resource memory.
It should be noted that, the apparatus provided in the foregoing embodiments and the method provided in the foregoing embodiments belong to the same concept, and the specific manner in which each module and unit perform the operation has been described in detail in the method embodiments, which is not repeated herein.
The embodiment of the application also provides instant message processing equipment, which comprises a processor and a memory, wherein the memory is stored with computer readable instructions which are executed by the processor to realize the instant message processing method.
Fig. 16 is a schematic diagram illustrating a structure of an instant message processing apparatus according to an exemplary embodiment.
It should be noted that the instant message processing device is merely an example adapted to the present application and should not be construed as providing any limitation on the scope of use of the present application. The instant message processing device should not be interpreted as having to rely on or necessarily have one or more of the components of the exemplary instant message processing device shown in fig. 16.
As shown in fig. 16, in an exemplary embodiment, the instant message processing device includes a processing component 801, a memory 802, a power component 803, a multimedia component 804, an audio component 805, a sensor component 807, and a communication component 808. The above components are not required, and the instant message processing device may add other components or reduce some components according to its own functional requirements, which is not limited in this embodiment.
The processing component 801 generally controls overall operation of the instant messaging processing device, such as operations associated with display, data communication, and log data processing, among others. The processing component 801 may include one or more processors 809 to execute instructions to perform all or part of the steps of the operations described above. Further, the processing component 801 may include one or more modules that facilitate interactions between the processing component 801 and other components. For example, processing component 801 may include multimedia modules to facilitate interactions between multimedia component 804 and processing component 801.
The memory 802 is configured to store various types of data to support operation at the processing device of the instant message, examples of which include instructions for any application or method operating on the processing device of the instant message. The memory 802 has stored therein one or more modules configured to be executed by the one or more processors 809 to perform all or part of the steps in the instant message processing method described in the above embodiments.
The power supply component 803 provides power to the various components of the instant message processing device. The power components 803 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the processing device of the instant message.
The multimedia component 804 includes a screen that provides an output interface between the processing device of the instant message and the user. In some embodiments, the screen may include TP (touch panel) and LCD (Liquid Crystal Display ). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
The audio component 805 is configured to output and/or input audio signals. For example, the audio component 805 includes a microphone configured to receive external audio signals when the processing device of the instant message is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. In some embodiments, the audio component 805 further comprises a speaker for outputting audio signals.
Sensor assembly 807 includes one or more sensors for providing status assessment of various aspects of the instant message processing device. For example, the sensor assembly 807 may detect an on/off state of the processing device of the instant message and may also detect a temperature change of the processing device of the instant message.
The communication component 808 is configured to facilitate communication between the processing device of the instant message and other devices in a wired or wireless manner. The processing device of the instant message may access a Wireless network based on a communication standard, such as Wi-Fi (Wireless-Fidelity).
It is to be understood that the configuration shown in fig. 16 is merely illustrative and that the instant message processing device may include more or less components than those shown in fig. 16 or have different components than those shown in fig. 16. Each of the components shown in fig. 16 may be implemented in hardware, software, or a combination thereof.
Another aspect of the present application also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of processing instant messages as described above. The computer readable storage medium may be included in the instant message processing apparatus described in the above embodiments or may exist alone without being assembled into the instant message processing apparatus.
The foregoing is merely a preferred exemplary embodiment of the present application and is not intended to limit the embodiments of the present application, and those skilled in the art may make various changes and modifications according to the main concept and spirit of the present application, so that the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A method for processing instant messages, comprising:
determining a storage identifier of a selected target resource indicated by a resource selection command in a resource memory according to the resource selection command triggered in the message sending client;
generating an instant message according to the storage identifier corresponding to the target resource;
the instant message is sent to a target message receiving client side, so that the target message receiving client side takes a storage identifier contained in the instant message as an index, and a target resource corresponding to the storage identifier is obtained from the resource memory;
the resource selection command comprises a file resource selection command, and the selected target file resource indicated by the file resource selection command is derived from a specified message receiving client; according to a resource selection command triggered in a message sending client, determining a storage identifier of a target resource indicated to be selected by the resource selection command in a resource memory, including:
according to the file resource selection command triggered in the message sending client, sending a file acquisition request to a designated message receiving client indicated by the file resource selection command;
Receiving a response message returned by the specified message receiving client side aiming at the file acquisition request, wherein the response message contains a storage identifier of the target file resource in a resource memory;
extracting a storage identifier of the target file resource from the response message; the application to which the message sending client belongs is different from the application to which the target message receiving client and the designated message receiving client belong;
the sending the instant message to the target message receiving client side comprises the following steps:
extracting a character from the storage identifiers corresponding to each target resource contained in the instant message according to a set rule, splicing the extracted characters into character strings according to the arrangement sequence of the corresponding storage identifiers in the instant message, and using the character strings for uniquely identifying the identification fields of the instant message;
carrying the identification field in the instant message;
and sending the instant message carrying the identification field to the target message receiving client side so that the target message receiving client side pre-analyzes the identification field contained in the instant message and judges whether the instant message is repeatedly sent or not according to the identification field.
2. The method according to claim 1, wherein determining, according to a resource selection command triggered in a messaging client, a storage identifier of a target resource indicated to be selected by the resource selection command in a resource memory, comprises:
monitoring resource selection commands aiming at different types of resources and triggered in the message sending client;
and according to the resource selection command, respectively determining the selected different types of target resources from the resource memory, and acquiring the storage identifiers of the different types of target resources.
3. The method of claim 1, wherein the resource selection command comprises a web page resource selection command; according to a resource selection command triggered in a message sending client, determining a storage identifier of a target resource indicated to be selected by the resource selection command in a resource memory, including:
determining a target webpage indicated to be selected by the webpage resource selection command according to the webpage resource selection command triggered in the message sending client;
extracting key information in the target webpage;
and taking the webpage links corresponding to the target webpage and the key information as a storage identifier of the target webpage.
4. The method of claim 3, wherein extracting key information in the target web page comprises:
positioning a key page tag in a webpage file corresponding to the target webpage;
and reading tag content contained in the key page tag to obtain key information in the target webpage.
5. The method of claim 1, wherein sending the instant message carrying the identification field to the target message receiving client comprises:
acquiring a history identification field carried when the message sending client sends a history instant message;
comparing the identification field carried in the instant message with the history identification field;
if the identification field is the same as the history identification field, terminating the sending of the instant message to the target message receiving client.
6. The method according to claim 1, wherein the method further comprises:
acquiring a message receiving client list associated with the message sending client;
and selecting at least one message receiving client from the message receiving client list as the target message receiving client according to a receiving end selection command triggered in the message sending client.
7. The method of claim 6, wherein the method further comprises:
receiving a feedback message returned by the target message receiving client, wherein the feedback message is used for indicating that the instant message is delivered;
the target message receiving client that has returned a feedback message is marked in the message receiving client list.
8. The method according to claim 1, wherein determining, according to a resource selection command triggered in a messaging client, a storage identifier of a target resource indicated to be selected by the resource selection command in a resource memory, comprises:
displaying a message sending interface;
monitoring a triggered resource selection command in the message sending interface;
and displaying the storage identification of the selected target resource indicated by the resource selection command in a resource memory in the message sending interface.
9. A method for processing instant messages, comprising:
receiving an instant message sent by a message sending client, wherein the instant message is a response message returned by the specified message receiving client for the file acquisition request, and the response message contains a storage identifier of a target file resource in a resource storage according to a file resource selection command triggered in the message sending client; extracting a storage identifier of the target file resource from the response message, and generating according to the storage identifier corresponding to the target file resource, wherein the target file resource indicated to be selected by the file resource selection command is derived from a specified message receiving client, and an application to which the message sending client belongs and an application to which the specified message receiving client belongs are different applications;
Extracting the storage identifier contained in the instant message;
taking the storage identifier as an index, and acquiring a target resource corresponding to the storage identifier from the resource memory;
the method further comprises the steps of:
analyzing the identification field contained in the instant message in advance, and judging whether the instant message is repeatedly sent or not according to the identification field, wherein the identification character is a character string which is obtained by extracting a character from the storage identifications corresponding to each target resource contained in the instant message according to a set rule and splicing the extracted characters according to the arrangement sequence of the corresponding storage identifications in the instant message.
10. An instant message processing apparatus, comprising:
the device comprises an identification acquisition module, a resource storage module and a resource storage module, wherein the identification acquisition module is used for determining the storage identification of the selected target resource indicated by a resource selection command in a resource storage according to the resource selection command triggered in a message sending client;
the message generation module is used for generating instant messages according to the storage identifiers corresponding to the target resources;
the message sending module is used for sending the instant message to a target message receiving client side so that the target message receiving client side takes a storage identifier contained in the instant message as an index and acquires a target resource corresponding to the storage identifier from the resource memory;
The resource selection command comprises a file resource selection command, and the selected target file resource indicated by the file resource selection command is derived from the appointed message receiving client; the identification acquisition module comprises a request sending unit, a response receiving unit and an identification extraction unit; the request sending unit is used for sending a file acquisition request to a designated message receiving client indicated by the file resource selection command according to the file resource selection command triggered in the message sending client; the response receiving unit is used for receiving a response message returned by the specified message receiving client side aiming at the file acquisition request, wherein the response message contains a storage identifier of the target file resource in the resource memory; the identification extraction unit is used for extracting the storage identification of the target file resource from the response message; the application to which the message sending client belongs is different from the application to which the target message receiving client and the designated message receiving client belong;
the message sending module comprises a field generating unit, a field carrying unit and a field sending unit; the field generating unit is used for extracting a character from the storage identifiers corresponding to each target resource contained in the instant message according to a set rule, splicing the extracted characters into character strings according to the arrangement sequence of the corresponding storage identifiers in the instant message, and using the character strings for uniquely identifying the identification field of the instant message; the field carrying unit is used for carrying the identification field in the instant message; the field sending unit is used for sending the instant message carrying the identification field to the target message receiving client.
11. An instant message processing apparatus, comprising:
a memory storing computer readable instructions;
a processor reading computer readable instructions stored in a memory to perform the method of any one of claims 1-9.
12. A computer readable storage medium having stored thereon computer readable instructions which, when executed by a processor of a computer, cause the computer to perform the method of any of claims 1-9.
CN202010427802.6A 2020-05-19 2020-05-19 Instant message processing method, device, equipment and storage medium Active CN113691438B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010427802.6A CN113691438B (en) 2020-05-19 2020-05-19 Instant message processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010427802.6A CN113691438B (en) 2020-05-19 2020-05-19 Instant message processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113691438A CN113691438A (en) 2021-11-23
CN113691438B true CN113691438B (en) 2023-05-19

Family

ID=78576037

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010427802.6A Active CN113691438B (en) 2020-05-19 2020-05-19 Instant message processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113691438B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350790A (en) * 2007-07-19 2009-01-21 阿里巴巴集团控股有限公司 Document transmission method and device base on instant communications system
CN103067379A (en) * 2012-12-26 2013-04-24 北京百度网讯科技有限公司 Multimedia resource sharing method, system and mobile terminal of instant communication
CN104516927A (en) * 2013-09-30 2015-04-15 腾讯科技(深圳)有限公司 Document processing method, device and terminal
CN108259542A (en) * 2016-12-29 2018-07-06 腾讯科技(深圳)有限公司 The transmission method and device of resource
CN110798501A (en) * 2019-08-21 2020-02-14 腾讯科技(深圳)有限公司 Data processing method and device and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350790A (en) * 2007-07-19 2009-01-21 阿里巴巴集团控股有限公司 Document transmission method and device base on instant communications system
CN103067379A (en) * 2012-12-26 2013-04-24 北京百度网讯科技有限公司 Multimedia resource sharing method, system and mobile terminal of instant communication
CN104516927A (en) * 2013-09-30 2015-04-15 腾讯科技(深圳)有限公司 Document processing method, device and terminal
CN108259542A (en) * 2016-12-29 2018-07-06 腾讯科技(深圳)有限公司 The transmission method and device of resource
CN110798501A (en) * 2019-08-21 2020-02-14 腾讯科技(深圳)有限公司 Data processing method and device and readable storage medium

Also Published As

Publication number Publication date
CN113691438A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US11868591B2 (en) Dynamic user interface customization
CA2643342C (en) System and method for cross-carrier mobile device capability discovery
US7831673B1 (en) Methods and systems for processing offline chat messages
US10496245B2 (en) Method for interactive response and apparatus thereof
US20150227496A1 (en) Method and system for microblog resource sharing
US8422642B2 (en) Message system for conducting message
CN108733666B (en) Server information pushing method, terminal information sending method, device and system
CN106911666B (en) Wearable intelligent device and message processing method and system thereof
JP2018506793A (en) Method, apparatus, system and computer program for providing a rich menu of official accounts in an instant messaging service
CN114124861A (en) Message group sending method and device, computer equipment and storage medium
CN110647827A (en) Comment information processing method and device, electronic equipment and storage medium
CN103023730A (en) Systems and methods for performing quick link communications
US9942177B1 (en) Method and system for real-time data updates
CN113691438B (en) Instant message processing method, device, equipment and storage medium
CN110704151A (en) Information processing method and device and electronic equipment
CN109918168A (en) Show method, electronic equipment and the computer-readable medium of graphic code
CN112016280B (en) File editing method and device and computer readable medium
KR20140117170A (en) Method of providing question and answer service and server thereof
CN113885976A (en) Interaction method and device and electronic equipment
CN107995091B (en) Self-service method and device based on enterprise instant messaging application
US20150065103A1 (en) Device and Method for Enhancing a Call
CN111930276B (en) Page interaction method and device, storage medium and electronic equipment
CN112995259B (en) Business information pushing method, device, system, equipment and storage medium
CN111695459B (en) State information prompting method and related equipment
CN114339628B (en) 5G rich media message sending method, equipment, storage medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40054513

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant