CN118337744A - Message reply method and device and electronic equipment - Google Patents

Message reply method and device and electronic equipment Download PDF

Info

Publication number
CN118337744A
CN118337744A CN202410493633.4A CN202410493633A CN118337744A CN 118337744 A CN118337744 A CN 118337744A CN 202410493633 A CN202410493633 A CN 202410493633A CN 118337744 A CN118337744 A CN 118337744A
Authority
CN
China
Prior art keywords
message
question
reply
messages
chat
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.)
Pending
Application number
CN202410493633.4A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202410493633.4A priority Critical patent/CN118337744A/en
Publication of CN118337744A publication Critical patent/CN118337744A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a message reply method and device and electronic equipment, and belongs to the technical field of artificial intelligence. The method comprises the following steps: receiving a first question message sent by a first contact; and sending a reply message to the first contact under the condition that the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message.

Description

Message reply method and device and electronic equipment
Technical Field
The application belongs to the technical field of artificial intelligence, and particularly relates to a message reply method and device and electronic equipment.
Background
At present, a user can chat with a contact person through a communication application in electronic equipment, and in the chat process, the situation that the opposite party repeatedly asks some problems often occurs.
For example: when the user communicates with the 'king' through the communication application and works, the 'king' sends a problem when the 'equipment A is on the market' in the communication process, and when the problem is a problem which is previously asked by the 'king', the user can find the reply information sent to the 'king' before and send the reply information to the 'king' for answering.
However, in the above process, the user needs to first browse the history chat record with the "king", then copy the reply information sent to the "king" before finding the reply information in the history chat record, then paste the reply information into the input box, and finally click the sending control to send the reply information to the "king". As such, the step of the user replying to the message is cumbersome and time consuming.
Disclosure of Invention
The embodiment of the application aims to provide a message reply method and device and electronic equipment, which can improve the efficiency of replying messages by the electronic equipment.
In a first aspect, an embodiment of the present application provides a message reply method, where the method includes: receiving a first question message sent by a first contact; and sending a reply message to the first contact under the condition that the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message.
In a second aspect, an embodiment of the present application provides a message reply device, including: and the receiving module is used for receiving the first question message sent by the first contact. And the processing module is used for sending a reply message to the first contact person under the condition that the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program/program product stored in a storage medium, the program/program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, a first question message sent by a first contact is received; and sending a reply message to the first contact under the condition that the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message. In the scheme, after the electronic device receives the first question message sent by the first contact person, the electronic device can automatically search the second question message containing the same question content with the first question message in the history chat message, and then after the reply message corresponding to the second question message and the second question message is searched, the electronic device can send the reply message to the first contact person as the reply to the first question message, and the whole process can reply to the first question message without manually turning the history chat message by a user, so that the efficiency of replying the message by the electronic device is improved.
Drawings
FIG. 1 is a flow chart of a message reply method provided by some embodiments of the application;
FIG. 2A is an example schematic diagram of a receive problem message provided by some embodiments of the present application;
FIG. 2B is a schematic diagram of an example of sending a reply message provided by some embodiments of the application;
FIG. 3A is an example schematic diagram of a find reply message provided by some embodiments of the application;
FIG. 3B is an example schematic diagram of a find reply message provided by some embodiments of the application;
FIG. 4 is an example schematic diagram of a determine question message and a reply message provided by some embodiments of the application;
FIG. 5 is a flow chart of a message reply method provided by some embodiments of the application;
FIG. 6A is an example schematic diagram of a storage problem message provided by some embodiments of the present application;
FIG. 6B is an example schematic diagram of a storage problem message provided by some embodiments of the present application;
FIG. 6C is an example schematic diagram of a store reply message provided by some embodiments of the application;
FIG. 6D is an example schematic diagram of a store reply message provided by some embodiments of the application;
FIG. 7 is an example schematic diagram of a display of stored historical chat messages provided by some embodiments of the application;
FIG. 8 is a flow chart of a message reply method provided by some embodiments of the application;
FIG. 9 is an example schematic diagram of a find reply message provided by some embodiments of the application;
FIG. 10 is a flow chart of a message reply method provided by some embodiments of the application;
FIG. 11 is a schematic diagram of an example of a reply message showing a search provided by some embodiments of the application;
FIG. 12 is a schematic diagram of an example of a reply message showing a search provided by some embodiments of the application;
fig. 13 is a schematic diagram of a message reply device according to some embodiments of the present application;
FIG. 14 is a schematic diagram of a hardware architecture of an electronic device provided by some embodiments of the application;
Fig. 15 is a schematic hardware structure of an electronic device according to some embodiments of the present application.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type not limited to the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The terms "at least one," "at least one," and the like in the description and in the claims, mean that they encompass any one, any two, or a combination of two or more of the objects. For example, at least one of a, b, c (item) may represent: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", wherein a, b, c may be single or plural. Similarly, the term "at least two" means two or more, and the meaning of the expression is similar to the term "at least one".
The message reply method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
The message reply method in the embodiment of the application can be applied to the scene of replying the message.
Scene 1, a user communicates a working problem with a "king" through communication "APP1", when the "king" sends a message 1 "when to start selling machine a" to the user in the communication process, the user can click on the message 1 in the session interface, so that the electronic device displays a "view history reply" control in the session interface, then the user can click on the "view history reply" control, so that the electronic device searches a history chat message with the "king" for a message 2 containing the same problem content as the message 1, then when the message 2 "when the machine a starts to sell at the earliest" is found, and a reply message 3 of the message 2 "is marketed in China 2020 1 month, and abroad 2019 6 months" when the problem is consulted with the user before the "king", the electronic device can send the reply message 3 to the "king".
Scene 2, the user communicates the work problem through communication "APP1" and "king", when "king" sent a message 1 "when device a was marketed" in the communication process, the user can click on message 1 in the session interface, so that the electronic device displays a "view history reply" control in the session interface, then the user can click on the "view history reply" control, so that the electronic device searches all the history chat messages of communication "APP1" for message 2 containing the same problem content as message 1, then searches all the history chat messages of "xiao Li" for message 2 "when device a starts to be sold", and message 2's reply message 3 "domestic time is 2020 month 1, foreign selling time is 2019 month 6", i.e. "xiao Li" before consulting the problem with the user, and the electronic device can send reply message 3 to "king".
In scenario 3, when the user communicates the working problem through communication "APP1" and "reddish", and "reddish" sends a message 1 "when device a is marketed" in the communication process, the user may click on message 1 in the session interface, so that the electronic device displays a "find match reply" control in the session interface, then the user may click on the "find match reply" control, so that the electronic device searches all the historical chat messages of communication "APP2" for message 2 containing the same problem content as message 1, then searches all the historical chat messages of communication "APP2" and "xiao Hao" for "what time to market device a" of message 2, and "when reply message 3 of message 2 is marketed in 2020 1 in China, and in 2019 6 in China", that is, "xiao Hao" before the user consults the problem, the electronic device may send reply message 3 to "reddish".
In the message reply method, the device and the electronic equipment provided by the embodiment of the application, after the electronic equipment receives the first problem message sent by the first contact person, the electronic equipment can automatically search the second problem message containing the same problem content as the first problem message in the history chat message, and then after the reply message corresponding to the second problem message and the second problem message is searched, the electronic equipment can send the reply message as the reply to the first problem message to the first contact person, and the whole process can reply to the first problem message without manually turning over the history chat message by a user, thereby improving the reply efficiency of the electronic equipment.
The execution body of the message reply method provided by the embodiment of the application can be a message reply device, and the message reply device can be an electronic device or a functional module or entity in the electronic device. The technical solution provided by the embodiment of the present application is described below by taking an electronic device as an example.
An embodiment of the present application provides a message reply method, and fig. 1 shows a flowchart of the message reply method provided by the embodiment of the present application, where the method may be applied to an electronic device. As shown in fig. 1, the message reply method provided by the embodiment of the present application may include the following steps 201 and 202.
Step 201, the electronic device receives a first question message sent by a first contact.
In some embodiments of the present application, the first contact may be a contact in a communication application.
In some embodiments of the application, the problem message may be understood as: a message contains a problem.
For example: taking the first question message as an example of message 1 "when to start selling machine a" in scenario 1, message 1 contains a question, message 1 is a question message.
In some embodiments of the present application, the first question message is a message sent by a first contact currently chatting with the user.
Step 202, in the case that the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message, the electronic device sends the reply message to the first contact.
In some embodiments of the present application, the second question message may be a message sent before the first contact currently chatting with the user, or a message sent before other contacts.
For example: taking the first question message as message 1 in scenario 1, "when to start selling machine a", and the second question message as message 2 in scenario 1 "when machine a starts selling at the earliest", the questions between message 1 and message 2 are identical, so message 1 and message 2 contain the same question content.
In some embodiments of the present application, the electronic device may search the historical chat messages for a second question message that contains the same question content as the first question message through a semantic matching technique.
It will be appreciated that since the second question message contains the same question content as the first question message, a reply message to the second question message may be used to reply to the first question message sent by the first contact.
In some embodiments of the present application, when receiving a first question message sent by a first contact, the electronic device may search a historical chat message for a second question message containing the same question content as the first question message, and then send a reply message to the first contact when searching for the second question message and the reply message for replying to the second question message, while displaying a session interface of a session between the user and the first contact. Or when receiving the first question message sent by the first contact, the electronic device can search the history chat message for a second question message containing the same question content as the first question message when displaying any interface, and then send a reply message to the first contact when searching the second question message and the reply message for replying to the second question message.
For example, as shown in fig. 2A, the user in scenario 1 is exemplified by "sheetlet", and the first contact is exemplified by "king". When the electronic device receives the message 1 sent by the "king" and starts selling the machine a ", that is, the session interface 11 of the chat session between the" king "and the" first question message is displayed, the session interface 11 includes the message 1, and the electronic device may search the historical chat message for the message containing the same question content as the message 1, and then when the electronic device searches the message 2 containing the same question content as the message 1, "when the machine a starts to sell at the earliest", and the reply message of the reply message 2 "is marketed in the year 2020 and in the year 2019 and 6", the electronic device may send the reply message of the reply message 2 to the "king", as shown in fig. 2B.
In some embodiments of the present application, if the electronic device does not find the second question message and the reply message for replying to the second question message in the historical chat message, the electronic device may display a prompt message, where the prompt message is used to indicate that the reply message is not found.
In some embodiments of the present application, the historical chat message may be a historical chat message between the user and the first contact, or may be a historical chat message between the user and other contacts. The first contact and the other contacts may be contacts in the same application or contacts in different applications.
In the message reply method provided by the embodiment of the application, after the electronic equipment receives the first question message sent by the first contact person, the electronic equipment can automatically search the second question message containing the same question content as the first question message in the history chat message, and then after the reply message corresponding to the second question message and the second question message is searched, the electronic equipment can send the reply message as a reply to the first question message to the first contact person, and the whole process can reply to the first question message without manually browsing the history chat message by a user, thereby improving the reply message efficiency of the electronic equipment
In some embodiments of the present application, after receiving the first question message sent by the first contact, the electronic device may receive a first input from the user, and then, in response to the first input, send a reply message to the first contact when a second question message containing the same question content as the first question message and a reply message for replying to the second question message are found in the historical chat message.
In some embodiments of the application, the first input is for replying to a message.
In some embodiments of the application, the first input includes, but is not limited to: the user inputs through the touch of a touch device such as a finger or a stylus, or is a voice command input by the user, or is a specific gesture input by the user, or is a click input, or is other feasibility input. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
In some embodiments of the present application, the specific gesture may be any one of a single click gesture, a swipe gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double press gesture, and a double click gesture.
In some embodiments of the present application, the click input may be a single click input, a double click input, or any number of click inputs, and may also be a long press input or a short press input.
In some embodiments of the present application, the first input may be an input of a first problem message by a user when the electronic device displays the first problem message.
For example, after receiving the first problem message, the electronic device may display the location area of the first problem message as at least one of the following: notification list, message window, session interface of the session between the user of the electronic device and the first contact.
In some embodiments of the present application, the first input may be an input by the user to a first control in a session interface when the session interface between the user and the first contact is displayed, where the first control is used for replying to the message.
For example, the electronic device may receive user input of a first question message, displaying the first control described above.
For example, the electronic device may display the first control in a vicinity of the first question message or display the first control in a blank area of the session interface. The embodiment of the present application is not limited thereto.
For example, as shown in fig. 3A, when the electronic device displays the session interface 11 of the session between "sheetlet" and "sheetlet", the "sheetlet" may click on the message 1 in the session interface 11, so that the electronic device displays the "view history reply" control 21, that is, the first control described above, in the session interface 11, then, as shown in fig. 3B, the "sheetlet" may click on the "view history reply" control 21, that is, the first input described above, so that the electronic device searches for a message containing the same problem content as the message 1 in the history chat message, and then, when the electronic device searches for the "when the machine a starts to sell at the earliest" and the reply message of the reply message 2 "for the year 2020 1 in home, and the year 2019 and the month 6 in foreign", the electronic device may send the reply message of the reply message 2 to the "sheetlet" as shown in fig. 2B.
Therefore, after the electronic device receives the first problem message sent by the first contact person, the user can trigger the electronic device to automatically search a second problem message containing the same problem content as the first problem message and a reply message corresponding to the second problem message from the history chat message through the first input, and send the reply message to the first contact person as a reply to the first problem message, and the whole process can reply to the first problem message without manually browsing the history message, so that the efficiency of replying the message of the electronic device is improved.
In some embodiments of the application, the second question message is from a first session comprising a user of the electronic device. The reply message for replying to the second question message includes: and a message sent by a user of the electronic equipment between the first moment and the second moment in the first session. The first time is the sending time of the second question message, and the second time is the time when the contact participating in the first session sends the message after the first time.
In some embodiments of the present application, the contact participating in the first session may be the first contact, or a contact other than the first contact in the first session.
For example: taking the second problem message as the message 2 in the scene 1, the first contact as the "small-king" and the user as the "small-sheet", when the message 2 "machine a starts to sell at the earliest time" when the small-sheet "is sent to the" small-sheet "in 2023-05-06:50," the small-sheet "is sent to the" small-sheet "in 2023-05-06:51," the message 3 "is marketed in the country 2020 month 1, the 2019 is marketed in the country 6, the" small-sheet "is sent to the" small-sheet "in 2023-05-06:53," the electronic device can send the reply message between the "2023-05-06:50 to 2023-05-06:10:53," i.e. the message 3 "which is sent between the first time and the second time" small-sheet "in the country 2020 month 1, and the 2019 is marketed in the country 6 month as the reply message 2, and send the reply message to the" small-sheet ".
In some embodiments of the present application, the "sending, by the electronic device, a reply message to the first contact" in the step 202 may be specifically implemented by the following step 202a or step 202 b.
In step 202a, in case the reply message to the second question message is a reply message, the electronic device sends a reply message to the second question message to the first contact.
It may be appreciated that when the found reply message of the second problem message is a reply message, the electronic device may directly send the reply message to the first contact.
Step 202b, in the case that the reply message for answering the second question message is at least two reply messages and the storage mode of the history chat message is file storage, the electronic device splices at least two reply messages to obtain a first spliced reply message, and sends the first spliced reply message to the first contact.
It can be appreciated that when the reply message of the second problem message is at least two reply messages, the electronic device may perform a concatenation process on the at least two reply messages, and send the concatenated message to the first contact.
Therefore, when the found reply message of the second problem message is a plurality of reply messages, the electronic equipment can splice the plurality of reply messages and then send the reply messages to the first contact person, and the plurality of reply messages do not need to be sent to the first contact person in sequence, so that the flexibility and the efficiency of sending the reply messages by the electronic equipment are improved.
In some embodiments of the present application, before the step 201, the message reply method provided in the embodiment of the present application further includes the following step 301 or step 302 or step 303.
Step 301, the electronic device stores chat messages of at least one chat session as a history chat message file.
In an embodiment of the present application, the storage manner of the historical chat message is file storage, where the historical chat message file includes at least one set of historical chat messages, and each set of historical chat messages includes a question message and at least one reply message for replying to the question message.
It will be appreciated that when the electronic device stores the historical chat messages, the historical chat messages may be grouped and stored.
In some embodiments of the application, the question message and at least one reply message to the question message in each set of historical chat messages in the historical chat message file are displayed together.
In some embodiments of the present application, when the historical chat message is a chat message in a chat session, the electronic device may directly store the historical chat message as a historical chat message file, that is, without grouping the historical chat message.
In some embodiments of the present application, in storing a historical chat message in a chat session, the electronic device may use the historical chat message between the third time and the fourth time as the question message sent by the contact, where the historical chat message between the third time and the fourth time includes the historical chat message of the third time; and taking the historical chat messages between the fourth moment and the fifth moment as reply messages sent by the user, wherein the historical chat messages between the fourth moment and the fifth moment comprise the historical chat messages of the fourth moment, and finally, storing the acquired question messages and the reply messages in a group.
Illustratively, the third time is a time when the contact sends the first question message, the fourth time is a time when the user sends the first message after the third time, and the fifth time is a time when the contact participating in the chat session sends the message after the fourth time.
In some embodiments of the present application, when the historical chat messages between the third time and the fourth time include a plurality of chat messages, the electronic device may splice the plurality of chat messages, and then use the spliced message as the question message sent by the contact.
For example, as shown in fig. 4, taking the user in the scenario 1 as an example of "sheetlet", when the electronic device stores the historical chat message between "sheetlet" and "sheetlet" so as to facilitate the subsequent search for the reply message, if the "sheetlet" sends the message "machine a" to "sheetlet" at the time 1 "2022-12-21:50", the electronic device may send the message 31 "machine a" at the time 1, and when the message 32 "between the time 1 and the sending time 2 of" sheetlet "sending the first message" 1 month to market "in China is taken as the question message, the time 1 is the third time, and the time 2 is the fourth time. The electronic device may then market message 33 "1 month in China" sent at time 2, which is the transmission time 3 "2022-12-21:00" between time 2 and message "this would be empty" as a reply message, and "6 months abroad" as a reply message, and time 3 is the fifth time described above.
Therefore, when the subsequent electronic equipment searches the second problem message, the reply message in the message group where the second problem message is located can be directly sent to the first contact person, so that the time for the electronic equipment to determine the reply message corresponding to the second problem message is saved.
In some embodiments of the present application, the electronic device may store the chat message when it detects that the contact sent a question message to the user and the user replied to the question message sent by the contact.
In some embodiments of the present application, the electronic device may store a chat message between the user and the contact immediately after detecting that the contact sent a problem message to the user and the user replied to the problem message sent by the contact and that the contact sent a new message to the user, thereby avoiding missing the reply message of the user.
In some embodiments of the present application, the electronic device may store a chat message between the user and a first contact when detecting that the user is chatting with another contact after the user is chatting with the first contact.
In some embodiments of the present application, the electronic device may store the chat message when detecting that the contact exits the current session interface and replying to the message sent by the contact before exiting the session interface.
In some embodiments of the present application, when the historical chat message is a voice message, the electronic device may convert the voice message into a text message and store the text message.
In some embodiments of the present application, when the electronic device stores chat messages of at least one chat session as a history chat message file, the message sending time of each chat message may be stored in the chat message file together.
For example, when the electronic device stores the chat message and the message sending time of the chat message, the electronic device may store the chat message in a format of "message sending time-chat message content".
In some embodiments of the application, when the electronic device stores chat messages for one chat session as a history chat message file, the chat message may be stored as a conversation name for the one chat session, or the one chat session
The contact identification of the corresponding contact names the historical chat message file.
In some embodiments of the present application, in the case that the chat message of at least one chat session includes a third question message and at least two reply messages for replying to the third question message, the above step 301 may be implemented specifically by the following steps 301a and 301 b.
Step 301a, the electronic device performs a splicing process on at least two reply messages to obtain a second spliced reply message.
In some embodiments of the present application, the third question message may be a message sent by the first contact currently chatting with the user, or a message sent by another contact.
In some embodiments of the present application, the electronic device may perform a splicing process on at least two reply messages according to a semantic merging technique, to obtain a second spliced reply message.
For example: taking the user in the scene 2 as a ' sheetlet ', when the electronic equipment stores the historical chat message between the ' sheetlet ' and the contact in the communication ' APP 1', so that the reply message is convenient to search later, if the reply message which is required to be stored and is used for replying the third question message is at least two reply messages ' domestic 1 month to market ' and ' foreign 6 months to market ', the electronic equipment can splice the reply message into ' domestic 1 month to market ' and foreign 6 months to market ', and then store the reply message.
Step 301b, the electronic device stores the third problem message in association with the second splice reply message.
It can be understood that when the historical chat message is stored, if the third question message in the historical chat message corresponds to a plurality of reply messages, the plurality of reply messages are spliced, and then the spliced reply messages and the third question message are associated and stored.
Therefore, when the third question message in the historical chat message corresponds to the plurality of reply messages, the electronic equipment can splice the plurality of reply messages and store the spliced messages, so that the situation that at least two reply messages are spliced when the third question message and at least two reply messages for replying to the third question message are found later is avoided, and then the spliced messages are sent to the contact person, and the time for the electronic equipment to send the reply messages is saved.
In some embodiments of the present application, the storage manner of the historical chat messages is file storage, and at least one group of the historical chat messages includes a first group of messages and a second group of messages; the first set of messages includes a question message and a reply message to answer the question message, and the second set of messages includes a question message and at least two reply messages to answer the question message; the "sending the reply message to the first contact by the electronic device" in step 202 may be specifically implemented by step 202c or step 202d described below.
Step 202c, in the case that the second question message is a question message in the first set of messages, the electronic device sends a reply message in the first set of messages to the first contact.
It can be appreciated that, since each group of messages includes one question message and at least one reply message corresponding to the question message, when the electronic device finds the second question message, the electronic device may send the reply message in the message packet to which the second question message belongs to the first contact.
It may be appreciated that after the second problem message is found, if the first group of messages to which the second problem message belongs includes a reply message, the electronic device may directly send the reply message to the first contact.
In step 202d, in the case that the second problem message is a problem message in the second group of messages, the electronic device sends at least two reply messages in the second group of messages to the first contact, or sends a message obtained by splicing at least two reply messages in the second group of messages to the first contact.
In some embodiments of the present application, the foregoing sending, to the first contact, at least two reply messages in the second set of messages respectively may be understood as: each reply message of the at least two reply messages in the second set of messages is sent separately to the first contact.
It may be appreciated that after the second problem message is found, if the second group message to which the second problem message belongs includes at least two reply messages, the electronic device may send each reply message of the at least two reply messages in the second group message to the first contact separately.
It may be appreciated that after the second problem message is found, if the second group of messages to which the second problem message belongs includes at least two reply messages, the electronic device may perform a concatenation process on the at least two reply messages, and then send the concatenated reply messages to the first contact.
Therefore, when the second group of information which the second problem information found by the electronic equipment belongs to comprises at least two reply messages, the electronic equipment can respectively send the at least two reply messages to the first contact person or send the at least two reply messages to the first contact person after the at least two reply messages are spliced, so that the flexibility of sending the reply messages by the electronic equipment is improved.
Step 302, the electronic device stores chat messages of at least one chat session as a historical chat message mapping table.
In the embodiment of the present application, the storage manner of the historical chat messages is a mapping table storage, and the historical chat message mapping table includes a mapping relationship between each question message and message sending time of all reply messages for replying to each question message.
In some embodiments of the present application, the mapping relationship between the message sending times of the question message and all reply messages to the question message can be understood as: the mapping relationship between the message content of the question message and the message sending time of all reply messages replying to the question message.
In some embodiments of the present application, the electronic device may obtain a message sending time of a reply message corresponding to a question message in at least one chat session, and then store the question message in at least one chat session and the message sending time of the reply message corresponding to the question message in a history chat message mapping table in association with each other.
In some embodiments of the present application, the electronic device may store the mapping relationship between the question messages and the message sending times of all reply messages replying to each question message in the form of data of a mapping table in a data structure.
In some embodiments of the present application, the storage manner of the historical chat message is a mapping table storage, and as shown in fig. 5 in conjunction with fig. 1, the above step 202 may be specifically implemented by the following steps 202e and 202 f.
Step 202e, under the condition that a second question message with the same question content as the first question message exists in the history chat message mapping table, the electronic device obtains a reply message for replying to the second question message according to the message sending time corresponding to the second question message stored in the history chat message mapping table.
In some embodiments of the present application, the message sending time corresponding to the second problem message may be understood as: message sending time of all reply messages replying to the second question message.
In some embodiments of the present application, after obtaining the message sending time of all reply messages for answering the second question message in the historical chat message mapping table, the electronic device may obtain an application to which the second question message belongs, and then find a reply message matching the message sending time in the historical chat message stored in the application.
For example, the mapping relationship between each question message and the application to which the question message belongs may be stored in the above-mentioned historical chat message mapping table.
Step 202f, the electronic device sends a reply message to the first contact, which replies to the second question message.
In some embodiments of the present application, when the reply message that answers the second question message is a reply message, the electronic device may send the reply message to the first contact.
In some embodiments of the present application, when the reply message that answers the second question message is a plurality of reply messages, the electronic device may splice the plurality of reply messages, and then send the spliced reply messages to the first contact.
Taking the user in the scenario 2 as a "sheetlet", after the electronic device receives the message 1 "when the device a sent by the" sheetlet "is marketed", that is, after the first problem message, the electronic device may search the historical chat message mapping table for a message containing the same problem content as the message 1, if the electronic device searches the historical chat message mapping table for the message 2 "when the device a containing the same problem content as the message 1 is sold, the electronic device may obtain the message sending time of the reply message corresponding to the message 2 from the historical chat message mapping table, and then determine, based on the message sending time, that the reply message corresponding to the message 2 is" the domestic selling time is 2020 1 month, the foreign selling time is 2019 6 month ", and send the reply message to the" sheetlet ".
Therefore, when the second question message exists in the history chat message mapping table, the electronic device can acquire the reply message for replying to the second question message based on the message sending time of the reply message corresponding to the second question message stored in the history chat message mapping table, and send the reply message to the first contact, so that the diversity of sending the reply message by the electronic device is improved.
Step 303, the electronic device stores the chat message of at least one chat session in the input method lexicon.
In the embodiment of the application, the storage mode of the history chat message is input method word stock storage, wherein the input method word stock comprises a first file stock and a second file stock, the first file stock is used for storing the question message, and the second file stock is used for storing the reply message for replying the question message.
In some embodiments of the present application, when the at least one chat session is a chat session in a different application, the electronic device may store a question message in the at least one chat session, where the question message meets a preset condition, and a reply message corresponding to the question message, into the input method lexicon.
Illustratively, the preset conditions include at least one of: the problem message contains keywords, the number of characters contained in the problem message is larger than a preset threshold, and the sending time of the problem message is within a preset time period.
In some embodiments of the present application, the electronic device may store the question message and the reply message selected by the user to the input method thesaurus based on the user's selection input of the question message and the reply message in the at least one chat session.
In some embodiments of the present application, when storing a question message in a first file repository and storing a reply message corresponding to the question message in a second file repository, the electronic device may store the question message in association with the reply message corresponding to the question message.
In some embodiments of the present application, the electronic device may store the question message to a first location in a first repository, store the reply message to the question message to a first location in a second repository, and then associate the question message at the first location in the first repository with the reply message at the first location in the second repository.
In this way, the electronic device can store chat messages of at least one chat session to different places, so that flexibility and diversity of storing chat messages by the electronic device are improved.
In some embodiments of the present application, the step 303 may be specifically implemented by the following steps 303a to 303 c.
Step 303a, the electronic device displays a session interface for the chat session.
In some embodiments of the present application, the one chat session may be any chat session in which a user of the electronic device participates.
Step 303b, the electronic device receives a user selection input of a fourth question message and at least one reply message to answer the fourth question message in the session interface.
In some embodiments of the present application, the fourth problem message may be a message sent by the first contact, or a message sent by another contact.
In some embodiments of the application, the selection input is used to store a fourth question message and at least one reply message to answer the fourth question message.
In some embodiments of the application, the selection inputs include, but are not limited to: the user inputs through the touch of a touch device such as a finger or a stylus, or is a voice command input by the user, or is a specific gesture input by the user, or is a click input, or is other feasibility input. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
Step 303c, the electronic device responds to the selection input to store the fourth question message and at least one reply message for replying to the fourth question message in association to the input method word stock.
In some embodiments of the present application, the selection input includes a first sub-input and a second sub-input, the electronic device may store the fourth question message in the input method lexicon in response to the first sub-input of the fourth question message by the user, store the at least one reply message to the fourth question message in the input method lexicon in response to the second sub-input of the at least one reply message to the fourth question message by the user, and associate the fourth question message with the at least one reply message to the fourth question message.
In some embodiments of the present application, when the reply message for replying to the fourth question message is a plurality of reply messages, the electronic device may splice the plurality of reply messages, and then store the spliced reply message and the fourth question message in association with the input method word stock.
Illustratively, the first sub-input includes a third sub-input and a fourth sub-input, and the electronic device may display the first storage control in response to the third sub-input of the fourth question message by the user, and then store the fourth question message in the input method thesaurus in response to the fourth sub-input of the first storage control by the user.
Illustratively, the second sub-input includes a fifth sub-input and a sixth sub-input, and the electronic device may display the second storage control in response to the fifth sub-input of the reply message to the fourth question message by the user, and then store at least one reply message to the fourth question message in the input method thesaurus in response to the sixth sub-input of the second storage control by the user.
Illustratively, the first storage control is configured to store the fourth problem message to the first file repository.
The second storage control is used for storing the fourth question message and at least one reply message for replying to the fourth question message to a second file repository.
For example, taking the user in the scenario 3 as a "small sheet", as shown in fig. 6A, the electronic device displays a session interface 41 of a chat session between the "small sheet" and the "small red", when the "small sheet" wants to store the problem message 42 in the session interface 41 and the reply message 43 corresponding to the problem message in the input method word stock in association, so that the electronic device can click on the problem message 42, that is, the third sub-input described above, so that the electronic device displays a "extract to matching library" control 44, that is, the first storage control described above, on the session interface 41, then as shown in fig. 6B, the "small sheet" can click on the "extract to matching library" control 44, that is, the fourth sub-input described above, so that the electronic device stores the problem message 42 in the first file library, as shown in fig. 6C, and the "small sheet" can click on the reply message 43 corresponding to the problem message 42, that is, so that the electronic device can display a "extract to the reply library" control 45, that the second sub-input corresponding to the problem message 43, that is, the second sub-input to the reply message 43, as shown in fig. 6D, and the electronic device can automatically click on the reply message corresponding to the second sub-input to the reply message 43.
In some embodiments of the present application, the electronic device may gray the second storage control before the electronic device receives the fourth sub-input of the user to the first storage control, and after the electronic device receives the fourth sub-input of the user to the first storage control, the electronic device may gray the first storage control and cancel the gray processing of the second storage control.
Therefore, the electronic equipment can store the question information selected by the user and the reply information corresponding to the question information into the input method word stock in an associated mode based on the input of the user, namely only the information focused by the user is stored, so that the flexibility of the electronic equipment for storing the historical chat information is improved, and compared with the storage of all the historical chat information in the chat session, the memory occupation of the electronic equipment is also saved.
In some embodiments of the present application, the electronic device may receive a user selection input of a fourth question message in the session interface, and store the fourth question message and at least one reply message that replies to the fourth question message in association with the input method lexicon.
For example, the electronic device may determine the reply message corresponding to the fourth question message by semantic recognition techniques.
For example, the electronic device may use a message sent by the user after the fourth problem message as a reply message corresponding to the fourth problem message.
In some embodiments of the present application, the electronic device may display an input method thesaurus page in a session interface of the chat session, where the input method thesaurus page includes a plurality of question messages and reply messages corresponding to the plurality of question messages, and one question message corresponds to one reply message.
For example, the electronic device may receive user input of a message input box in a conversation interface of a chat conversation, display an input keyboard page, then receive user input of an input method control in the input keyboard page, and display an input method thesaurus page in the conversation interface of the chat conversation.
For example, in connection with fig. 2B, as shown in fig. 7, when "sheetlet" wants to view stored historical chat messages, "sheetlet" may input, so that the electronic device displays an input method thesaurus page 51 in the session interface 11 of the chat session between "sheetlet" and "sheetlet", where the input method thesaurus page 51 includes a plurality of question messages and reply messages corresponding to the question messages, for example: question message 52 "who is the author of the xx book? "and reply message 53 corresponding to the question message" Zhang Sano ".
In some embodiments of the present application, the electronic device may receive user input of an edit control in the input method thesaurus page, and update the question message and the reply message displayed in the input method thesaurus page.
In some embodiments of the present application, as shown in fig. 8 in conjunction with fig. 1, the storage manner of the history chat message is input method word stock storage, and the step 202 may be specifically implemented by the following step 202 g.
Step 202g, a second question message with the same question content as the first question message exists in the first file library, and the second file library sends a reply message for replying to the second question message stored in the second file library to the first contact under the condition that the reply message for replying to the second question message is received by the electronic device.
It can be appreciated that, because each question message in the first file repository corresponds to at least one reply message, when the electronic device searches the first file repository for the second question message, the electronic device may send the reply message corresponding to the second question message in the second file repository to the first contact.
Therefore, after the second problem message is determined, the reply message corresponding to the second problem message in the second file library can be directly sent to the first contact, so that the reply waiting time of the first contact is reduced.
In some embodiments of the present application, after receiving the first question message sent by the first contact, the electronic device may receive a first input from the user, and then, in response to the first input, search the first file repository for a second question message that includes the same question content as the first question message.
The first input may be an input to a first control.
For example, the electronic device may receive user input to a conversation interface in which the first control described above is displayed or input to a first question message.
For example, as shown in fig. 9, when the electronic device receives the message 1 "sent by the" king "and starts selling the machine a", i.e. the first problem message, and displays the session interface 11 of the session between the "king" and the "king", the "king" may click on the "find match reply" control 61 in the session interface 11, i.e. the first control, so that the electronic device searches the "match library", i.e. the first file library, for the message containing the same problem content as the message 1, and then when the electronic device searches the message 2 "when the machine a containing the same problem content as the message 1 starts selling at the earliest", as shown in fig. 2B, the electronic device may market the "reply library", i.e. the reply message corresponding to the message 2 in the second file library, "1 month 2020, and market" to the king "in 2019, abroad.
In some embodiments of the present application, as shown in fig. 10 in conjunction with fig. 1, the above step 202 may be specifically implemented by the following step 202 h.
Step 202h, in the case that there are a second question message containing the same question content as the first question message and a reply message for replying to the second question message in the history chat message file, the history chat message mapping table or the input method lexicon, the electronic device sends the reply message to the first contact.
It may be appreciated that when the electronic device stores the chat message of at least one chat session as a history chat message file, if the electronic device receives a first question message sent by a first contact, the electronic device may search the history chat message file for a second question message containing the same question content as the first question message and a reply message for replying to the second question message, and then, when the electronic device searches the history chat message file for the second question message and the reply message for replying to the second question message, the electronic device may send the reply message to the first contact.
It can be appreciated that when the electronic device stores the chat message of at least one chat session as the historical chat message mapping table, if the electronic device receives the first question message sent by the first contact, the electronic device may search the historical chat message mapping table for a second question message containing the same question content as the first question message, and then, when the second question message is found in the historical chat message mapping table, the electronic device may obtain the message sending time of all reply messages of the second question message from the historical chat message mapping table, and then, based on the message sending time, obtain the reply message for replying to the second question message, and finally, the electronic device may send the reply message to the first contact.
It can be understood that when the electronic device stores the chat message of at least one chat session in the input method lexicon, if the electronic device receives the first question message sent by the first contact, the electronic device may search the input method lexicon for a second question message containing the same question content as the first question message and a reply message for replying to the second question message, and then, when the electronic device searches the input method lexicon for the second question message and the reply message for replying to the second question message, the electronic device may send the reply message to the first contact.
In this way, the electronic device can store the chat message of at least one chat session to different places, and then when the chat message of the first contact sent by the first contact is received, the second question message containing the same question content as the first question message and the reply message for replying to the second question message can be searched in the stored chat message of the at least one chat session, so that the flexibility and diversity of storing the chat message by the electronic device are improved.
In some embodiments of the present application, in the case that at least two question messages containing the same question content as the first question message and a reply message for replying to the at least two question messages are found in the historical chat messages, the above step 202 may be specifically implemented by the following step 202 i.
Step 202i, the electronic device sends a reply message to the first contact, which replies to the fifth question message.
In an embodiment of the present application, the fifth problem message is a problem message with a latest message sending time in at least two problem messages.
In some embodiments of the present application, the fifth question message may be a message sent before the first contact currently chatting with the user, or a message sent before other contacts.
It can be understood that when the electronic device searches the second problem message in the historical chat message, if at least two problem messages are found, the electronic device may compare the message sending time of the at least two problem messages, and then send a reply message corresponding to the second problem message with a later message sending time to the first contact.
For example: taking the user of scenario 2 as a "sheetlet", when the electronic device searches for the message 2 and the message 4 containing the same problem content as the message 1 in the historical chat message, if the message sending time of the message 2 is "2022, 12, 21, and the message sending time of the message 4 is" 2023, 5, 6, the electronic device may send a reply message corresponding to the message 2 with a late message sending time to the "sheetlet".
In some embodiments of the present application, the electronic device may send a reply message in the third set of messages to the first contact when the storage manner of the historical chat message is file storage and the third set of messages and the fourth set of messages each include the second problem message.
In some embodiments of the present application, the message sending time of the second problem message in the third set of messages is later than the message sending time of the second problem message in the fourth set of messages.
Therefore, as the replies of some problem messages are changed along with the change of time, when at least two problem messages are found, the electronic equipment sends the reply message corresponding to the second problem message with the latest message sending time to the first contact, so that the accuracy of the reply message sent by the electronic equipment can be improved.
In some embodiments of the present application, the "sending, by the electronic device, a reply message to the first contact" in the above step 202 may be specifically implemented by the following steps 202j to 202 l.
Step 202j, the electronic device displays a message window.
In the embodiment of the application, the message window comprises a reply message for replying to the second question message and a message sending control.
In some embodiments of the present application, the display position of the message window may be any one of the following: a session interface for a session between the user and the first contact, a desktop, an interface currently displayed by the electronic device, etc. The embodiment of the present application is not limited thereto.
Step 202k, the electronic device receives user selection input of a messaging control.
In some embodiments of the application, the selection input is used to send a reply message that answers the second question message.
In some embodiments of the application, the selection inputs include, but are not limited to: the user inputs through the touch of a touch device such as a finger or a stylus, or is a voice command input by the user, or is a specific gesture input by the user, or is a click input, or is other feasibility input. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
Step 202l, the electronic device responds to the selection input to send a reply message to the second question message displayed in the message window to the first contact.
For example, in conjunction with fig. 2A, as shown in fig. 11, when the electronic device finds that message 2 "when machine a was originally sold" containing the same problem content as message 1, the electronic device may display a message window 71 in the session interface 11, where the message window 71 includes a reply message "market in 1 in country 2020, market in 6 in 2019 abroad" corresponding to message 2, and a send control 72; the "sheetlet" may then click on the send control 72, as shown in FIG. 2B, causing the electronic device to send a reply message 72 to the "sheetlet".
Therefore, the electronic equipment can display the reply message corresponding to the searched second problem message, so that the user can trigger the electronic equipment to send the reply message to the first contact person when determining that the reply message is error-free, and the reliability of sending the reply message is improved.
In some embodiments of the present application, the "sending, by the electronic device, a reply message to the first contact" in step 202 may be specifically implemented by steps 401 to 406 described below.
Step 401, the electronic device displays a message window.
In an embodiment of the present application, the message window includes a reply message that replies to the second question message.
In some embodiments of the present application, the display position of the message window may be any one of the following: a session interface for a session between the user and the first contact, a desktop, an interface currently displayed by the electronic device, etc. The embodiment of the present application is not limited thereto.
Step 402, the electronic device receives user copy input of a message window.
In some embodiments of the application, the replication input is used to replicate reply messages in a message window.
In some embodiments of the application, the duplicate inputs include, but are not limited to: the user inputs through the touch of a touch device such as a finger or a stylus, or is a voice command input by the user, or is a specific gesture input by the user, or is a click input, or is other feasibility input. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
Step 403, the electronic device copies the reply message in the message window to the message input box in response to the copy input.
In some embodiments of the present application, the electronic device may receive user input of a copy control in the message window, copy the reply message in the message window to the message input box.
Step 404, the electronic device receives edit input of the message input box by the user.
In some embodiments of the application, the editing input is used to edit the reply message in the input box.
In some embodiments of the application, the editing inputs described above include, but are not limited to: the user inputs through the touch of a touch device such as a finger or a stylus, or is a voice command input by the user, or is a specific gesture input by the user, or is a click input, or is other feasibility input. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
Step 405, the electronic device updates the reply message in the message input box in response to the edit input.
In some embodiments of the application, the editing input includes at least one of: new message content, delete message content, adjust the order of message content.
Step 406, the electronic device sends the reply message in the updated message input box to the first contact.
For example, taking the user in the scenario 1 as a "sheetlet", when the reply message 3 corresponding to the message 2 is "marketed in 1 st of China in 2020, marketed in 6 th of China in 2019", and the electronic device displays the reply message 3 in the message window, "sheetlet" may click on the "copy" control in the message window, so that the electronic device copies the reply message in the message window into the message input box, then "sheetlet" may edit and modify the reply message in the message input box to "marketed in 2020 for 1 st of China, marketed in 2019 for 6 th of China", and finally click on the send control to send the modified reply message to "xiaowang".
Therefore, after the electronic device displays the reply message corresponding to the second problem message on the session interface, the user can edit the reply message corresponding to the second problem message and then send the edited reply message to the first contact, so that the flexibility of sending the reply message is improved.
In some embodiments of the present application, in the case that at least two question messages containing the same question content as the first question message and reply messages for replying to the at least two question messages are found in the historical chat messages, the message window includes all reply messages for replying to each question message of the at least two question messages; before the electronic device sends the reply message to the first contact in step 202, the message reply method provided by the embodiment of the present application further includes the following step 501.
Step 501, the electronic device receives a user selection input of at least one reply message in a message window.
In some embodiments of the application, the selection input is used to send a reply message to the first contact.
In some embodiments of the application, the selection inputs include, but are not limited to: the user inputs through the touch of a touch device such as a finger or a stylus, or is a voice command input by the user, or is a specific gesture input by the user, or is a click input, or is other feasibility input. The specific determination may be determined according to actual use requirements, which is not limited in the embodiment of the present application.
In some embodiments of the present application, the "sending, by the electronic device, a reply message to the first contact" in step 202 may be specifically implemented by step 501 described below.
Step 501, the electronic device responds to the selection input and transmits at least one reply message selected by the selection input to the first contact.
In some embodiments of the present application, the message window includes a send control and a copy control.
Illustratively, the message display area of each reply message in the message window displays a sending control and a copying control.
In some embodiments of the present application, the electronic device may receive user input of a send control within a message display area of any reply message in the message window, and send any reply message to the first contact.
For example, as shown in fig. 12 in conjunction with fig. 2A, when the electronic device finds that "when machine a starts to sell at the earliest" and when the time of sale of machine a is "when machine a is the time of sale of message 5" which contain the same problem content as message 1, the electronic device may display a message window 81 in the session interface 11, where the message window 81 includes a reply message 82 corresponding to message 2, "start to sell in 1 month in 2020 in home", start to sell in 2019 and a reply message 83 corresponding to message 5 "sell in 1 month in 2020 in home, sell in 2019, and sell in 6 months in foreign", then "small" may click on a send control in the display area where the reply message 83 is located, as shown in fig. 2B, so that the electronic device sends the reply message 83 to "small king".
In some embodiments of the present application, the electronic device may receive user input of a copy control within a message display area of any reply message in the message window, copy any reply message to the message input box, then the electronic device may receive user edit input of the reply message in the message input box, update the reply message in the message input box, and then send the updated reply message in the message input box to the first contact.
Therefore, when the electronic equipment searches at least two problem messages, the electronic equipment can display reply messages corresponding to the at least two problem messages in the message window, so that a user can select one reply message from the reply messages to send to the first contact person, and the flexibility of sending the reply messages by the electronic equipment is improved.
It should be noted that, in the message reply method provided by the embodiment of the present application, the execution body may be a message reply device. In the embodiment of the present application, a message reply device executes a message reply method as an example, which describes a message reply device provided in the embodiment of the present application.
Fig. 13 shows a schematic diagram of a possible structure of a message reply device according to an embodiment of the present application. As shown in fig. 13, the message reply device 70 may include: a receiving module 71 and a processing module 72.
The receiving module 71 is configured to receive a first question message sent by a first contact.
The processing module 72 is configured to send a reply message to the first contact if a second question message containing the same question content as the first question message and a reply message for replying to the second question message are found in the historical chat message.
The embodiment of the application provides a message replying device, which can automatically search a second problem message containing the same problem content with a first problem message in a history chat message after receiving the first problem message sent by a first contact, and can send the reply message to the first contact as a reply to the first problem message after searching the reply message corresponding to the second problem message and the second problem message, wherein the whole process can reply to the first problem message without manually browsing the history chat message by a user, thereby improving the efficiency of replying the message by the message replying device.
In one possible implementation, the processing module 72 is specifically configured to:
In the case that the reply message to the second question message is a reply message, sending a reply message to the first contact to reply to the second question message;
And under the condition that the reply message for replying the second question message is at least two reply messages and the storage mode of the history chat message is file storage, splicing the at least two reply messages to obtain a first spliced reply message, and sending the first spliced reply message to the first contact.
In one possible implementation, the processing module 72 is further configured to, before receiving the first question message sent by the first contact:
storing chat messages of at least one chat session as a history chat message file, wherein the history chat message is stored in a file storage mode, the history chat message file comprises at least one group of history chat messages, and each group of history chat messages comprises a question message and at least one reply message for replying to the question message;
Or storing chat messages of at least one chat session as a historical chat message mapping table, wherein the storage mode of the historical chat messages is mapping table storage, and the historical chat message mapping table comprises a mapping relation between each question message and message sending time of all reply messages for replying each question message;
or storing the chat message of at least one chat session to an input method word stock; the method comprises the steps of storing historical chat messages in an input method word stock, wherein the input method word stock comprises a first file stock and a second file stock, the first file stock is used for storing question messages, and the second file stock is used for storing reply messages for replying the question messages.
The processing module 72 is specifically configured to send a reply message to the first contact in the case of the second question message and the reply message answering the second question message in the history chat message file, the history chat message mapping table or the input method lexicon.
In a possible implementation manner, in a case that the chat message of the at least one chat session includes a third question message and at least two reply messages for answering the third question message, the processing module 72 is specifically configured to perform a stitching process on the at least two reply messages to obtain a second stitched reply message; and storing the third question message in association with the second splice reply message.
In one possible implementation, the storage mode of the historical chat messages is file storage, and at least one group of the historical chat messages comprises a first group of messages and a second group of messages; the first set of messages includes a question message and a reply message to answer the question message, and the second set of messages includes a question message and at least two reply messages to answer the question message;
The processing module 72 is specifically configured to:
in the case that the second question message is a question message in the first set of messages, sending a reply message in the first set of messages to the first contact;
and under the condition that the second problem message is a problem message in the second group of messages, respectively sending at least two reply messages in the second group of messages to the first contact person, or sending a message obtained by splicing at least two reply messages in the second group of messages to the first contact person.
In one possible implementation manner, the storage manner of the historical chat message is mapping table storage, and when the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message, the processing module 72 is specifically configured to obtain, when the second question message containing the same question content as the first question message exists in the historical chat message mapping table, the reply message for replying to the second question message according to the message sending time corresponding to the second question message stored in the historical chat message mapping table; and sends a reply message to the first contact that answers the second question message.
In one possible implementation manner, the message reply device 70 provided by the embodiment of the present application further includes: a display module; and the display module is used for displaying a session interface of the chat session. The receiving module 71 is further configured to receive a selection input from a user of the fourth question message and at least one reply message for replying to the fourth question message in the session interface displayed by the display module. The processing module 72 is specifically configured to store the fourth question message and at least one reply message that replies to the fourth question message in association to the input method word stock in response to the selection input received by the receiving module 71.
In one possible implementation, the storage manner of the historical chat message is input method word stock storage, and the processing module 72 is specifically configured to, when the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message, have the second question message with the same question content as the first question message in the first file stock, and the second file stock sends the reply message for replying to the second question message stored in the second file stock to the first contact in the case of replying to the second question message.
In one possible implementation, in the case that at least two question messages containing the same question content as the first question message and a reply message for replying to the at least two question messages are found in the historical chat messages, the processing module 72 is specifically configured to send a reply message for replying to the fifth question message to the first contact; the fifth question message is the question message with the latest message sending time in the at least two question messages.
In one possible implementation manner, the message reply device 70 provided by the embodiment of the present application further includes: a display module; and the display module is used for displaying a message window, and the message window comprises a reply message for replying to the second question message and a message sending control. A receiving module 71 for receiving user selection input of a messaging control. The processing module 72 is specifically configured to send a reply message to the second question message displayed in the message window to the first contact in response to the selection input received by the receiving module 71.
In one possible implementation manner, the message reply device 70 provided by the embodiment of the present application further includes: a display module; and the display module is used for displaying a message window, and the message window comprises a reply message for replying to the second question message. The receiving module 71 is further configured to receive a copy input of the message window displayed by the display module from a user. The processing module 72 is further configured to copy the reply message in the message window to the message input box in response to the copy input received by the receiving module 71. The receiving module 71 is further configured to receive edit input of the message input box by a user. A processing module 72, specifically configured to update the reply message in the message input box in response to the editing input received by the receiving module 71; and sends the reply message in the updated message input box to the first contact.
In one possible implementation, in a case that at least two question messages containing the same question content as the first question message and reply messages for replying to the at least two question messages are found in the historical chat messages, the message window includes all reply messages for replying to each question message in the at least two question messages; the receiving module 71 is further configured to receive a user selection input of at least one reply message in the message window before the processing module 72 sends the reply message to the first contact. The processing module 72 is specifically configured to send at least one reply message selected by the selection input to the first contact in response to the selection input received by the receiving module 71.
The message reply device in the embodiment of the application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. The electronic device may be a Mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile internet appliance (Mobile INTERNET DEVICE, MID), an augmented Reality (Augmented Reality, AR)/Virtual Reality (VR) device, a robot, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal digital assistant (Personal DIGITAL ASSISTANT, PDA), or may be a server, a network attached storage (Network Attached Storage, NAS), a Personal computer (Personal Computer, PC), a Television (TV), a teller machine, a self-service machine, or the like, which is not particularly limited in the embodiments of the present application.
The message reply device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The message reply device provided by the embodiment of the application can realize each process realized by the embodiment of the method, and in order to avoid repetition, the description is omitted.
Optionally, as shown in fig. 14, the embodiment of the present application further provides an electronic device 900, which includes a processor 901 and a memory 902, where a program or an instruction capable of being executed on the processor 901 is stored in the memory 902, and the program or the instruction when executed by the processor 901 implements each step of the embodiment of the method, and the steps can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 15 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, and processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 15 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in the drawings, or may combine some components, or may be arranged in different components, which will not be described in detail herein.
Wherein, the user input unit 107 is configured to receive a first question message sent by a first contact.
The processor 110 is configured to send a reply message to the first contact if a second question message containing the same question content as the first question message and a reply message for replying to the second question message are found in the historical chat message.
The embodiment of the application provides electronic equipment, which can automatically search a second problem message containing the same problem content as a first problem message in a history chat message after receiving the first problem message sent by a first contact, and can send the reply message to the first contact as a reply to the first problem message after searching the reply message corresponding to the second problem message and the second problem message, so that the whole process can reply to the first problem message without manually browsing the history chat message by a user, thereby improving the efficiency of replying the message by the electronic equipment.
In some embodiments of the application, the processor 110 is specifically configured to:
In the case that the reply message to the second question message is a reply message, sending a reply message to the first contact to reply to the second question message;
And under the condition that the reply message for replying the second question message is at least two reply messages and the storage mode of the history chat message is file storage, splicing the at least two reply messages to obtain a first spliced reply message, and sending the first spliced reply message to the first contact.
In some embodiments of the present application, the processor 110 is further configured to, prior to receiving the first question message sent by the first contact:
storing chat messages of at least one chat session as a history chat message file, wherein the history chat message is stored in a file storage mode, the history chat message file comprises at least one group of history chat messages, and each group of history chat messages comprises a question message and at least one reply message for replying to the question message;
Or storing chat messages of at least one chat session as a historical chat message mapping table, wherein the storage mode of the historical chat messages is mapping table storage, and the historical chat message mapping table comprises a mapping relation between each question message and message sending time of all reply messages for replying each question message;
or storing the chat message of at least one chat session to an input method word stock; the method comprises the steps of storing historical chat messages in an input method word stock, wherein the input method word stock comprises a first file stock and a second file stock, the first file stock is used for storing question messages, and the second file stock is used for storing reply messages for replying the question messages.
The processor 110 is specifically configured to send a reply message to the first contact in the case of the second question message and the reply message answering the second question message in the history chat message file, the history chat message mapping table or the input method lexicon.
In some embodiments of the present application, in the case that the chat message of at least one chat session includes a third question message and at least two reply messages for answering the third question message, the processor 110 is specifically configured to perform a concatenation process on the at least two reply messages to obtain a second concatenated reply message; and storing the third question message in association with the second splice reply message.
In some embodiments of the present application, the storage means of the historical chat messages is file storage, and at least one set of the historical chat messages includes a first set of messages and a second set of messages; the first set of messages includes a question message and a reply message to answer the question message, and the second set of messages includes a question message and at least two reply messages to answer the question message; the processor 110 is specifically configured to:
in the case that the second question message is a question message in the first set of messages, sending a reply message in the first set of messages to the first contact;
and under the condition that the second problem message is a problem message in the second group of messages, respectively sending at least two reply messages in the second group of messages to the first contact person, or sending a message obtained by splicing at least two reply messages in the second group of messages to the first contact person.
In some embodiments of the present application, the storage manner of the historical chat message is mapping table storage, and when the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message, the processor 110 is specifically configured to obtain, when the second question message containing the same question content as the first question message exists in the historical chat message mapping table, the reply message for replying to the second question message according to the message sending time corresponding to the second question message stored in the historical chat message mapping table; and sends a reply message to the first contact that answers the second question message.
In some embodiments of the present application, the display unit 106 is configured to display a session interface for a chat session.
The user input unit 107 is further configured to receive a selection input of a fourth question message and at least one reply message for replying to the fourth question message in the session interface displayed by the display unit 106 by a user.
The processor 110 is specifically configured to store the fourth question message and at least one reply message answering the fourth question message in association to the input method word stock in response to the selection input received by the user input unit 107.
In some embodiments of the present application, the storage manner of the historical chat message is input method word stock storage, and the processor 110 is specifically configured to send the reply message for replying to the second question message stored in the second file library to the first contact when the second question message having the same question content as the first question message exists in the first file library and the reply message for replying to the second question message exists in the first file library when the second question message having the same question content as the first question message is found in the historical chat message.
In some embodiments of the present application, the processor 110 is specifically configured to send a reply message for replying to the fifth question message to the first contact, where at least two question messages containing the same question content as the first question message and a reply message for replying to the at least two question messages are found in the historical chat message; the fifth question message is the question message with the latest message sending time in the at least two question messages.
In some embodiments of the present application, the display unit 106 is configured to display a message window, where the message window includes a reply message and a message sending control for replying to the second question message.
A user input unit 107 for receiving user selection input of a messaging control.
The processor 110 is specifically configured to send a reply message to the second question message displayed in the message window to the first contact in response to the selection input received by the user input unit 107.
In some embodiments of the present application, the display unit 106 is configured to display a message window, where the message window includes a reply message for replying to the second question message.
The user input unit 107 is further configured to receive a copy input of the message window displayed by the display unit 106 from a user.
The processor 110 is further configured to copy the reply message in the message window to the message input box in response to the copy input received by the user input unit 107.
The user input unit 107 is further configured to receive an edit input of the message input box by a user.
A processor 110, specifically configured to update the reply message in the message input box in response to the editing input received by the user input unit 107; and sends the reply message in the updated message input box to the first contact.
In some embodiments of the present application, in the case that at least two question messages containing the same question content as the first question message and reply messages for replying to the at least two question messages are found in the historical chat messages, the message window includes all reply messages for replying to each question message of the at least two question messages; the user input unit 107 is further configured to receive a user selection input of at least one reply message in the message window before the processor 110 sends the reply message to the first contact.
The processor 110 is specifically configured to send at least one reply message selected by the selection input to the first contact in response to the selection input received by the user input unit 107.
The electronic device provided by the embodiment of the application can realize each process realized by the embodiment of the method and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
The beneficial effects of the various implementation manners in this embodiment may be specifically referred to the beneficial effects of the corresponding implementation manners in the foregoing method embodiment, and in order to avoid repetition, the description is omitted here.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes at least one of a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
Memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 109 may include volatile memory or nonvolatile memory, or the memory 109 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static random access memory (STATIC RAM, SRAM), dynamic random access memory (DYNAMIC RAM, DRAM), synchronous Dynamic Random Access Memory (SDRAM), double data rate Synchronous dynamic random access memory (Double DATA RATE SDRAM, DDRSDRAM), enhanced Synchronous dynamic random access memory (ENHANCED SDRAM, ESDRAM), synchronous link dynamic random access memory (SYNCH LINK DRAM, SLDRAM), and Direct random access memory (DRRAM). Memory 109 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, etc., and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the embodiment of the method, and can achieve the same technical effects, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program/program product stored in a storage medium, where the program/program product is executed by at least one processor to implement the respective processes of the above method embodiments, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (25)

1. A method of message reply, the method comprising:
Receiving a first question message sent by a first contact;
And sending the reply message to the first contact under the condition that a second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message.
2. The method of claim 1, wherein the sending the reply message to the first contact comprises:
transmitting a reply message to the first contact in response to the second question message, in the case that the reply message to the second question message is a reply message;
and under the condition that the reply message for replying the second question message is at least two reply messages and the storage mode of the history chat message is file storage, splicing the at least two reply messages to obtain a first spliced reply message, and sending the first spliced reply message to the first contact.
3. The method of claim 1, wherein prior to receiving the first question message sent by the first contact, the method further comprises:
Storing chat messages of at least one chat session as a history chat message file, wherein the storage mode of the history chat messages is file storage, the history chat message file comprises at least one group of history chat messages, and each group of history chat messages comprises a question message and at least one reply message for replying to the question message;
or storing chat messages of at least one chat session as a historical chat message mapping table, wherein the storage mode of the historical chat messages is mapping table storage, and the historical chat message mapping table comprises a mapping relation between each question message and message sending time of all reply messages for replying each question message;
Or storing the chat message of at least one chat session to an input method word stock; the storage mode of the historical chat message is input method word stock storage, the input method word stock comprises a first file stock and a second file stock, the first file stock is used for storing a question message, and the second file stock is used for storing a reply message for replying the question message;
and in the case that a second question message containing the same question content as the first question message and a reply message for replying to the second question message are found in the historical chat message, sending the reply message to the first contact includes:
and sending the reply message to the first contact under the condition that a second question message containing the same question content as the first question message and the reply message for replying to the second question message exist in the history chat message file, the history chat message mapping table or the input method word stock.
4. The method of claim 3, wherein in the event that a third question message and at least two reply messages to answer the third question message are included in the chat messages of the at least one chat session, the storing the chat messages of the at least one chat session as a historical chat message file comprises:
splicing the at least two reply messages to obtain a second spliced reply message;
And storing the third question message and the second spliced reply message in an associated mode.
5. A method according to claim 3, wherein the historical chat messages are stored in a file store, and wherein the at least one set of historical chat messages includes a first set of messages and a second set of messages; the first set of messages includes a question message and a reply message to answer the question message, and the second set of messages includes a question message and at least two reply messages to answer the question message;
the sending the reply message to the first contact includes:
Sending a reply message in the first set of messages to the first contact if the second question message is a question message in the first set of messages;
And under the condition that the second problem message is a problem message in the second group of messages, respectively sending at least two reply messages in the second group of messages to the first contact person, or sending a message obtained by splicing at least two reply messages in the second group of messages to the first contact person.
6. The method according to claim 3, wherein the storage mode of the historical chat message is a mapping table storage, and the sending the reply message to the first contact when the second question message containing the same question content as the first question message and the reply message replying to the second question message are found in the historical chat message includes:
Under the condition that a second question message with the same question content as the first question message exists in the historical chat message mapping table, acquiring a reply message for replying to the second question message according to the message sending time corresponding to the second question message stored in the historical chat message mapping table;
And sending the reply message for replying to the second question message to the first contact.
7. The method of claim 3, wherein storing chat messages for at least one chat session to the input method thesaurus comprises:
Displaying a session interface of a chat session;
Receiving a selection input of a user for a fourth question message and at least one reply message for replying to the fourth question message in the session interface;
And in response to the selection input, storing the fourth question message and at least one reply message for replying to the fourth question message in association to an input method word stock.
8. The method according to claim 3, wherein the storage mode of the historical chat message is input method word stock storage, and the sending the reply message to the first contact when the second question message containing the same question content as the first question message and the reply message replying to the second question message are found in the historical chat message includes:
And if a second question message with the same question content as the first question message exists in the first file library, sending a reply message which is stored in the second file library and is used for replying to the second question message to the first contact under the condition that the reply message which is used for replying to the second question message exists in the first file library.
9. The method of claim 1, wherein in the case where at least two question messages containing the same question content as the first question message and a reply message replying to the at least two question messages are found in the historical chat messages, the sending the reply message to the first contact comprises:
Sending a reply message to the first contact that answers the fifth question message;
wherein the fifth question message is a question message with the latest message sending time in the at least two question messages.
10. The method of claim 1, wherein the sending the reply message to the first contact comprises:
displaying a message window, wherein the message window comprises a reply message for replying to the second question message and a message sending control;
Receiving a selection input of a user to the message sending control;
And responding to the selection input, and sending a reply message which is displayed in the message window and is used for replying to the second question message to the first contact.
11. The method of claim 1, wherein the sending the reply message to the first contact comprises:
Displaying a message window, wherein the message window comprises a reply message for replying to the second question message;
receiving copy input of a user to the message window;
copying the reply message in the message window to a message input box in response to the copy input;
receiving edit input of a user to the message input box;
Updating a reply message in the message input box in response to the edit input;
And sending the updated reply message in the message input box to the first contact.
12. The method of claim 11, wherein the message window includes all reply messages of the at least two question messages that reply to each question message in the case that at least two question messages containing the same question content as the first question message and reply messages of the at least two question messages are found in the historical chat messages;
before the sending the reply message to the first contact, the method further includes:
Receiving a selection input of a user for at least one reply message in the message window;
the sending the reply message to the first contact includes:
And responding to the selection input, and sending the at least one reply message selected by the selection input to the first contact.
13. A message reply device, the device comprising:
The receiving module is used for receiving a first problem message sent by a first contact person;
And the processing module is used for sending the reply message to the first contact person under the condition that the second question message containing the same question content as the first question message and the reply message for replying to the second question message are found in the historical chat message.
14. The apparatus according to claim 13, wherein the processing module is specifically configured to:
transmitting a reply message to the first contact in response to the second question message, in the case that the reply message to the second question message is a reply message;
and under the condition that the reply message for replying the second question message is at least two reply messages and the storage mode of the history chat message is file storage, splicing the at least two reply messages to obtain a first spliced reply message, and sending the first spliced reply message to the first contact.
15. The apparatus of claim 13, wherein the processing module is further configured to, prior to receiving the first question message sent by the first contact:
Storing chat messages of at least one chat session as a history chat message file, wherein the storage mode of the history chat messages is file storage, the history chat message file comprises at least one group of history chat messages, and each group of history chat messages comprises a question message and at least one reply message for replying to the question message;
Or storing chat messages for at least one chat session as a historical chat message map, wherein,
The storage mode of the historical chat messages is mapping table storage, and the historical chat message mapping table comprises mapping relations between message sending time of each question message and all reply messages for replying each question message;
Or storing the chat message of at least one chat session to an input method word stock; the storage mode of the historical chat message is input method word stock storage, the input method word stock comprises a first file stock and a second file stock, the first file stock is used for storing a question message, and the second file stock is used for storing a reply message for replying the question message;
The processing module is specifically configured to send a reply message to the first contact under the condition that a second question message in the history chat message file, the history chat message mapping table or the input method word stock and the reply message answer the second question message.
16. The apparatus according to claim 15, wherein in the case that the chat message of the at least one chat session includes a third question message and at least two reply messages that answer the third question message, the processing module is specifically configured to perform a concatenation process on the at least two reply messages to obtain a second concatenated reply message; and storing the third question message in association with the second splice reply message.
17. The apparatus of claim 15, wherein the historical chat messages are stored as file stores, and wherein the at least one set of historical chat messages includes a first set of messages and a second set of messages; the first set of messages includes a question message and a reply message to answer the question message, and the second set of messages includes a question message and at least two reply messages to answer the question message;
The processing module is specifically configured to:
Sending a reply message in the first set of messages to the first contact if the second question message is a question message in the first set of messages;
And under the condition that the second problem message is a problem message in the second group of messages, respectively sending at least two reply messages in the second group of messages to the first contact person, or sending a message obtained by splicing at least two reply messages in the second group of messages to the first contact person.
18. The apparatus of claim 15, wherein the storage manner of the historical chat message is mapping table storage, and the processing module is specifically configured to obtain, when a second question message with the same question content as the first question message exists in the historical chat message mapping table and a second question message with the same question content as the first question message exists in the historical chat message mapping table, a reply message for replying to the second question message according to a message sending time corresponding to the second question message stored in the historical chat message mapping table; and sending a reply message to the first contact that answers the second question message.
19. The apparatus of claim 15, wherein the apparatus further comprises:
The display module is used for displaying a session interface of a chat session;
the receiving module is further used for receiving selection input of a user on a fourth question message and at least one reply message for replying to the fourth question message in the session interface displayed by the display module;
The processing module is specifically configured to store, in association with the fourth question message and at least one reply message that replies to the fourth question message, to an input method lexicon in response to the selection input received by the receiving module.
20. The device according to claim 15, wherein the storage mode of the historical chat message is input method word stock storage, and the processing module is specifically configured to, when a second question message containing the same question content as the first question message and a reply message for replying to the second question message are found in the historical chat message, store the second question message having the same question content as the first question message in the first file stock, and send the reply message for replying to the second question message stored in the second file stock to the first contact in the case of replying to the second question message.
21. The apparatus according to claim 13, wherein the processing module is configured to send a reply message to the fifth question message to the first contact in case at least two question messages containing the same question content as the first question message and a reply message to answer the at least two question messages are found in the historical chat messages;
wherein the fifth question message is a question message with the latest message sending time in the at least two question messages.
22. The apparatus of claim 13, wherein the apparatus further comprises:
The display module is used for displaying a message window, and the message window comprises a reply message for replying the second question message and a message sending control;
The receiving module is used for receiving the selection input of the message sending control by a user;
The processing module is specifically configured to send, to the first contact, a reply message displayed in the message window and answering the second question message, in response to the selection input received by the receiving module.
23. The apparatus of claim 13, wherein the apparatus further comprises:
The display module is used for displaying a message window, and the message window comprises a reply message for replying to the second question message;
the receiving module is also used for receiving copy input of the user to the message window displayed by the display module;
The processing module is further configured to copy the reply message in the message window to a message input box in response to the copy input received by the receiving module;
the receiving module is also used for receiving the edit input of the message input box by a user;
The processing module is specifically configured to update a reply message in the message input box in response to the editing input received by the receiving module; and sending a reply message in the updated message input box to the first contact.
24. The apparatus of claim 23, wherein the message window includes all reply messages of the at least two question messages that reply to each question message in the case that at least two question messages containing the same question content as the first question message and reply messages of the at least two question messages are found in the historical chat messages;
The receiving module is further configured to receive a selection input of a user to at least one reply message in the message window before the processing module sends the reply message to the first contact;
The processing module is specifically configured to send the at least one reply message selected by the selection input to the first contact in response to the selection input received by the receiving module.
25. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the message reply method of any one of claims 1 to 12.
CN202410493633.4A 2024-04-23 2024-04-23 Message reply method and device and electronic equipment Pending CN118337744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410493633.4A CN118337744A (en) 2024-04-23 2024-04-23 Message reply method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410493633.4A CN118337744A (en) 2024-04-23 2024-04-23 Message reply method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN118337744A true CN118337744A (en) 2024-07-12

Family

ID=91763938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410493633.4A Pending CN118337744A (en) 2024-04-23 2024-04-23 Message reply method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN118337744A (en)

Similar Documents

Publication Publication Date Title
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
CN114374663B (en) Message processing method and message processing device
CN111897475A (en) Message viewing method and device
WO2024140453A1 (en) Information processing method and apparatus, and electronic device and readable storage medium
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN114153362A (en) Information processing method and device
WO2024041510A1 (en) Contact determination method and apparatus, and electronic device and medium
CN115412634B (en) Message display method and device
CN114928585B (en) Message processing method, device, electronic equipment and readable storage medium
CN112416143B (en) Text information editing method and device and electronic equipment
CN118337744A (en) Message reply method and device and electronic equipment
CN113138702B (en) Information processing method, device, electronic equipment and storage medium
CN113839789A (en) Information sending method and device
CN111694999A (en) Information processing method and device and electronic equipment
CN115242739B (en) Information processing method and device and electronic equipment
WO2024160133A1 (en) Image generation method and apparatus, electronic device, and storage medium
CN114401240B (en) Message processing method and device
CN114124869A (en) Information processing method and device, information display method and device, and electronic device
CN117492627A (en) Information processing method, device and equipment
CN116471251A (en) Session message processing method and device and electronic equipment
CN117880234A (en) Session message processing method, apparatus, electronic device and readable storage medium
CN114860127A (en) Information transmission method and information transmission device
CN115457957A (en) Voice information display method and device
CN118368264A (en) Message reply method and device, electronic equipment and readable storage medium
CN118295738A (en) Program control method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination