CN111934989A - Session message processing method and device - Google Patents

Session message processing method and device Download PDF

Info

Publication number
CN111934989A
CN111934989A CN202010958150.9A CN202010958150A CN111934989A CN 111934989 A CN111934989 A CN 111934989A CN 202010958150 A CN202010958150 A CN 202010958150A CN 111934989 A CN111934989 A CN 111934989A
Authority
CN
China
Prior art keywords
message
session
reply
session message
control
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
CN202010958150.9A
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.)
Shengwei Times Technology Group Co ltd
Original Assignee
Shengwei Times Technology Group 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 Shengwei Times Technology Group Co ltd filed Critical Shengwei Times Technology Group Co ltd
Priority to CN202010958150.9A priority Critical patent/CN111934989A/en
Publication of CN111934989A publication Critical patent/CN111934989A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/063Content adaptation, e.g. replacement of unsuitable content
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a method and a device for processing a session message. In the process of processing the session message, receiving the session message and packaging the session message into a message body. The message body comprises a reply control and a reply display area, the reply control carries out reply on the session message, the reply control comprises a shortcut control, the session message can be quickly replied through the reply control, and compared with a mode of replying through input characters, the time is saved. Meanwhile, the reply content and the conversation message to be replied can be displayed in the message body in a correlation manner, so that the continuity of information transmission is increased, and the user does not need to search the reply content replied to the conversation message in the chat record. Based on the shortcut control provided by the message body and the associated display of the session message and the reply content through the message body, unnecessary time cost in the chat process of the user can be saved, and the communication efficiency is improved.

Description

Session message processing method and device
Technical Field
The present invention relates to the field of instant messaging technologies, and in particular, to a method and an apparatus for processing a session message.
Background
In the field of internet technology, the use of instant messaging software for communication is becoming more and more important in people's work and life. People can communicate information between two or more people through instant messaging software, and the communication between people is more convenient by means of characters, voice, videos and the like.
In the prior art, the existing message display mode always cannot enable people to quickly and accurately check and reply messages. For example, a member a sends a message in a group, and needs another member B in the group to reply, and after seeing the message displayed by the terminal, the member B needs to open a chat window, open a message editing window, edit a sentence to be replied, and click to send, thereby completing the reply process of the message. If the group members are more, the reply message sent by the member B is separated from the message of the member A by more chat messages of other members, so that the member A needs to turn over the chat records in the group up and down to find the reply message of the member B.
Therefore, the purpose of fast reply required in daily communication of people cannot be met only by the existing message reply method and display method, and the reply message cannot be fast determined as to which message content to be replied is replied, so that information transmission is discontinuous, and communication efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a conversation message processing method and a conversation message processing device, which are used for solving the problems that the purpose of quick response required in daily communication of people cannot be met only by the conventional message response method and display method, and the problem that the information transmission is discontinuous and the communication efficiency is reduced because the response message is responded to which message content to be responded cannot be quickly determined.
In view of the foregoing technical problems, in a first aspect, an embodiment of the present invention provides a method for processing a session message, including:
receiving a session message, packaging the session message into a message body, and displaying the message body;
the message body comprises the session message, a reply control for replying the session message and a reply display area; the reply display area is used for displaying reply content for replying the session message;
the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
Wherein before encapsulating the session message into a message body, the method includes:
generating an encapsulation template for encapsulating the session message into a message body;
each packaging template comprises a session display area for displaying session messages, a reply control and a reply display area, and the reply control further comprises at least one of the following controls: the control comprises a control for providing a voice input function, a control for providing a text input function, a control for carrying out voice call, a control for carrying out video call and a control for supporting a voting function.
Wherein said encapsulating the session message into a message body comprises:
selecting a target packaging template from the packaging templates according to the message content and/or the set rule of the session message;
packaging the session message into the message body through the target packaging template;
wherein, the message content includes at least one of the following contents: the method comprises the steps of obtaining content to be replied through sentences, content to be replied through expressions, content to be replied through voice calls, content to be replied through video calls and content to be voted;
the setting rule is determined according to the proportion of the number of reply users marked in the session message and waiting to reply to the session message to the total number of users in the session group; wherein the session group is a group which sends out the session message.
Wherein, the selecting a target package template from the package templates according to the message content of the session message and the setting rule includes:
selecting at least one encapsulation template suitable for replying the message content of the session message from the encapsulation templates as an encapsulation template to be selected;
selecting the target encapsulation template from the encapsulation templates to be selected according to the proportion of the number of the marked reply users to the total number of the users in the session group; wherein the session group is a group which sends out the session message.
Wherein, after encapsulating the session message into a message body, the method further comprises:
judging whether the message body is independently displayed or not according to a preset display rule and/or whether the session message is independently displayed or not, and if so, adding an independent display mark in the message body; the display rule is determined according to the message content of the session message;
wherein the independent display is such that the message body is displayed at a set position in a chat interface displayed by a conversation group; the session group is a group which sends out the session message.
Wherein, after encapsulating the session message into a message body, the method further comprises:
and if the reply content replied through the reply control in the message body is received, displaying the reply content and/or information of a reply user replying the reply content in the reply display area.
Wherein, the obtaining the session message and packaging the session message into a message body comprises:
acquiring a session message, and if the session message carries an encapsulation mark, encapsulating the session message into a message body; wherein the packaging mark comprises at least one of the following: the conversation message processing method comprises the steps of presetting characters and a preset sentence for indicating encapsulation of the conversation message.
In a second aspect, the present embodiment provides a session message processing apparatus, including:
the encapsulation module is used for acquiring the session message and encapsulating the session message into a message body;
the message body comprises the session message, a reply control for replying the session message and a reply display area; the reply display area is used for displaying reply content for replying the session message;
the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
In a third aspect, the present embodiment provides a method for processing a session message, which is applied to a server, and includes:
after receiving a session message sent by a terminal, executing the session message processing method to package the session message into a message body;
sending the message body to a session group according to a terminal corresponding to a user in the session group so as to display the message body in the session group; wherein the session group is a group which sends out the session message.
In a fourth aspect, this embodiment provides a method for processing a session message, which is applicable to a terminal, and includes:
after receiving a session message sent by a server, executing the session message processing method to encapsulate the session message into a message body, and displaying the message body in a session group; wherein the session group is a group which sends out the session message.
The embodiment of the invention provides a method and a device for processing a session message. In the process of processing the session message, receiving the session message and packaging the session message into a message body. The message body comprises a reply control and a reply display area, the reply control carries out reply on the session message, the reply control comprises a shortcut control, the session message can be quickly replied through the reply control, and compared with a mode of replying through input characters, the time is saved. Meanwhile, the reply content and the conversation message to be replied can be displayed in the message body in a correlation manner, so that the continuity of information transmission is increased, and the user does not need to search the reply content replied to the conversation message in the chat record. Based on the shortcut control provided by the message body and the associated display of the session message and the reply content through the message body, unnecessary time cost in the chat process of the user can be saved, and the communication efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a session message processing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a display of a message body and a message in a conversation group according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a session message processing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment provides a session message processing method. For example, when the server processes the session message, after receiving the session message sent by the terminal, by executing the session message processing method provided by the embodiment of the present invention, the session message is encapsulated into a message body, and then sent to the terminal, and is replied by other users through the terminal. When the terminal processes the session message, the terminal executes the session message processing method provided by the embodiment of the invention according to the content of the session message received from the server, and the session message is directly displayed on the terminal after being packaged into a message body. The session message processing method may be applied to a single session of two members or a group session with a plurality of members, which is not limited in this embodiment.
Fig. 1 is a schematic flow chart of a session message processing method provided in this embodiment. Referring to fig. 1, the session message processing method includes:
step 101: and acquiring the session message, and packaging the session message into a message body. The message body comprises the session message, a reply control for replying the session message and a reply display area; the reply display area is used for displaying reply content for replying the session message; the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
The conversation message may be a message containing a sentence, an emoticon, voice, video, or content that requires voting, a message sent by a user in the conversation group, or a message sent by one user to another user. For example, the session message may be a notification to reply or a question to reply.
The message body simultaneously provides a reply control and a reply display area for replying the session message, and the reply control comprises a shortcut control. After the message body is displayed, on one hand, the session message can be quickly replied through the quick control provided in the message body, for example, a certain set statement or a certain expression can be replied to the session message only by triggering the quick control. The conversation message can be replied through the shortcut control without a complicated character input process. On the other hand, the reply content for replying the session message is displayed in the reply display area, and the reply content for replying the session message can be conveniently found through the reply display area without searching the reply content for replying the session message from the chat records of the session group. Therefore, the embodiment provides a way for quickly replying the session message through the quick control in the message body, and simultaneously, the session message and the reply content are displayed in an associated manner through the reply display area in the message body, so that the continuity of information transmission is increased, and the communication efficiency is improved.
It should be noted that, in the message body, the positions of the session message, the reply control, and the reply display area may be set as needed, for example, the reply display area is disposed below the session message, and the reply control is disposed below the reply display area.
For the shortcut control, the content of the set sentence may be a sentence required by a preset fit scene, for example, the set sentence is "good, i pick up an order", "wait for a while, i call you back" or the like. The expressions provided by the shortcut control can also be preset, for example, several commonly used expressions are set as the expressions provided by the shortcut control.
It can be understood that, in the embodiment, when the server is taken as the execution subject, the server encapsulates the session message sent by the terminal into the message body, and sends the message body to the terminal, and the message body is displayed by the terminal. When the terminal is taken as an execution subject, the terminal sends the session message input by the user to the server, the server sends the session message to the terminals of all users in the session group, and after the terminal receives the session message sent by the server, the session message is packaged into a message body and then displayed.
The embodiment of the invention provides a method and a device for processing a session message. The message body comprises a reply control and a reply display area, the reply control carries out reply on the session message, the reply control comprises a shortcut control, the session message can be quickly replied through the reply control, and compared with a mode of replying through input characters, the time is saved. Meanwhile, the reply content and the conversation message to be replied can be displayed in the message body in a correlation manner, so that the continuity of information transmission is increased, and the user does not need to search the reply content replied to the conversation message in the chat record. Based on the shortcut control provided by the message body and the associated display of the session message and the reply content through the message body, unnecessary time cost in the chat process of the user can be saved, and the communication efficiency is improved.
The process of encapsulating the session message into a message body is described as follows: further, on the basis of the foregoing embodiment, before encapsulating the session message into a message body, the method includes:
generating an encapsulation template for encapsulating the session message into a message body;
each packaging template comprises a session display area for displaying session messages, a reply control and a reply display area, and the reply control further comprises at least one of the following controls: the control comprises a control for providing a voice input function, a control for providing a text input function, a control for carrying out voice call, a control for carrying out video call and a control for supporting a voting function.
The package template is preset with a shortcut control included in the reply control and a non-shortcut control included in the reply control (for example, the shortcut control included in the reply control is set as a control for providing at least one expression, and the non-shortcut control is a control for providing a voice input function). The encapsulation template may also preset the positions of the session message, each reply control, and the reply display area in the message body, and may also preset a format in which reply content that replies to the session message is displayed in the reply display area (for example, a format in which "the same replied emoticon starts with" the same replied emoticon, and a user name that replies to the same emoticon is displayed immediately after the same emoticon "is used for displaying the reply content for replying the reply content).
There are differences between each packaging template, for example, there are differences in the set reply control, in the set session message, in the positions of each reply control and the reply display area in the message body, or in the format in which the set reply content is displayed in the reply display area.
After the message body is displayed through the terminal, the user can reply at least one of voice, characters, expressions, voice calls, video calls or votes to the conversation message by clicking the reply control.
It is understood that, in the present embodiment, when the server is taken as the execution subject, the encapsulation template is generated and stored by the server, so that after the session message is received, the session message is encapsulated by the encapsulation template. When the terminal is taken as an execution subject, an encapsulation template is generated and stored by the terminal, so that the session message is encapsulated through the encapsulation template after the session message is received.
In this embodiment, a process of generating at least one encapsulation template before encapsulating the session message into a message body is provided. Through the process, the encapsulation template can be directly called to encapsulate the session message, so that the processing time of the server or the terminal on the session message is reduced, the processing speed is improved, and meanwhile, the communication efficiency among session members can also be increased.
Further, on the basis of the foregoing embodiments, the encapsulating the session message into a message body includes:
selecting a target packaging template from the packaging templates according to the message content and/or the set rule of the session message;
packaging the session message into the message body through the target packaging template;
wherein, the message content includes at least one of the following contents: the method comprises the steps of obtaining content to be replied through sentences, content to be replied through expressions, content to be replied through voice calls, content to be replied through video calls and content to be voted;
the setting rule is determined according to the proportion of the number of reply users marked in the session message and waiting to reply to the session message to the total number of users in the session group; wherein the session group is a group which sends out the session message.
When the target encapsulation template is selected, the selection may be performed only according to the message content of the session message, for example, if the message content of the session message includes "vote", it indicates that the reply message is the content to be voted, and an encapsulation template whose reply control includes a "control supporting a voting function" may be selected from the encapsulation template as the target encapsulation template. For example, if the session message includes "notify", the session message is a notification message, which may be a content to be replied by emotions (indicating "OK" or "received" emotions), and then an encapsulation template including a "control providing at least one emotion" in the reply control may be selected from the encapsulation templates as the target encapsulation template.
When the target encapsulation template is selected, the target encapsulation template can be selected only according to the set rule. For example, the rule is set as: when the proportion of the number of reply users marked in the session message and waiting for replying to the session message to the total number of users in the session group is 1/N, a certain first encapsulation template appointed in advance from the encapsulation templates is selected as a target encapsulation template. When the ratio is 1, a second package template previously designated from the package templates is selected as a target package template. When the above ratio is not 1/N and not 1, a third package template previously designated from the package templates is selected as the target package template. Wherein N is the total number of users in the session group.
When the target encapsulation template is selected, the target encapsulation template can be selected according to the message content of the session message and the set rule. Specifically, some package templates to be selected may be selected according to the message content, and then the target package template may be selected from the package templates to be selected according to the preset rule.
In the embodiment, the selection of the encapsulation template is realized through the message content and/or the set rule, so that the message content can be selected and used in time after the session message is received, and the session message is encapsulated by the encapsulation template which accords with the set rule.
Further, on the basis of the foregoing embodiments, the selecting a target encapsulation template from the encapsulation templates according to the message content of the session message and the setting rule includes:
selecting at least one encapsulation template suitable for replying the message content of the session message from the encapsulation templates as an encapsulation template to be selected;
selecting the target encapsulation template from the encapsulation templates to be selected according to the proportion of the number of the marked reply users to the total number of the users in the session group; wherein the session group is a group which sends out the session message.
For example, if the session message is set as content that can be replied by voice, and the session message belongs to "content to be replied by voice call", a package template including a "control providing a voice input function" in the reply control may be selected as the package template to be selected. And if the proportion of the number of reply users marked in the session message and waiting to reply to the session message to the total number of the users in the session group is 1/N, selecting a specified first encapsulation template from the encapsulation templates to be selected as a target encapsulation template.
The conversation message may mark the replying user to reply to the conversation message by a marking information, which may be a set character, for example, the character of "@". The reply user may be marked by "@ user a", "@ user B", "@ all people", and the like.
It can be understood that, in the present embodiment, when the server is taken as the execution subject, the server selects the target encapsulation template from the encapsulation templates according to the message content and/or the setting rule, and encapsulates the session message through the target encapsulation template. When the terminal is taken as an execution subject, the terminal selects a target packaging template from the packaging templates according to the message content and/or the set rule, and the session message is packaged through the target packaging template.
In this embodiment, the target encapsulation template is selected from the encapsulation templates according to the message content of the session message and the setting rule, so that the encapsulation template is selected, the session message is encapsulated based on the selected target encapsulation template, the reply content and the session message to be replied are displayed in association through the message body, a quick reply control is provided, and the communication efficiency is improved.
Further, on the basis of the foregoing embodiments, after encapsulating the session message into a message body, the method further includes:
judging whether the message body is independently displayed or not according to a preset display rule and/or whether the session message is independently displayed or not, and if so, adding an independent display mark in the message body; the display rule is determined according to the message content of the session message;
wherein the independent display is such that the message body is displayed at a set position in a chat interface displayed by a conversation group; the session group is a group which sends out the session message.
When the message body is independently displayed by the terminal, the message body may be displayed at a set position in the displayed chat interface through a pop-up window. The setting position may be set as needed, for example, the setting position may be set above the displayed chat interface (i.e., top-displayed in the displayed chat interface), or the setting position may be set below the displayed chat interface, which is not limited in this embodiment.
For example, the display rule may be set to display the message body independently when the message content of the conversation message is the content to be voted. And if the message content of the session message is the content to be voted, adding an independent display mark in the message body, otherwise, not processing the message body. And when the session message is set to be independently displayed, adding an independent display mark in the message body, otherwise, not processing the message body.
In this embodiment, when the server is used as the execution subject, a display rule may be preset in the server in advance, and after the server encapsulates the session message into a message body, an independent display flag is added to the message body according to the set display rule (or independent display flags are added to all the message bodies if all the session messages are independently displayed by the server setting). And after the terminal receives the message body, if the independent display mark is added in the message body, independently displaying the message body through the popup window.
When the terminal is taken as an execution main body, a display rule may be preset in the terminal in advance, and after the terminal encapsulates the session message into a message body, an independent display mark is added to the message body according to the set display rule (or all session messages are independently displayed through terminal setting, or whether the message body is independently displayed through terminal setting by a user). When the terminal displays the message body, if the independent display mark is added in the message body, the message body is independently displayed through the popup window.
Further, the method can also comprise the following steps: setting independent display duration for independently displaying the message body, so that when the terminal independently displays the message body, if the duration for independently displaying the message body reaches the independent display duration, the message body is displayed in the session group;
and/or setting an independent display ending condition for independently displaying the message body, so that when the terminal independently displays the message body, if the display ending condition is met, the message body is displayed in the conversation group; wherein the display deadline condition includes that all marked replying users to reply to the conversation message.
In the embodiment, the message body is independently displayed and marked by the display rule and/or whether the session message is independently displayed or not, so that the terminal independently displays the message body, the independently displayed message body is fixed at a certain position of a screen and is not refreshed along with the message in a chat window, the content of the message body can be constantly displayed at a fixed position, the chat record does not need to be browsed to search the message body, the time in the chat process is further saved, and the communication efficiency is improved.
Several examples of independent displays are provided below:
in the car sharing service, a user A establishes a car sharing conversation group, after the user B and the user C join the group, the user B wants to change the departure time of the car sharing, then a message with voting decision whether to change the departure time is sent in the conversation group, at the moment, the server pushes the packaged message body to the terminal of the user A, B, C and sets the top for display (when the set position in the independent display is the top of the displayed chat interface, the top is displayed), and the user A and the user C reply according to the 'consent' and 'denial' shortcut controls displayed in the message body. If the user A and the user C all select 'agree', the server sends the voting result of 'agree' to the group and cancels the top display of the message body, and the voting process is finished. Therefore, the conversation message is packaged into the message body to be displayed on the back of the top, other users can be reminded to pay attention to the conversation message content obviously, the reply content of other users in the group to the conversation message can be displayed visually, and the communication efficiency among the conversation users in the group is improved.
A passenger is to establish a group, to share a car, firstly defining a departure destination and a departure time, then establishing a group, one or more individual passengers are to join the group and successfully enter the group, then a passenger proposes to modify the departure time, initiates a vote, a top voting message is generated, other members can see the top displayed message and can choose to approve or reject the message, when one person rejects or all persons approve, a voting result message is generated and sent to the group, the content of the message shows the approval or rejection result, and the top message disappears.
When a vote is initiated (the message content is a conversation message of the content to be voted), the server creates a message body marked with an independent display mark (when the set position in the independent display is the top of the displayed chat interface, the top display is performed), and simultaneously sends a message grabbing signal to all terminals, and the terminals grab the message body and display the message body. When a user clicks to approve, the terminal records the approval operation of the user and adds the approval operation to the message body displayed on the top, then the server sends signals to all the terminals again, and the terminals catch the consent. When all people agree or one person refuses, the server updates the state of the message body displayed on the top to be completely agreed or refused, and generates a new message, the voting result is described in the message, then the new message is sent to all terminals, and a signal for grabbing the message body displayed on the top is generated to be grabbed by the terminals, at this time, the server informs the terminals that the message body displayed on the top is not available, and the terminal program does not display the message displayed on the top.
After voting is started, the server renders a message body through an encapsulation template, the message body is stored in a data table, meanwhile, a signal is sent to each terminal to request each terminal to capture the message body displayed on the top, after the terminal code is taken into the message, a popup window is created and covered on a chat window, and the position of the popup window is just above the top of the window. The message body displayed on the top is used for voting, so that the content in the message body is rich, the message body comprises a voting button, a countdown and a journey introduction, the message body is sent by the server and also comprises a marking message, the interaction between the message body on the top and the server is proved, such as an approval operation and a rejection operation, the server can judge that the message is sent by the top voting message popup window, a series of judgments can be made, a message that the voting is successful is sent to the group if all the approval is given, and a failed message is sent to the group if someone rejects the voting.
Further, on the basis of the foregoing embodiments, after encapsulating the session message into a message body, the method further includes:
and if the reply content replied through the reply control in the message body is received, displaying the reply content and/or information of a reply user replying the reply content in the reply display area through a terminal.
The information of the reply user of the reply content is the personal characteristic information of the reply user in the session group, may be the nickname and remark information of the reply user in the session group, and may also be the session head portrait of the reply user, etc.
It can be understood that the reply content replied through the reply control should have a different label than the reply function (e.g., virtual keyboard or voice input) provided by the user through the lower part of the chat box, so that the server or the terminal receiving the reply content can distinguish whether the reply content is replied through the reply control in the message body.
Specifically, when the server is used as the execution main body, if the reply content replied through the reply control in the message body is received, whether the reply content is added with the information marked as 'reply by the reply control of the message body' is judged, if yes, the reply message is added into the reply display area in the message body, and then the message body is sent to the terminal of each user in the session group. It can be understood that, before this, if the terminal detects the reply message replied by triggering the reply control of the message body, the terminal adds the information of marking "the message replies by the reply control of the message body" to the reply message.
When the terminal is taken as an execution main body, if the reply content replied through the reply control in the message body is received, the reply message is added to the reply display area in the message body, and then the message body is sent to the server, so that the server sends the message body to the terminals of all users in the session group.
Fig. 2 is a schematic diagram illustrating display of message bodies and messages in a conversation group according to this embodiment. In the group chat interface of the session group, after receiving a session message sent by a server, a user a packages the session message into a message body 201 directly displayed in the group chat interface at a terminal of the user a, and the session message 202 packaged in the message body 201 is a conference request person who notifies "14: 00 pm to participate on time; time: 14: 00; a place: 101 conference room ". A reply display area 203 is arranged below the conversation message 202, a reply control is arranged below the reply display area 203, the reply control comprises a shortcut control 204 for providing at least one setting statement (the setting statement provided by the shortcut control 204 is received), and the reply control further comprises a control 205 for providing a text input function (by triggering the reply control 205, a virtual keyboard can be called to input the replied text). Where the replying user tagged in the conversation message 202 is the owner (i.e., the replying user is tagged by "@ owner"). If the user zhang san and lie si in the session group replies to "received" according to the "received" control in the message body, the reply content "received" and the nicknames of the user zhang san and lie si may be displayed in the reply display area 203 of the message body 202. Other users of the conversation group may also select a reply control according to the reply control provided in message body 201.
In the embodiment, the reply content is displayed in the reply display area, so that the relationship between the session message and the reply content of the reply user is displayed, the reply content replied to the session message can be directly known through the message body, the reply content to the session message does not need to be inquired one by one from the interface of the session group, the session message and the reply content to the session message are visually displayed, and the communication efficiency is improved.
Further, on the basis of the foregoing embodiments, the obtaining a session message and encapsulating the session message into a message body includes:
acquiring a session message, and if the session message carries an encapsulation mark, encapsulating the session message into a message body; wherein the packaging mark comprises at least one of the following: the conversation message processing method comprises the steps of presetting characters and a preset sentence for indicating encapsulation of the conversation message.
The preset characters may include "@".
For example, when a session message received by a terminal or a server contains @ user a, @ user B or @ owner, the session message is encapsulated to obtain a message body.
In this embodiment, the session message that needs to be encapsulated and the session message that does not need to be encapsulated are distinguished by the encapsulation flag, so that the user can control the manner in which the session message is displayed through the encapsulation flag. The message which does not need to be encapsulated is displayed according to the existing mode, the encapsulation function is not called, the expense is saved, and the message which needs to be encapsulated is encapsulated through the message body, so that the communication efficiency is improved.
Further, on the basis of the foregoing embodiments, after encapsulating the session message into a message body, the method further includes:
and judging whether a user corresponding to any terminal for displaying the message body is a reply user to reply to the session message, if so, displaying the message body through any terminal, and otherwise, displaying the session message and reply content to the session message through any terminal.
Specifically, when the server is used as the execution body, before the message body is sent to any terminal, if it is determined that the user corresponding to the any terminal is a reply user to reply to the session message, the message body is sent to the any terminal, otherwise, the session message in the message body or the reply content to the session message is directly sent to the any terminal.
And when the terminal is taken as an execution main body, if the user corresponding to any terminal is judged to be a reply user to reply to the session message, displaying a message body packaged according to the session message, otherwise, directly displaying the session message in the received message body or reply content replied to the session message.
In this embodiment, the message body is only displayed in the marked terminal of the reply user who is to reply to the session message, and the session message or the reply content is not displayed in the message body manner in the terminal of the reply user. For the terminal which does not reply the user, the encapsulation time of the message body is saved, and the communication efficiency is improved.
Fig. 3 is a session message processing apparatus provided in this embodiment, which includes an encapsulating module 301, wherein,
an encapsulation module 301, configured to obtain a session message, and encapsulate the session message into a message body;
the message body comprises the session message, a reply control for replying to the session message and a reply display area, wherein the reply display area is used for displaying reply content for replying to the session message;
the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
The session message processing apparatus provided in this embodiment is suitable for the session message processing method in each of the above embodiments, and details are not described here.
The embodiment provides a conversation message processing device. In the process of processing the session message, receiving the session message and packaging the session message into a message body. The message body comprises a reply control and a reply display area, the reply control carries out reply on the session message, the reply control comprises a shortcut control, the session message can be quickly replied through the reply control, and compared with a mode of replying through input characters, the time is saved. Meanwhile, the reply content and the conversation message to be replied can be displayed in the message body in a correlation manner, so that the continuity of information transmission is increased, and the user does not need to search the reply content replied to the conversation message in the chat record. Based on the shortcut control provided by the message body and the associated display of the session message and the reply content through the message body, unnecessary time cost in the chat process of the user can be saved, and the communication efficiency is improved.
Optionally, before encapsulating the session message into a message body, the method includes:
generating an encapsulation template for encapsulating the session message into a message body;
each packaging template comprises a session display area for displaying session messages, a reply control and a reply display area, and the reply control further comprises at least one of the following controls: the control comprises a control for providing a voice input function, a control for providing a text input function, a control for carrying out voice call, a control for carrying out video call and a control for supporting a voting function.
Optionally, the encapsulating the session message into a message body includes:
selecting a target packaging template from the packaging templates according to the message content and/or the set rule of the session message;
packaging the session message into the message body through the target packaging template;
wherein, the message content includes at least one of the following contents: the method comprises the steps of obtaining content to be replied through sentences, content to be replied through expressions, content to be replied through voice calls, content to be replied through video calls and content to be voted;
the setting rule is determined according to the proportion of the number of reply users marked in the session message and waiting to reply to the session message to the total number of users in the session group; wherein the session group is a group which sends out the session message.
Optionally, the selecting a target encapsulation template from the encapsulation templates according to the message content of the session message and a set rule includes:
selecting at least one encapsulation template suitable for replying the message content of the session message from the encapsulation templates as an encapsulation template to be selected;
selecting the target encapsulation template from the encapsulation templates to be selected according to the proportion of the number of the marked reply users to the total number of the users in the session group; wherein the session group is a group which sends out the session message.
Optionally, after encapsulating the session message into a message body, the method further includes:
judging whether the message body is independently displayed or not according to a preset display rule and/or whether the session message is independently displayed or not, and if so, adding an independent display mark in the message body; the display rule is determined according to the message content of the session message;
wherein the independent display is such that the message body is displayed at a set position in a chat interface displayed by a conversation group; the session group is a group which sends out the session message.
Optionally, after encapsulating the session message into a message body, the method further includes:
and if the reply content replied through the reply control in the message body is received, displaying the reply content and/or information of a reply user replying the reply content in the reply display area through a terminal.
Optionally, the obtaining a session message, and encapsulating the session message into a message body, includes:
acquiring a session message, and if the session message carries an encapsulation mark, encapsulating the session message into a message body; wherein the packaging mark comprises at least one of the following: the conversation message processing method comprises the steps of presetting characters and a preset sentence for indicating encapsulation of the conversation message.
The present embodiment provides a method for processing a session message, which is applicable to a server, and after receiving a session message sent by a terminal, executes the method for processing a session message according to any of the above embodiments to encapsulate the session message as a message body;
sending the message body to a session group according to a terminal corresponding to a user in the session group so as to display the message body in the session group; wherein the session group is a group which sends out the session message.
In the session message processing process applicable to the server provided by this embodiment, a session message is received, and the session message is encapsulated as a message body. The message body comprises a reply control and a reply display area, the reply control carries out reply on the session message, the reply control comprises a shortcut control, the session message can be quickly replied through the reply control, and compared with a mode of replying through input characters, the time is saved. Meanwhile, the reply content and the conversation message to be replied can be displayed in the message body in a correlation manner, so that the continuity of information transmission is increased, and the user does not need to search the reply content replied to the conversation message in the chat record. Based on the shortcut control provided by the message body and the associated display of the session message and the reply content through the message body, unnecessary time cost in the chat process of the user can be saved, and the communication efficiency is improved.
The embodiment provides a session message processing method, which is applicable to a terminal and comprises the following steps:
after receiving a session message sent by a server, executing the session message processing method to encapsulate the session message into a message body, and displaying the message body in a session group; wherein the session group is a group which sends out the session message.
In the session message processing process applicable to the server provided by this embodiment, a session message is received, and the session message is encapsulated as a message body. The message body comprises a reply control and a reply display area, the reply control carries out reply on the session message, the reply control comprises a shortcut control, the session message can be quickly replied through the reply control, and compared with a mode of replying through input characters, the time is saved. Meanwhile, the reply content and the conversation message to be replied can be displayed in the message body in a correlation manner, so that the continuity of information transmission is increased, and the user does not need to search the reply content replied to the conversation message in the chat record. Based on the shortcut control provided by the message body and the associated display of the session message and the reply content through the message body, unnecessary time cost in the chat process of the user can be saved, and the communication efficiency is improved.
Fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Wherein, this electronic equipment includes: the memory 401, the processor 402, the communication interface 403 and the communication bus 404, wherein the memory 401, the processor 402 and the communication interface 403 complete communication with each other through the communication bus 404. The processor 402 may call logic instructions in the memory 401 to perform the following method: acquiring a session message, and packaging the session message into a message body; the message body comprises the session message, a reply control for replying the session message and a reply display area; the reply display area is used for displaying reply content for replying the session message; the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
In addition, the logic instructions in the memory 401 may be implemented in the form of software functional units and may be stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a terminal device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, an embodiment of the present invention discloses a computer program product, the computer program product comprising a computer program stored on a non-transitory readable storage medium, the computer program comprising program instructions, which when executed by a computer, the computer is capable of performing the method provided by the above-mentioned method embodiments, for example, including: acquiring a session message, and packaging the session message into a message body; the message body comprises the session message, a reply control for replying the session message and a reply display area; the reply display area is used for displaying reply content for replying the session message; the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
In another aspect, the present invention further provides a non-transitory readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the session message processing methods described in the embodiments of the present invention.
A computer program is stored thereon, and when executed by a processor, the computer program is implemented to execute the transmission method provided by the above embodiments, for example, the computer program includes: acquiring a session message, and packaging the session message into a message body; the message body comprises the session message, a reply control for replying the session message and a reply display area; the reply display area is used for displaying reply content for replying the session message; the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform. Based on such understanding, the above technical solutions may be essentially or partially implemented in the form of software products, which may be stored in readable storage media, such as ROM/RAM, magnetic disk, optical disk, etc., and include several instructions for enabling a terminal device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for processing a session message, comprising:
acquiring a session message, and packaging the session message into a message body;
the message body comprises the session message, a reply control for replying the session message and a reply display area; the reply display area is used for displaying reply content for replying the session message;
the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
2. The method according to claim 1, wherein before encapsulating the session message into a message body, the method comprises:
generating an encapsulation template for encapsulating the session message into a message body;
each packaging template comprises a session display area for displaying session messages, a reply control and a reply display area, and the reply control further comprises at least one of the following controls: the control comprises a control for providing a voice input function, a control for providing a text input function, a control for carrying out voice call, a control for carrying out video call and a control for supporting a voting function.
3. The method according to claim 2, wherein said encapsulating the session message into a message body comprises:
selecting a target packaging template from the packaging templates according to the message content and/or the set rule of the session message;
packaging the session message into the message body through the target packaging template;
wherein, the message content includes at least one of the following contents: the method comprises the steps of obtaining content to be replied through sentences, content to be replied through expressions, content to be replied through voice calls, content to be replied through video calls and content to be voted;
the setting rule is determined according to the proportion of the number of reply users marked in the session message and waiting to reply to the session message to the total number of users in the session group; wherein the session group is a group which sends out the session message.
4. The method according to claim 3, wherein the selecting a target encapsulation template from the encapsulation templates according to the message content of the session message and the setting rule comprises:
selecting at least one encapsulation template suitable for replying the message content of the session message from the encapsulation templates as an encapsulation template to be selected;
selecting the target encapsulation template from the encapsulation templates to be selected according to the proportion of the number of the marked reply users to the total number of the users in the session group; wherein the session group is a group which sends out the session message.
5. The method according to claim 1, wherein after encapsulating the session message into a message body, further comprising:
judging whether the message body is independently displayed or not according to a preset display rule and/or whether the session message is independently displayed or not, and if so, adding an independent display mark in the message body; the display rule is determined according to the message content of the session message;
wherein the independent display is such that the message body is displayed at a set position in a chat interface displayed by a conversation group; the session group is a group which sends out the session message.
6. The method according to claim 1, wherein after encapsulating the session message into a message body, further comprising:
and if the reply content replied through the reply control in the message body is received, displaying the reply content and/or information of a reply user replying the reply content in the reply display area.
7. The method according to claim 1, wherein the obtaining the session message and encapsulating the session message into a message body comprises:
acquiring a session message, and if the session message carries an encapsulation mark, encapsulating the session message into a message body; wherein the packaging mark comprises at least one of the following: the conversation message processing method comprises the steps of presetting characters and a preset sentence for indicating encapsulation of the conversation message.
8. A session message processing apparatus, comprising:
the encapsulation module is used for acquiring the session message and encapsulating the session message into a message body;
the message body comprises the session message, a reply control for replying the session message and a reply display area; the reply display area is used for displaying reply content for replying the session message;
the reply control comprises a shortcut control, and the shortcut control comprises at least one of the following controls: and providing at least one control for setting the sentence and providing at least one expression.
9. A session message processing method is applicable to a server, and is characterized by comprising the following steps:
after receiving a session message sent by a terminal, executing the session message processing method of any one of claims 1 to 7 to encapsulate the session message into a message body;
sending the message body to a session group according to a terminal corresponding to a user in the session group so as to display the message body in the session group; wherein the session group is a group which sends out the session message.
10. A session message processing method is suitable for a terminal, and is characterized by comprising the following steps:
after receiving a session message sent by a server, executing the session message processing method of any one of claims 1 to 7 to encapsulate the session message into a message body, and displaying the message body in a session group; wherein the session group is a group which sends out the session message.
CN202010958150.9A 2020-09-14 2020-09-14 Session message processing method and device Pending CN111934989A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010958150.9A CN111934989A (en) 2020-09-14 2020-09-14 Session message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010958150.9A CN111934989A (en) 2020-09-14 2020-09-14 Session message processing method and device

Publications (1)

Publication Number Publication Date
CN111934989A true CN111934989A (en) 2020-11-13

Family

ID=73333422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010958150.9A Pending CN111934989A (en) 2020-09-14 2020-09-14 Session message processing method and device

Country Status (1)

Country Link
CN (1) CN111934989A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565058A (en) * 2020-11-25 2021-03-26 网易(杭州)网络有限公司 Message processing method, device, terminal and storage medium
CN114385286A (en) * 2021-11-30 2022-04-22 北京达佳互联信息技术有限公司 Message display method, device, equipment and storage medium
CN114780190A (en) * 2022-04-13 2022-07-22 脸萌有限公司 Message processing method and device, electronic equipment and storage medium
CN115202528A (en) * 2022-09-16 2022-10-18 潍坊学院 Message management method and device
WO2023202579A1 (en) * 2022-04-22 2023-10-26 维沃移动通信有限公司 Information display method and apparatus, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530174A (en) * 2016-01-22 2016-04-27 腾讯科技(深圳)有限公司 Method and device for publishing messages
CN107621915A (en) * 2017-09-29 2018-01-23 努比亚技术有限公司 A kind of message prompt method, equipment and computer-readable storage medium
CN109672543A (en) * 2019-01-08 2019-04-23 平安科技(深圳)有限公司 Group event management method and device
CN110061900A (en) * 2018-01-18 2019-07-26 腾讯科技(深圳)有限公司 Message display method, device, terminal and computer readable storage medium
CN110768805A (en) * 2019-09-26 2020-02-07 维沃移动通信有限公司 Group message display method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105530174A (en) * 2016-01-22 2016-04-27 腾讯科技(深圳)有限公司 Method and device for publishing messages
CN107621915A (en) * 2017-09-29 2018-01-23 努比亚技术有限公司 A kind of message prompt method, equipment and computer-readable storage medium
CN110061900A (en) * 2018-01-18 2019-07-26 腾讯科技(深圳)有限公司 Message display method, device, terminal and computer readable storage medium
CN109672543A (en) * 2019-01-08 2019-04-23 平安科技(深圳)有限公司 Group event management method and device
CN110768805A (en) * 2019-09-26 2020-02-07 维沃移动通信有限公司 Group message display method and electronic equipment

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565058A (en) * 2020-11-25 2021-03-26 网易(杭州)网络有限公司 Message processing method, device, terminal and storage medium
CN114385286A (en) * 2021-11-30 2022-04-22 北京达佳互联信息技术有限公司 Message display method, device, equipment and storage medium
CN114780190A (en) * 2022-04-13 2022-07-22 脸萌有限公司 Message processing method and device, electronic equipment and storage medium
CN114780190B (en) * 2022-04-13 2023-12-22 脸萌有限公司 Message processing method, device, electronic equipment and storage medium
WO2023202579A1 (en) * 2022-04-22 2023-10-26 维沃移动通信有限公司 Information display method and apparatus, and electronic device
CN115202528A (en) * 2022-09-16 2022-10-18 潍坊学院 Message management method and device

Similar Documents

Publication Publication Date Title
CN111934989A (en) Session message processing method and device
US10972547B2 (en) Systems and devices and methods for initiating communications based on selected content
CN111669311A (en) Communication method, communication device, communication system, electronic equipment and readable storage medium
US10491690B2 (en) Distributed natural language message interpretation engine
US20090028306A1 (en) Multimodal network community system for rapid message transmission to multiple specific persons and method of controlling the same
US20080091782A1 (en) Method and system for delegating and managing tasks over instant messenger
CN101159706B (en) Controlling active and passive participation method and system in a thread of conversation
EP1942418A1 (en) Electronic device and program
CN104396286A (en) METHOD FOR PROVIDING INSTANT MESSAGING SERVICE, RECORDING MEDIUM for recording PROGRAM FOR the method, AND TERMINAL
EP1891537A2 (en) Media conference enhancements
CN112838976B (en) Message processing method and device
EP4135271A1 (en) Information interaction method and apparatus, device, and medium
US20200111059A1 (en) Method for event reminding, and method and apparatus for generating event reminding message
US11765122B2 (en) Information sharing method and apparatus, information display method and apparatus, and non-transitory computer-readable storage medium
CN107370661A (en) Message sending method and device based on contact list and electronic equipment
CN105930697A (en) Method and device for opening use permission of interactive information
CN113360002B (en) Information collection method, device, electronic equipment and storage medium
KR20190036604A (en) Hybrid chat providing method using predefined conversation flow and hybrid chat service server
CN112104543A (en) Message group sending method
WO2023284630A1 (en) Emoticon image adding method and apparatus, and device and storage medium
US8918458B2 (en) Utilizing group statistics for groups of participants in a human-to-human collaborative tool
CN115639939A (en) Method and device for initiating to-do flow, electronic equipment and readable storage medium
CN113595857B (en) Group operation method, device, equipment and storage medium
CN110377573A (en) Content storage, sharing method and device
EP2658190B1 (en) Electronic device and method for updating message recipients based on message body indicators

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201113

RJ01 Rejection of invention patent application after publication