WO2022206699A1 - 消息发送方法、装置及电子设备 - Google Patents

消息发送方法、装置及电子设备 Download PDF

Info

Publication number
WO2022206699A1
WO2022206699A1 PCT/CN2022/083454 CN2022083454W WO2022206699A1 WO 2022206699 A1 WO2022206699 A1 WO 2022206699A1 CN 2022083454 W CN2022083454 W CN 2022083454W WO 2022206699 A1 WO2022206699 A1 WO 2022206699A1
Authority
WO
WIPO (PCT)
Prior art keywords
content information
target
message
information
input
Prior art date
Application number
PCT/CN2022/083454
Other languages
English (en)
French (fr)
Inventor
李飞
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022206699A1 publication Critical patent/WO2022206699A1/zh

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/21Monitoring or handling of messages
    • H04L51/216Handling conversation history, e.g. grouping of messages in sessions or threads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • 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/21Monitoring or handling of messages
    • H04L51/224Monitoring or handling of messages providing notification on incoming messages, e.g. pushed notifications of received messages
    • 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/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services

Definitions

  • the present application discloses a message sending method, device and electronic device, which belong to the technical field of communication.
  • the current social applications of electronic devices have rich and diverse functions, not only providing users with text chatting, voice chatting, voice calling, and video calling, but also providing users with functions of sending and receiving files, sharing location, and sharing information. Wait.
  • the user needs to send files (documents, pictures, videos, audio files, etc.) to some contacts, then the user can send the file to the group chat, and then use a separate message Prompt these contacts for viewing (that is, by means of @contact); or prompt these contacts by means of @contact first, and then send the file.
  • files documents, pictures, videos, audio files, etc.
  • the purpose of the embodiments of the present application is to provide a message sending method, device and electronic device, which can solve the problem of low efficiency in sending files and prompting relevant contacts to view them.
  • an embodiment of the present application provides a method for sending a message.
  • the method includes: in the case where an interface of a target group chat is displayed and the target message is included in the interface of the target group chat, receiving a first message from a user to the target message Input, the target message includes M pieces of content information, where M is a positive integer; in response to the first input, display M controls corresponding to the M pieces of content information, and one piece of content information corresponds to one control; receive user feedback on the target controls in the M controls the second input; in response to the second input, edit the target message, replace the target content information corresponding to the target control with the first content information, generate the first message, and send the first message to the server corresponding to the target group chat; wherein , the first content information and the target content information are the same type of content information, the first message is composed of the first content information and M-1 content information, the M-1 content information is the M content information, except the target content information external content information.
  • an embodiment of the present application provides a message sending device, the device includes: a receiving module, a display module, an editing module, a generating module, and a sending module.
  • the receiving module is configured to receive the first input of the target message by the user when the interface of the target group chat is displayed and the interface of the target group chat includes the target message, where the target message includes M pieces of content information, and M is positive integer.
  • the display module is configured to display M controls corresponding to the M pieces of content information in response to the first input received by the receiving module, and one piece of content information corresponds to one control.
  • the receiving module is further configured to receive a second input from the user to the target control among the M controls.
  • the editing module is configured to edit the target message in response to the second input received by the receiving module, and replace the target content information corresponding to the target control with the first content information.
  • a generating module is used to generate the first message.
  • the sending module is used for sending the first message to the server corresponding to the target group chat.
  • the first content information and the target content information are the same type of content information, the first message is composed of the first content information and M-1 pieces of content information, and the M-1 pieces of content information are M pieces of content information, except the target content information.
  • embodiments of the present application provide an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction being The processor implements the steps of the method according to the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the method according to the first aspect are implemented .
  • an embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction, and implement the first aspect the method described.
  • the user when the electronic device displays the interface of the target group chat, and the target message is included in the interface of the target group chat, the user can perform a first input on the target message, thereby triggering the electronic device to display the information included in the target message.
  • the user can input the target control in the M controls again, to trigger the electronic device to edit the target message, and replace the target content information corresponding to the target control with the first content information, so as to be based on the first content information and the M content.
  • M-1 pieces of content information other than the target content information in the information generate a first message, and send the first message to a server corresponding to the target group chat.
  • a new message can be obtained by re-editing and modifying the message based on a historically sent message, and the new message can be sent again.
  • the user There is no need for the user to re-edit one or more new messages to send the file and prompt the relevant contacts to view it.
  • the operation of the user is simplified, and the efficiency of the electronic device for sending the file and prompting the relevant contact to view it is improved.
  • FIG. 1 is one of the schematic diagrams of a message sending method provided by an embodiment of the present application
  • Fig. 2 is one of the example schematic diagrams of an interface of a mobile phone provided by an embodiment of the present application
  • FIG. 3 is the second schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application.
  • FIG. 4 is the second schematic diagram of a message sending method provided by an embodiment of the present application.
  • FIG. 5 is a third example schematic diagram of an interface of a mobile phone provided by an embodiment of the present application.
  • FIG. 6 is a third schematic diagram of a method for sending a message provided by an embodiment of the present application.
  • FIG. 7 is a fourth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application.
  • FIG. 8 is a fourth schematic diagram of a message sending method provided by an embodiment of the present application.
  • FIG. 9 is a fifth example schematic diagram of an interface of a mobile phone provided by an embodiment of the present application.
  • FIG. 10 is a sixth schematic diagram of an example of an interface of a mobile phone provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a message sending apparatus provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
  • first, second and the like in the description and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances so that the embodiments of the present application can be practiced in sequences other than those illustrated or described herein, and distinguish between “first”, “second”, etc.
  • the objects are usually of one type, and the number of objects is not limited.
  • the first object may be one or more than one.
  • “and/or” in the description and claims indicates at least one of the connected objects, and the character “/" generally indicates that the associated objects are in an "or” relationship.
  • the message sending method provided by the embodiment of the present application can be applied to a scenario where an electronic device sends a message through a group chat and reminds a relevant contact to check.
  • Specific application scenarios may be determined according to usage requirements, which are not limited in this application.
  • the interface currently displayed by the electronic device is the interface of the group chat
  • the interface of the group chat includes a historical message (the historical message).
  • a file 1 sent by the user and reminding Contact 1 and Contact 2 to check) if the user needs to send a file 2 again and reminding Contact 2, Contact 3 and Contact 4 to check, the user can Input the historical message in the interface of the group chat, thereby triggering the electronic device to display a plurality of controls corresponding to a plurality of content information included in the historical message (that is, the identification of file 1, the identification of contact 1 and the identification of contact 2)
  • the user can input the target control in the plurality of controls to trigger the electronic device to re-edit the message, for example, delete the file 1 in the plurality of content information, and add the file 2; and delete the contact in the plurality of content information 1, and add the identity of contact 3 and the identity of contact 4, so that the electronic device can generate a new message based
  • the user can re-edit the sent historical messages to obtain a new message and send it to the group chat, thereby simplifying the user's operation and improving the electronic device to send files and prompt related contacts Efficiency of people viewing.
  • FIG. 1 shows a flowchart of a method for sending a message provided by an embodiment of the present application, and the method can be applied to an electronic device.
  • the message sending method provided by this embodiment of the present application may include the following steps 201 to 204 .
  • Step 201 In the case where the interface of the target group chat is displayed and the target message is included in the interface of the target group chat, the electronic device receives a first input of the target message by the user.
  • the above target message includes M pieces of content information, where M is a positive integer.
  • the electronic device displays the interface of the target group chat, and the interface of the target group chat includes the target message (that is, the message sent in the history)
  • the user can input the target message to trigger the electronic device
  • the device displays M controls corresponding to the M content information included in the target message, so that the user can then input the target controls in the M controls to edit the content information included in the target message, thereby deleting the target control.
  • the corresponding target content information and based on the first content information and M-1 content information other than the target content information in the M content information, a new message (ie the first message) is generated, and, corresponding to the target group chat server to send the first message.
  • the interface of the above-mentioned target group chat is a conversation interface corresponding to multiple contacts, and the multiple contacts can all send messages in the conversation interface for other contacts (that is, among the multiple contacts, except for those who send messages). Contacts) and can view messages sent by other contacts.
  • the interface of the target group chat may include a plurality of historical messages, and the above-mentioned target messages are historical messages sent by any contact.
  • the target message may specifically be a message in the form of a file, a picture, a video, or an audio.
  • the first input of the user to the target message may be any of the following: long-press input, click input, tap input, drag input, and the like.
  • the M pieces of content information included in the target message may be at least one of the following: file information, reminder identification information, text content information, voice content information, and the like.
  • the above-mentioned reminder identification information may include at least one of the following: a contact nickname, a contact avatar, a contact account, and the like.
  • the above-mentioned input of the target message by the user can be understood as the input of the user in the display area where the target message is located, that is, the input position of the user's finger can be any area corresponding to the target message, for example: the input position of the user's finger can be Overlaying the file information, or the input position of the user's finger may cover the reminder identification information, or the input position of the user's finger may cover the text content information and the like.
  • Step 202 The electronic device displays M controls corresponding to the M pieces of content information in response to the first input.
  • one content information in the above-mentioned M pieces of content information corresponds to one control in the M controls.
  • the electronic device displays M controls according to the first input of the target message by the user, and the M controls may be at least one of the following: a file replacement control, a recipient replacement control, and a text replacement control.
  • the electronic device is a mobile phone as an example for description.
  • the mobile phone displays a target group chat interface 10, and the target group chat interface 10 includes a target message 11, and the target message 11 includes 3 content information: file information 12, reminder identification information 13 and text content Information 14.
  • the user can input the target message 11 to trigger the mobile phone to display three controls, namely the file replacement control 15 corresponding to the file information 12, and the receipt corresponding to the reminder identification information 13.
  • a person replacing control 16 and a text replacing control 17 corresponding to the text content information 14 are added. Therefore, the user can select and input these controls to trigger the mobile phone to edit the corresponding content information.
  • the electronic device displays the M pieces of content information included in the target message separately according to the first input of the target message by the user (that is, a complete target message is divided into M modules for independent display), and A delete control is correspondingly displayed on each piece of content information (that is, M pieces of content information are correspondingly displayed with M delete controls).
  • the user can input the target message 11 to trigger the mobile phone to split and display the target message 11 including the file information 12, the reminder identification information 13 and the text content information 14, And a delete control 18 is displayed on the split and displayed file information 12 , reminder identification information 13 and text content information 14 respectively. Therefore, the user can select and input these deletion controls 18 to trigger the mobile phone to edit the corresponding content information.
  • Step 203 The electronic device receives a second input from the user to a target control among the M controls.
  • the user can select and input any one of the three controls (ie, the target control). , to trigger the electronic device to re-select the file to be sent, or to re-select the recipient (that is, the contact person who needs to view the file), or to re-edit the text information.
  • the user can input the deletion control corresponding to the content information to be replaced, so that the user can directly Re-select the file to be sent, or re-select the recipient, or re-edit the text message; or, the user can directly re-select the file to be sent (or re-select the recipient, or re-edit the text message) to trigger the electronic device Edit the target message.
  • Step 204 The electronic device edits the target message in response to the second input, replaces the target content information corresponding to the target control with the first content information, generates the first message, and sends the first message to the server corresponding to the target group chat.
  • the first content information and the target content information are the same type of content information
  • the first message is composed of the first content information and M-1 pieces of content information
  • the M-1 pieces of content information are the above-mentioned M pieces of content information.
  • the pieces of content information content information other than the target content information.
  • the above-mentioned first content information is content information newly added by the user, and there is a corresponding relationship between the first content information and the content information corresponding to the target widget, that is, the first content information and the target widget.
  • the corresponding content information may be the same type of content information.
  • the first content information may be any of the following: file information, reminder identification information, text content information, voice content information, and the like.
  • the above-mentioned first content information may be any of the following: files, pictures, videos, audios, etc.; the content information corresponding to the target control is a reminder
  • the above-mentioned first content information may be the contact identification re-selected by the user
  • the above-mentioned first content information may be the textual content re-edited by the user or voice content, etc.
  • the electronic device may generate a new message according to the first content information and content information other than the target content information among the M pieces of content information. (that is, the first message), and sent to the target group chat for the corresponding contact to view.
  • the electronic device can send the sent file and text as a whole (the file and text to be sent will be combined into a message body for sending), and identify the contact person who receives the file, so as to facilitate the transmission of the file and text. Users can quickly filter files that need their attention. Thus, the contact is reminded by displaying the recipient's avatar or nickname identification on the sent file message body.
  • An embodiment of the present application provides a message sending method.
  • a user can first input the target message, thereby triggering the display of the target message on the electronic device.
  • M controls corresponding to the M content information included in the target message.
  • the user can input the target control in the M controls again, to trigger the electronic device to edit the target message, and replace the target content information corresponding to the target control with the first content information, so as to be based on the first content information and the M content.
  • M-1 pieces of content information other than the target content information in the information generate a first message, and send the first message to a server corresponding to the target group chat.
  • a new message can be obtained by re-editing and modifying the message based on a historically sent message, and the new message can be sent again.
  • the user There is no need for the user to re-edit one or more new messages to send the file and prompt the relevant contacts to view it.
  • the operation of the user is simplified, and the efficiency of the electronic device for sending the file and prompting the relevant contact to view it is improved.
  • the above-mentioned target content information includes any one of the following: file information, reminder identification information, and the reminder identification information is used to remind the corresponding contact to view the file information, as shown in FIG. 4 with reference to FIG. 1 .
  • the message sending method provided by this embodiment of the present application may further include the following steps 301 to 301 303.
  • Step 301 The electronic device, in response to the second input, edits the target message and displays the target interface.
  • the above-mentioned target interface includes N pieces of content information, where N is a positive integer.
  • the electronic device may display the content addition control at the display position corresponding to the target content information, so that the user can input the content addition control to trigger the content addition control.
  • the electronic device displays the target interface.
  • the above-mentioned target interface may be any one of the following: a file selection interface, a contact selection interface, and the like.
  • the file selection interface includes multiple files for the user to select;
  • the contact selection interface includes contact identifiers of all contacts corresponding to the target group chat for the user to select.
  • the target interface is determined according to the target content information corresponding to the target control.
  • the target interface is a file selection interface; in the case where the target content information is reminder identification information , the target interface is a contact identification selection interface; in the case that the target content information is text content information, the target interface is a text editing interface.
  • Step 302 The electronic device receives a third input from the user to the second content information in the N pieces of content information.
  • the above-mentioned N pieces of content information are: file information stored in the electronic device; in the case that the above-mentioned target content information includes reminder identification information, the above-mentioned N pieces of content information are: The information is: content information respectively corresponding to the N contacts in the target group chat, and one content information corresponds to one contact.
  • the target interface when the target interface is a file selection interface, the above-mentioned N pieces of content information are N files; and when the target interface is a contact selection interface, the above-mentioned N pieces of content information are the target N contact identifiers corresponding to the group chat.
  • the add recipient control 19 may be displayed, thereby The user can input the add recipient control 19, as shown in FIG. 5 (B), and the mobile phone can display a recipient selection interface for the user to select recipients.
  • Step 303 The electronic device determines the second content information as the first content information in response to the third input.
  • the electronic device may determine the content information selected by the user as the first content information according to the user's selection and input of the file information or the content information corresponding to the N contacts, so as to determine the first content information.
  • a first message is obtained by combining a piece of content information with content information other than the target content information among the M pieces of content information, and sent.
  • the specific scenarios to which the embodiments of the present application can be applied may be: in the case that the user has sent the target message, if the user needs to send the first file (that is, the target content information) to other recipients, the user can press and hold the target message for a long time.
  • content information that is, the first file and the corresponding text
  • enter the editing mode which can directly display all elements in the input box or an independent interface (including the contact person receiving the file, the file ID, the text content, etc.) as a control, each control is independent and has a delete control (used to quickly delete the corresponding content).
  • the relevant function menu will pop up on the interface of the target group chat: file replacement control, recipient replacement control, and text replacement control.
  • the user can select corresponding controls to trigger the electronic device to perform related operations. For example: select the file replacement control to enter the file selection interface; select the recipient replacement control to enter the contact selection interface; select the text replacement control to enter the text editing interface.
  • the updated message body will be displayed in the edit box, and the user can click send to send the new message to the group chat.
  • the specific content of the above step 204 may be "the electronic device replaces the target content information corresponding to the target control with the first content information, and generates the first message, and, Send the first message to the server corresponding to the target group chat".
  • the electronic device when the target content information corresponding to the target control triggered by the user to delete the electronic device is file information or reminder identification information, the electronic device can display a target interface including N pieces of content information, so that the user can select the target interface from the display
  • the desired content information is selected from the N pieces of content information, so as to trigger the electronic device to determine the selected content information as the first content information.
  • the electronic device can combine the content information selected by the user and the content information except the target content information among the M pieces of content information to obtain the first message and send it to the target group chat, which improves the flexibility of the electronic device to send messages.
  • the above target content information is text content information.
  • the message sending method provided by this embodiment of the present application may further include the following steps 401 to 403 .
  • Step 401 the electronic device, in response to the second input, edits the target message and displays a text input box.
  • the electronic device may display a text input box at the display position corresponding to the target content information, so that the user can input text information in the text input box.
  • the user may also perform voice input in the text input box to obtain a voice message.
  • the input form of the user in the text input box is not limited in this application, and the input form may be text input or voice input, and the specific input form is determined according to actual usage requirements.
  • Step 402 The electronic device receives the fourth input of the target text content information by the user in the text input box.
  • the mobile phone can delete the text content information 14 and display the text input box 20, Therefore, the user can input text in the text input box 20 to obtain new target text content information.
  • Step 403 in response to the fourth input, the electronic device determines the target text content information as the first content information.
  • the electronic device may determine the target text information input by the user in the text input box as the first content information, so as to replace the target content information with the first content information. Therefore, the first message can be obtained by combining the first content information with the content information other than the target content information among the M pieces of content information, and sent to the target group chat.
  • the specific content of the above step 204 may be "the electronic device replaces the target content information corresponding to the target control with the first content information, and generates the first message, and, Send the first message to the server corresponding to the target group chat".
  • the electronic device when the target content information corresponding to the target control triggered by the user to delete the electronic device is text content information, the electronic device can display a text input box, so that the user can input text in the text input box to The target text content information is obtained to trigger the electronic device to determine the target text content information in the text input box as the first content information. Further, the electronic device can combine the target text content information with content information other than the target content information among the M pieces of content information to obtain the first message and send it to the target group chat, which improves the flexibility of the electronic device to send messages.
  • the message sending method provided by the embodiment of the present application may further include the following steps 501 and 502 .
  • Step 501 when the first file information is selected and the identifiers of N contacts in the target group chat are displayed, the electronic device receives a fifth input from the user.
  • the fifth input is used to select at least one contact identifier among the N contact identifiers.
  • the above-mentioned first file information is a file to be sent selected by the user.
  • the electronic device may display a contact identifier selection interface for the user to select the corresponding file. contact.
  • the user when the electronic device displays the interface of the target group chat, the user can input the file selection control to trigger the electronic device to display the file list interface, so that the user can select the file to be sent.
  • the user can input the contact selection control to trigger the electronic device to display the contact identification selection interface, so that the user can select the corresponding contact, and the contact identification selection interface can be used. It can be displayed in the form of a list or in the form of a floating box.
  • the contact selected by the user can be one contact or multiple contacts.
  • the user selects the entry of the file, and can directly select the file from the interface of the target group chat, or directly find the file from the file management/album and other file storage applications of the electronic device, And share to the target group chat by long-pressing and other methods.
  • the user can input the file selection control 21 included in the target group chat interface 10 displayed by the mobile phone to trigger the mobile phone to display the file selection interface 22, Then the user can select and input the first file 23 in the file selection interface 22, and after the mobile phone has checked the first file 23, input the contact selection control 24, as shown in (B) in FIG. 9 .
  • the mobile phone can display the contact selection interface 25, so that the user can select and input multiple contact identifiers 26 included in the contact selection interface 25.
  • the mobile phone determines the multiple contacts corresponding to the first file 23, the mobile phone
  • the target message may be generated based on the first file and the plurality of contact identifications.
  • Step 502 In response to the fifth input, the electronic device generates a target message based on the first file information and the first reminder identification information, and sends the target message to a server corresponding to the target group chat.
  • the above-mentioned first file information and the first reminder identification information are among M pieces of content information, and the first reminder identification information is generated based on at least one contact identification.
  • the electronic device may combine the first file information and the first reminder identification information to generate a combined message (ie, a target message) and send it to the target group chat.
  • a combined message ie, a target message
  • the user can edit a new message by selecting file information and selecting at least one contact identifier in the target group chat, and calmly triggering the electronic device to generate a target based on the file information and reminder identifier information selected by the user message, and send the target message to the server corresponding to the target group chat, so that the contact selected by the user can view the corresponding file content, thereby improving the efficiency of the electronic device sending the file and prompting the relevant contact to view.
  • the message sending method provided by the embodiment of the present application may further include the following steps 601 and 602. , and the "generating a target message based on the first file information and the first reminder identification information" in the above step 502 can be specifically implemented by the following step 502a.
  • Step 601 in response to the fifth input, the electronic device generates a target message based on the first file information and the first reminder identification information, and displays a message preview interface.
  • the above-mentioned message preview interface includes a text input box.
  • the electronic device may first display a message preview interface, and display a text input box in the message preview interface, thereby The user can make text input.
  • a preview style of the target message is displayed in the above-mentioned message preview interface for the user to view, and the preview style of the target message is a preset preview style in the electronic device, and the user can select the target message in the setting interface.
  • the preview style of the message is displayed in the above-mentioned message preview interface for the user to view, and the preview style of the target message is a preset preview style in the electronic device, and the user can select the target message in the setting interface.
  • Step 602 The electronic device receives the user's input of the first text content information in the text input box.
  • the user may also input voice content information in the text input box.
  • the form of the content information input by the user in the text input box is not limited in this application, and may be in the form of text or voice. form.
  • the mobile phone can display the message preview interface 27, and in the The message preview interface 27 displays the target message 28 and the text input box 29, so that the user can input text in the text input box 29 to describe the target message 28 to be sent, and after the text input is completed, send
  • the control input is the interface that the target message 28 is sent to the target group chat, and in the interface of the target group chat, the target message 28 is a combined message (that is, through the file information, reminding A combined message consisting of identification information and textual content information).
  • Step 502a the electronic device generates a target message based on the first file information, the at least one contact identifier and the first text content information, and sends the target message to a server corresponding to the target group chat.
  • the above-mentioned first text content information is among the M pieces of content information.
  • the electronic device may generate reminder identification information according to at least one contact identification, so as to obtain the target message by combining the first file information, the reminder identification information corresponding to the at least one contact identification, and the first text content information. .
  • the electronic device can combine the selected file content and at least one contact identifier into a message body (that is, a target message), and at the same time display to the user a preview interface of the message body, which is convenient for the user to view before sending. to the effect, and text content can be entered in the preview interface.
  • the display effect of the combined message body may be the upper and lower typesetting or the left and right typesetting of the document text, and whether the recipient's avatar, nickname, etc. are displayed on the message body.
  • the sent message body automatically carries the @ attribute, and you can @ the corresponding contacts to remind these contacts to check the file in time.
  • the electronic device may display a message preview interface and display a text input box in the message preview interface, so that the user can enter the text input box in the message preview interface.
  • the electronic device After inputting the text in the text, trigger the electronic device to generate a target message based on the first file information, at least one contact identifier and the first text content information and send it to the target group chat, so that the user can check the display effect of the sent target message in advance, which improves the The flexibility of electronic devices to send messages.
  • the execution body may be a message sending apparatus, or a control module in the message sending apparatus for executing the message sending method.
  • the method for sending a loading message performed by a message sending device is taken as an example to describe the message sending device provided by the embodiments of the present application.
  • FIG. 11 shows a possible schematic structural diagram of the message sending apparatus involved in the embodiment of the present application.
  • the message sending apparatus 70 may include: a receiving module 71 , a display module 72 , an editing module 73 , a generating module 74 and a sending module 75 .
  • the receiving module 71 is configured to receive the user's first input of the target message when the interface of the target group chat is displayed and the interface of the target group chat includes the target message, the target message includes M pieces of content information, M is a positive integer.
  • the display module 72 is configured to, in response to the first input received by the receiving module 71, display M controls corresponding to the M pieces of content information, and one piece of content information corresponds to one control.
  • the receiving module 71 is further configured to receive a second input from the user to the target control among the M controls.
  • the editing module 73 is configured to edit the target message in response to the second input received by the receiving module 71, and replace the target content information corresponding to the target control with the first content information.
  • the generating module 74 is used for generating the first message.
  • the sending module 75 is configured to send the first message to the server corresponding to the target group chat.
  • the first content information and the target content information are the same type of content information, the first message is composed of the first content information and M-1 pieces of content information, and the M-1 pieces of content information are M pieces of content information, except the target content information.
  • the target content information includes any one of the following: file information and reminder identification information, where the reminder identification information is used to remind the corresponding contact to view the file information.
  • the display module 72 is further configured to display a target interface before the editing module replaces the target content information corresponding to the target control with the first content information, where the target interface includes N pieces of content information, where N is a positive integer.
  • the receiving module 71 is further configured to receive a third input from the user to the second content information in the N pieces of content information.
  • the message sending apparatus 70 provided in this embodiment of the present application may further include: a determining module. The determining module is configured to determine the second content information as the first content information in response to the third input received by the receiving module 71 .
  • the N pieces of content information are: file information stored in the electronic device; in the case that the target content information includes reminder identification information, the N pieces of content information are: in the target group chat Content information corresponding to the N contacts respectively, and one content information corresponds to one contact.
  • the target content information is text content information.
  • the display module 72 is further configured to display a text input box before the editing module replaces the target content information corresponding to the target control with the first content information.
  • the receiving module 71 is further configured to receive the fourth input of the target text content information by the user in the text input box.
  • the message sending apparatus 70 provided in this embodiment of the present application may further include: a determining module. The determining module is configured to determine the target text content information as the first content information in response to the fourth input received by the receiving module 71 .
  • the receiving module 71 is further configured to, in the case where the interface of the target group chat is displayed and the target message is included in the interface of the target group chat, before receiving the user's first input of the target message, and When the first file information is selected and N contact identifiers in the target group chat are displayed, a fifth input from the user is received, where the fifth input is used to select at least one contact identifier among the N contact identifiers.
  • the generating module 74 is further configured to, in response to the fifth input received by the receiving module 71, generate a target message based on the first file information and the first reminder identification information.
  • the sending module 75 is further configured to send the target message to the server corresponding to the target group chat.
  • the first file information and the first reminder identification information are among the M pieces of content information, and the first reminder identification information is generated based on at least one contact identification.
  • the display module 72 is further configured to display a message preview interface before the sending module 75 sends the target message to the server corresponding to the target group chat, where the message preview interface includes a text input box.
  • the receiving module 71 is further configured to receive the user's input of the first text content information in the text input box.
  • the generating module 74 is specifically configured to generate a target message based on the first file information, the at least one contact identifier and the first text content information.
  • the first text content information is among the M pieces of content information.
  • the message sending apparatus provided in the embodiment of the present application can implement each process implemented by the message sending apparatus in the foregoing method embodiments. To avoid repetition, the detailed description is not repeated here.
  • An embodiment of the present application provides a message sending apparatus.
  • an electronic device displays an interface of a target group chat and a target message is included in the interface of the target group chat
  • a user can perform a first input on the target message, thereby triggering the display of the electronic device.
  • M controls corresponding to the M content information included in the target message.
  • the user can input the target control in the M controls again, to trigger the electronic device to edit the target message, and replace the target content information corresponding to the target control with the first content information, so as to be based on the first content information and the M content.
  • M-1 pieces of content information other than the target content information in the information generate a first message, and send the first message to a server corresponding to the target group chat.
  • a new message can be obtained by re-editing and modifying the message based on a historically sent message, and the new message can be sent again.
  • the user There is no need for the user to re-edit one or more new messages to send the file and prompt the relevant contacts to view it.
  • the operation of the user is simplified, and the efficiency of the electronic device for sending the file and prompting the relevant contact to view it is improved.
  • the message sending apparatus in this embodiment of the present application may be an apparatus, and may also be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palmtop computer, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (personal digital assistant).
  • UMPC ultra-mobile personal computer
  • netbook or a personal digital assistant
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the message sending apparatus in this embodiment of the present application may be an apparatus having an operating system.
  • the operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
  • an embodiment of the present application further provides an electronic device, including a processor 110, a memory 109, a program or instruction stored in the memory 109 and executable on the processor 110, the program or instruction being processed by the processor
  • an electronic device including a processor 110, a memory 109, a program or instruction stored in the memory 109 and executable on the processor 110, the program or instruction being processed by the processor
  • the electronic devices in the embodiments of the present application include the aforementioned mobile electronic devices and non-mobile electronic devices.
  • FIG. 12 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 100 includes but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110, etc. part.
  • the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to manage charging, discharging, and power management through the power management system. consumption management and other functions.
  • a power source such as a battery
  • the structure of the electronic device shown in FIG. 12 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than the one shown, or combine some components, or arrange different components, which will not be repeated here. .
  • the user input unit 107 is configured to receive the user's first input of the target message when the interface of the target group chat is displayed and the interface of the target group chat includes the target message, where the target message includes M pieces of content information, M is a positive integer.
  • the display unit 106 is configured to, in response to the first input, display M controls corresponding to the M pieces of content information, and one piece of content information corresponds to one control.
  • the user input unit 107 is further configured to receive a second input from the user to the target control among the M controls.
  • the processor 110 is configured to, in response to the second input, edit the target message, replace the target content information corresponding to the target control with the first content information, generate the first message, and send the first message to the server corresponding to the target group chat.
  • the M-1 pieces of content information are content information other than the target content information among the M pieces of content information.
  • An embodiment of the present application provides an electronic device.
  • the electronic device displays an interface of a target group chat and a target message is included in the interface of the target group chat
  • a user can perform a first input on the target message, thereby triggering the electronic device to display the target M controls corresponding to the M content information included in the message.
  • the user can input the target control in the M controls again, to trigger the electronic device to edit the target message, and replace the target content information corresponding to the target control with the first content information, so as to be based on the first content information and the M content.
  • M-1 pieces of content information other than the target content information in the information generate a first message, and send the first message to a server corresponding to the target group chat.
  • a new message can be obtained by re-editing and modifying the message based on a historically sent message, and the new message can be sent again.
  • the user There is no need for the user to re-edit one or more new messages to send the file and prompt the relevant contacts to view it.
  • the operation of the user is simplified, and the efficiency of the electronic device for sending the file and prompting the relevant contact to view it is improved.
  • the display unit 106 is further configured to display a target interface, where the target interface includes N pieces of content information, where N is a positive integer.
  • the user input unit 107 is further configured to receive a third input from the user to the second content information in the N pieces of content information.
  • the processor 110 is further configured to determine the second content information as the first content information in response to the third input.
  • the N pieces of content information are: file information stored in the electronic device; in the case that the target content information includes reminder identification information, the N pieces of content information are: in the target group chat The content information corresponding to the N contacts respectively, and one content information corresponds to one contact.
  • the electronic device when the target content information corresponding to the target control triggered by the user to delete the electronic device is file information or reminder identification information, the electronic device can display a target interface including N pieces of content information, so that the user can select the target interface from the display
  • the desired content information is selected from the N pieces of content information, so as to trigger the electronic device to determine the selected content information as the first content information.
  • the electronic device can combine the content information selected by the user and the content information except the target content information among the M pieces of content information to obtain the first message and send it to the target group chat, which improves the flexibility of the electronic device to send messages.
  • the display unit 106 is also used for displaying a text input box.
  • the user input unit 107 is further configured to receive a fourth input of the target text content information by the user in the text input box.
  • the processor 110 is further configured to, in response to the fourth input, determine the target text content information as the first content information.
  • the electronic device when the target content information corresponding to the target control triggered by the user to delete the electronic device is text content information, the electronic device can display a text input box, so that the user can input text in the text input box to The target text content information is obtained to trigger the electronic device to determine the target text content information in the text input box as the first content information. Further, the electronic device can combine the target text content information with content information other than the target content information among the M pieces of content information to obtain the first message and send it to the target group chat, which improves the flexibility of the electronic device to send messages.
  • the user input unit 107 is further configured to receive a fifth input from the user when the first file information is selected and the N contact identifiers in the target group chat are displayed, where the fifth input is used to select the N contact identifiers At least one contact ID in .
  • the processor 110 is further configured to, in response to the fifth input, generate a target message based on the first file information and the first reminder identification information, and send the target message to a server corresponding to the target group chat.
  • the first file information and the first reminder identification information are among the M pieces of content information, and the first reminder identification information is generated based on at least one contact identification.
  • the user can edit a new message by selecting file information and selecting at least one contact identifier in the target group chat, and calmly triggering the electronic device to generate a target based on the file information and reminder identifier information selected by the user message, and send the target message to the server corresponding to the target group chat, so that the contact selected by the user can view the corresponding file content, thereby improving the efficiency of the electronic device sending the file and prompting the relevant contact to view.
  • the display unit 106 is further configured to display a message preview interface, where the message preview interface includes a text input box.
  • the user input unit 107 is further configured to receive the user's input of the first text content information in the text input box.
  • the processor 110 is specifically configured to generate a target message based on the first file information, the at least one contact identifier and the first text content information.
  • the first text content information is among the M pieces of content information.
  • the electronic device may display a message preview interface and display a text input box in the message preview interface, so that the user can enter the text input box in the message preview interface.
  • the electronic device After inputting the text in the text, trigger the electronic device to generate a target message based on the first file information, at least one contact identifier and the first text content information and send it to the target group chat, so that the user can check the display effect of the sent target message in advance, which improves the The flexibility of electronic devices to send messages.
  • the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042. Such as camera) to obtain still pictures or video image data for processing.
  • the display unit 106 may include a display panel 1061, which 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 a touch panel 1071 and other input devices 1072 .
  • the touch panel 1071 is also called a touch screen.
  • the touch panel 1071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 1072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which are not described herein again.
  • Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems.
  • the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and application programs, and the like, and the modem processor mainly handles wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 110 .
  • the embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method for sending a message can be implemented, and the same can be achieved. In order to avoid repetition, the technical effect will not be repeated here.
  • the processor is the processor in the electronic device described in the foregoing embodiments.
  • the readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • An embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement the above message sending method embodiments
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is configured to run a program or an instruction to implement the above message sending method embodiments
  • the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, a system-on-chip, a system-on-a-chip, or a system-on-a-chip, or the like.
  • the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation.
  • the technical solution of the present application can be embodied in the form of a software product in essence or in a part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, CD-ROM), including several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in the various embodiments of this application.
  • a storage medium such as ROM/RAM, magnetic disk, CD-ROM

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Theoretical Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种消息发送方法、装置及电子设备,属于通信技术领域。该方法包括:在显示目标群聊的界面、且目标群聊的界面中包括目标消息的情况下,接收用户对目标消息的第一输入,该目标消息包括M个内容信息;响应于第一输入,显示M个内容信息对应的M个控件,一个内容信息对应一个控件;接收用户对M个控件中的目标控件的第二输入;响应于第二输入,编辑目标消息,将目标控件对应的目标内容信息替换为第一内容信息,生成第一消息,以及,向目标群聊对应的服务器发送第一消息。本申请实施例应用于电子设备在群聊中发送文件的过程中。

Description

消息发送方法、装置及电子设备
相关申请的交叉引用
本申请主张在2021年4月2日在中国提交的中国专利申请号202110362042.X的优先权,其全部内容通过引用包含于此。
技术领域
本申请公开了一种消息发送方法、装置及电子设备,属于通信技术领域。
背景技术
当前电子设备的社交类应用程序的功能丰富多样,不仅给用户提供了文字聊天功能、语音聊天功能、语音通话功能、视频通话功能,还为用户提供了收发文件功能、分享位置功能、分享信息功能等。
在相关技术中,在群聊的场景下,用户需要把文件(文档、图片、视频、音频等文件)发送给某些联系人,则用户可以将文件发送到群聊,再用单独的一条消息(即通过@联系人的方式)提示这些联系人进行查看;或者先通过@联系人的方式提示这些联系人,然后再发送文件。
然而上述方法中,都需要通过多个步骤才能够达到对应的效果。并且,若用户发送过文件之后,还没有来得及@这些联系人,就有其他联系人发送了消息,则会把联系人发送的多个消息(即发送的文件和@联系人的消息)给割裂开;或者,若用户需要发送多个文件且需要多个不同的联系人查看,则会看到群聊中包括多个分散的文件和多个@联系人的消息,这种情况下,所有联系人并不方便对应哪些文件是需要自己查看的文件。因此,用户的操作繁琐且耗时,从而电子设备发送文件并提示相关的联系人查看的效率较低。
发明内容
本申请实施例的目的是提供一种消息发送方法、装置及电子设备,能够解决发送文件并提示相关的联系人查看的效率较低的问题。
为了解决上述技术问题,本申请是这样实现的:
第一方面,本申请实施例提供了一种消息发送方法,该方法包括:在显示目标群聊的界面、且目标群聊的界面中包括目标消息的情况下,接收用户对目标消息的第一输入,该目标消息包括M个内容信息,M为正整数;响应于第一输入,显示M个内容信息对应的M个控件,一个内容信息对应一个控件;接收用户对M个控件中的目标控件的第二输入;响应于第二输入,编辑目标消息,将目标控件对应的目标内容信息替换为第一内容信息,生成第一消息,以及,向目标群聊对应的服务器发送第一消 息;其中,第一内容信息与目标内容信息为同类型的内容信息,第一消息由第一内容信息和M-1个内容信息构成,M-1个内容信息为M个内容信息中,除目标内容信息外的内容信息。
第二方面,本申请实施例提供了一种消息发送装置,该装置包括:接收模块、显示模块、编辑模块、生成模块和发送模块。其中,接收模块,用于在显示目标群聊的界面、且目标群聊的界面中包括目标消息的情况下,接收用户对目标消息的第一输入,该目标消息包括M个内容信息,M为正整数。显示模块,用于响应于接收模块接收的第一输入,显示M个内容信息对应的M个控件,一个内容信息对应一个控件。接收模块,还用于接收用户对M个控件中的目标控件的第二输入。编辑模块,用于响应于接收模块接收的第二输入,编辑目标消息,将目标控件对应的目标内容信息替换为第一内容信息。生成模块,用于生成第一消息。发送模块,用于向目标群聊对应的服务器发送第一消息。其中,第一内容信息与目标内容信息为同类型的内容信息,第一消息由第一内容信息和M-1个内容信息构成,M-1个内容信息为M个内容信息中,除目标内容信息外的内容信息。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
在本申请实施例中,在电子设备显示目标群聊的界面、且在目标群聊的界面中包括目标消息时,用户可以对该目标消息进行第一输入,从而触发电子设备显示目标消息包括的M个内容信息所对应的M个控件。进而用户可以再对该M个控件中的目标控件进行输入,以触发电子设备编辑目标消息,将该目标控件对应的目标内容信息替换为第一内容信息,以基于第一内容信息和M个内容信息中除目标内容信息外的M-1个内容信息生成第一消息,以及向目标群聊对应的服务器发送第一消息。因此可以通过在一个历史发送过的消息的基础上,对该消息进行重新编辑修改,以得到一个新的消息并再次发送该新的消息。而无需用户重新编辑一个或多个新的消息,以发送文件并提示相关的联系人进行查看。从而简化用户的操作,提高了电子设备发送文件并提示相关的联系人查看的效率。
附图说明
图1是本申请实施例提供的一种消息发送方法的示意图之一;
图2是本申请实施例提供的一种手机的界面的实例示意图之一;
图3是本申请实施例提供的一种手机的界面的实例示意图之二;
图4是本申请实施例提供的一种消息发送方法的示意图之二;
图5是本申请实施例提供的一种手机的界面的实例示意图之三;
图6是本申请实施例提供的一种消息发送方法的示意图之三;
图7是本申请实施例提供的一种手机的界面的实例示意图之四;
图8是本申请实施例提供的一种消息发送方法的示意图之四;
图9是本申请实施例提供的一种手机的界面的实例示意图之五;
图10是本申请实施例提供的一种手机的界面的实例示意图之六;
图11是本申请实施例提供的一种消息发送装置的结构示意图;
图12是本申请实施例提供的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
本申请实施例提供的消息发送方法可以应用于电子设备通过群聊发送消息,并提醒相关联系人进行查看的场景中。具体的应用场景可以根据使用需求而定,本申请不做限定。
以在群聊中发送文件,并提醒相关联系人进行查看为例进行说明,假设电子设备当前显示的界面为群聊的界面,并且在该群聊的界面中包括有一条历史消息(该历史消息为用户发送的一个文件1并提醒联系人1和联系人2进行查看的消息),若用户需要再次发送一个文件2并提醒联系人2、联系人3和联系人4进行查看,则用户可以对该群聊的界面中的历史消息进行输入,从而触发电子设备显示该历史消息所包括的多个内容信息(即文件1、联系人1的标识和联系人2的标识)对应的多个控件,用户可以通过对该多个控件中的目标控件进行输入,以触发电子设备重新编辑该消息,例如删除多个内容信息中的文件1,并添加文件2;以及删除多个内容信息中的联系人1的标识,并添加联系人3的标识和联系人4的标识,从而电子设备可以基于新添加的内容信息和未删除的内容信息生成一条新的消息,并发送至群聊中,以将文件2发送至群聊中,并提醒联系人2、联系人3和联系人4进行查看。而无需用户再重新编 辑一条新的消息。
在本申请实施例中,用户可以通过对发送的历史消息进行重新编辑,以得到一条新的消息并发送至群聊中,从而可以简化用户的操作,提高了电子设备发送文件并提示相关的联系人查看的效率。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的消息发送方法进行详细地说明。
本申请实施例提供一种消息发送方法,图1示出了本申请实施例提供的一种消息发送方法的流程图,该方法可以应用于电子设备。如图1所示,本申请实施例提供的消息发送方法可以包括下述的步骤201至步骤204。
步骤201、在显示目标群聊的界面、且目标群聊的界面中包括目标消息的情况下,电子设备接收用户对目标消息的第一输入。
本申请实施例中,上述目标消息包括M个内容信息,M为正整数。
本申请实施例中,在电子设备显示目标群聊的界面,且在该目标群聊的界面中包括有目标消息(即历史发送的消息)时,用户可以对该目标消息进行输入,以触发电子设备显示该目标消息包括的M个内容信息所对应的M个控件,从而用户可以再对该M个控件中的目标控件进行输入,以对该目标消息包括的内容信息进行编辑,从而删除目标控件对应的目标内容信息,并基于第一内容信息和M个内容信息中除目标内容信息外的M-1个内容信息,生成一条新的消息(即第一消息),以及,向目标群聊对应的服务器发送该第一消息。
需要说明的是,上述目标群聊的界面为多个联系人对应的会话界面,该多个联系人均可以在该会话界面中发送消息以供其他联系人(即多个联系人中除发送消息的联系人)查看,并且能够查看到其他联系人发送的消息。在该目标群聊的界面中,可以包括有多条历史消息,上述目标消息为任意联系人所发送的历史消息。并且,该目标消息具体可以为文件、图片、视频、音频等形式的消息。
可选地,本申请实施例中,上述用户对目标消息的第一输入可以为以下任一项:长按输入、点击输入,敲击输入、拖动输入等。
可选地,本申请实施例中,上述目标消息包括的M个内容信息可以为以下至少一项:文件信息、提醒标识信息、文字内容信息、语音内容信息等。
可选地,本申请实施例中,上述提醒标识信息可以包括以下至少一项:联系人昵称、联系人头像、联系人账号等。
需要说明的是,上述用户对目标消息的输入可以理解为用户在目标消息所在的显示区域的输入,即用户手指的输入位置可以为目标消息所对应的任意区域,例如:用户手指的输入位置可以覆盖文件信息、或者用户手指的输入位置可以覆盖提醒标识信息、或者用户手指的输入位置可以覆盖文字内容信息等。
步骤202、电子设备响应于第一输入,显示M个内容信息对应的M个控件。
本申请实施例中,上述M个内容信息中的一个内容信息对应M个控件中的一个控件。
在一种实现方式中,电子设备根据用户对目标消息的第一输入,显示M个控件,该M个控件可以为以下至少一项:文件替换控件、收件人替换控件和文本替换控件等。
示例性的,以电子设备为手机为例进行说明。如图2所示,手机显示目标群聊界面10,在该目标群聊界面10中包括有目标消息11,并且该目标消息11包括3个内容信息:文件信息12、提醒标识信息13和文字内容信息14。
结合图2,如图3中的(A)所示,用户可以对目标消息11进行输入,以触发手机显示三个控件,即文件信息12对应的文件替换控件15、提醒标识信息13对应的收件人替换控件16和文字内容信息14对应的文本替换控件17。从而用户可以对这些控件进行选择输入,以触发手机编辑对应的内容信息。
在另一种实现方式中,电子设备根据用户对目标消息的第一输入,将目标消息包括的M个内容信息分开显示(即将一个完整的目标消息,拆分成M个模块独立显示),并且在每一个内容信息上对应的显示一个删除控件(即M个内容信息对应显示M个删除控件)。
结合图2,如图3中的(B)所示,用户可以对目标消息11进行输入,以触发手机将包含文件信息12、提醒标识信息13和文字内容信息14的目标消息11拆分显示,并分别在拆分显示后的文件信息12、提醒标识信息13和文字内容信息14上显示删除控件18。从而用户可以对这些删除控件18进行选择输入,以触发手机编辑对应的内容信息。
步骤203、电子设备接收用户对M个控件中的目标控件的第二输入。
在一种实现方式中,当显示的M个控件为:文件替换控件、收件人替换控件和文本替换控件时,用户可以对这三个控件中的任意一个控件(即目标控件)进行选择输入,以触发电子设备重新选择待发送的文件,或者重新选择收件人(即需要查看文件的联系人),或者重新编辑文本信息等。
在另一种实现方式中,当M个内容信息分开显示,并且在每一个内容信息上对应的显示一个删除控件时,用户可以对需要替换的内容信息所对应的删除控件进行输入,从而可以直接重新选择待发送的文件,或者重新选择收件人,或者重新编辑文本信息;或者,用户可以直接重新选择待发送的文件(或重新选择收件人,或重新编辑文本信息),以触发电子设备编辑目标消息。
步骤204、电子设备响应于第二输入,编辑目标消息,将目标控件对应的目标内容信息替换为第一内容信息,生成第一消息,以及,向目标群聊对应的服务器发送第一消息。
本申请实施例中,上述第一内容信息与目标内容信息为同类型的内容信息,上述第一消息由第一内容信息和M-1个内容信息构成,该M-1个内容信息为上述M个内 容信息中,除目标内容信息外的内容信息。
可选地,本申请实施例中,上述第一内容信息为用户新添加的内容信息,该第一内容信息与目标控件所对应的内容信息存在对应关系,即该第一内容信息与目标控件所对应的内容信息可以为同类型的内容信息。该第一内容信息可以为以下任一项:文件信息、提醒标识信息和文字内容信息,语音内容信息等。
具体的,在目标控件所对应的内容信息为文件信息的情况下,上述第一内容信息可以为以下任一项:文件、图片、视频、音频等文件;在目标控件所对应的内容信息为提醒标识信息的情况下,上述第一内容信息可以为用户重新选择的联系人标识;在目标控件所对应的内容信息为文字内容信息的情况下,上述第一内容信息可以为用户重新编辑的文本内容或语音内容等。
可选地,本申请实施例中,在用户确定目标控件对应的第一内容信息之后,电子设备可以根据该第一内容信息与M个内容信息中除目标内容信息外的内容信息生成新的消息(即第一消息),并发送至目标群聊,以供对应的联系人进行查看。
需要说明的是,本申请实施例中,电子设备可以将发送的文件和文字作为一个整体发送(即将发送的文件和文字组合成一个消息体进行发送),并标识文件接收的联系人,以方便用户快捷筛选需要自己关注的文件。从而通过在发送的文件消息体上面显示接收人的头像或者昵称标识的形式提醒联系人。
本申请实施例提供一种消息发送方法,在电子设备显示目标群聊的界面、且在目标群聊的界面中包括目标消息时,用户可以对该目标消息进行第一输入,从而触发电子设备显示目标消息包括的M个内容信息所对应的M个控件。进而用户可以再对该M个控件中的目标控件进行输入,以触发电子设备编辑目标消息,将该目标控件对应的目标内容信息替换为第一内容信息,以基于第一内容信息和M个内容信息中除目标内容信息外的M-1个内容信息生成第一消息,以及向目标群聊对应的服务器发送第一消息。因此可以通过在一个历史发送过的消息的基础上,对该消息进行重新编辑修改,以得到一个新的消息并再次发送该新的消息。而无需用户重新编辑一个或多个新的消息,以发送文件并提示相关的联系人进行查看。从而简化用户的操作,提高了电子设备发送文件并提示相关的联系人查看的效率。
可选地,本申请实施例中,上述目标内容信息包括以下任一项:文件信息、提醒标识信息,该提醒标识信息用于提醒对应的联系人查看文件信息,结合图1,如图4所示,在上述步骤204中的“将目标控件对应的目标内容信息替换为第一内容信息,生成第一消息”之前,本申请实施例提供的消息发送方法还可以包括下述的步骤301至步骤303。
步骤301、电子设备响应于第二输入,编辑目标消息,显示目标界面。
本申请实施例中,上述目标界面中包括N个内容信息,N为正整数。
可选地,本申请实施例中,在用户通过第二输入编辑目标消息时,电子设备可以 在目标内容信息对应的显示位置显示内容添加控件,从而用户可以对该内容添加控件进行输入,以触发电子设备显示目标界面。
可选地,本申请实施例中,上述目标界面可以为以下任一项:文件选择界面、联系人选择界面等。在文件选择界面中包括有多个文件供用户选择;在联系人选择界面中包括有目标群聊所对应的全部联系人的联系人标识供用户选择。
需要说明的是,上述目标界面为根据目标控件对应的目标内容信息所确定的,在目标内容信息为文件信息的情况下,目标界面为文件选择界面;在目标内容信息为提醒标识信息的情况下,目标界面为联系人标识选择界面;在目标内容信息为文字内容信息的情况下,目标界面为文本编辑界面。
步骤302、电子设备接收用户对N个内容信息中的第二内容信息的第三输入。
本申请实施例中,在上述目标内容信息包括文件信息的情况下,上述N个内容信息为:电子设备中存储的文件信息;在上述目标内容信息包括提醒标识信息的情况下,上述N个内容信息为:目标群聊中的N个联系人分别对应的内容信息,一个内容信息对应一个联系人。
可选地,本申请实施例中,在目标界面为文件选择界面的情况下,上述N个内容信息为N个文件;在目标界面为联系人选择界面的情况下,上述N个内容信息为目标群聊所对应的N个联系人标识。
示例性的,结合图3中的(B),如图5中的(A)所示,在用户对提醒标识信息13对应的删除控件18进行输入之后,可以显示添加收件人控件19,从而用户可以对该添加收件人控件19进行输入,如图5中的(B),手机可以显示收件人选择界面,以供用户选择收件人。
步骤303、电子设备响应于第三输入,将第二内容信息确定为第一内容信息。
可选地,本申请实施例中,电子设备可以根据用户对文件信息或N个联系人分别对应的内容信息的选择输入,将用户所选择的内容信息确定为第一内容信息,从而将该第一内容信息与M个内容信息中除目标内容信息外的内容信息组合得到第一消息并发送。
可以理解,本申请实施例可以应用的具体场景可以为:在用户已发送目标消息的情况下,若用户需要将第一文件(即目标内容信息)发给其他接收人,则用户可以长按目标内容信息(即第一文件以及对应的文字),以进入编辑模式,该编辑模式可以直接在输入框中或者一个独立的界面中将所有元素展示出来(包括接收文件的联系人、文件标识、文本内容等)分别作为一个控件,每个控件独立且带有删除控件(用于快速删除对应的内容)。如想用户需要更换接收文件的联系人,则只需要点击接收文件的联系人所对应的删除控件,以删除原有的联系人人,然后再重新选择新的联系人;若用户需要替换发送的文件,可以点击文件标识的删除控件,然后再重新选择新的文件;若想替换文本内容,可以点击文本内容即可进入编辑文本状态。所有内容编辑完 成后,点击发送即可发送至群聊。
或者,在用户已发送目标消息的情况下,若用户需要将第一文件(即目标内容信息)发给其他接收人,则用户可以长按目标内容信息(即第一文件以及对应的文字),以触发电子设备在目标群聊的界面悬浮弹出相关功能菜单:文件替换控件、收件人替换控件、文本替换控件。用户可以选择对应的控件,以触发电子设备进行相关操作。例如:选择文件替换控件,进入选择文件的界面;选择收件人替换控件,进入联系人选择界面;选择文本替换控件,进入文本编辑界面。上述任何操作完成后,均会将更新后的消息体展示在编辑框中,用户点击发送即可把新消息发送至群聊中。
需要说明的是,在执行上述步骤301至步骤303的情况下,上述步骤204的具体内容可以为“电子设备将目标控件对应的目标内容信息替换为第一内容信息,生成第一消息,以及,向目标群聊对应的服务器发送第一消息”。
本申请实施例中,在用户触发电子设备删除的目标控件对应的目标内容信息为文件信息或提醒标识信息的情况下,电子设备可以显示包括有N个内容信息的目标界面,从而用户可以从显示的N个内容信息中选择所需的内容信息,以触发电子设备将所选的内容信息确定为第一内容信息。进而电子设备可以将用户所选的内容信息与M个内容信息中除目标内容信息外的内容信息组合得到第一消息并发送至目标群聊,提高了电子设备发送消息的灵活性。
可选地,本申请实施例中,上述目标内容信息为文字内容信息,结合图1,如图6所示,在上述步骤204中的“将目标控件对应的目标内容信息替换为第一内容信息,生成第一消息”之前,本申请实施例提供的消息发送方法还可以包括下述的步骤401至步骤403。
步骤401、电子设备响应于第二输入,编辑目标消息,显示文本输入框。
可选地,本申请实施例中,在用户通过第二输入编辑目标消息时,电子设备可以在目标内容信息对应的显示位置显示文本输入框,从而用户可以在该文本输入框中输入文字信息。
可选地,本申请实施例中,用户还可以在文本输入框中进行语音输入,以得到语音消息。本申请中不限定用户在文本输入框中的输入形式,输入形式可以为文字输入也可以为语音输入,具体的输入形式根据实际使用需求而定。
步骤402、电子设备接收用户在文本输入框中对目标文字内容信息的第四输入。
示例性的,结合图3中的(B),如图7所示,在用户对文字内容信息14对应的删除控件18进行输入之后,手机可以删除文字内容信息14,并显示文本输入框20,从而用户可以在该文本输入框20中进行文字输入,以得到新的目标文字内容信息。
步骤403、电子设备响应于第四输入,将目标文字内容信息,确定为第一内容信息。
可选地,本申请实施例中,电子设备可以将用户在文本输入框中输入的目标文字 信息确定为第一内容信息,以将目标内容信息替换为第一内容信息。从而可以将该第一内容信息与M个内容信息中除目标内容信息外的内容信息组合得到第一消息并发送至目标群聊。
需要说明的是,在执行上述步骤401至步骤403的情况下,上述步骤204的具体内容可以为“电子设备将目标控件对应的目标内容信息替换为第一内容信息,生成第一消息,以及,向目标群聊对应的服务器发送第一消息”。
本申请实施例中,在用户触发电子设备删除的目标控件对应的目标内容信息为文字内容信息的情况下,电子设备可以显示文本输入框,从而用户可以在该文本输入框中进行文字输入,以得到目标文字内容信息,以触发电子设备将文本输入框中的目标文字内容信息确定为第一内容信息。进而电子设备可以将该目标文字内容信息与M个内容信息中除目标内容信息外的内容信息组合得到第一消息并发送至目标群聊,提高了电子设备发送消息的灵活性。
可选地,本申请实施例中,结合图1,如图8所示,在上述步骤201之前,本申请实施例提供的消息发送方法还可以包括下述的步骤501和步骤502。
步骤501、在选中第一文件信息、且显示目标群聊中的N个联系人标识的情况下,电子设备接收用户的第五输入。
本申请实施例中,上述第五输入用于选择N个联系人标识中的至少一个联系人标识。
可选地,本申请实施例中,上述第一文件信息为用户所选择的待发送的文件,在用户选择第一文件信息之后,电子设备可以显示联系人标识选择界面,以供用户选择对应的联系人。
可选地,本申请实施例中,在电子设备显示目标群聊的界面的情况下,用户可以对文件选择控件进行输入,以触发电子设备显示文件列表界面,从而用户可以选择待发送的文件。
进一步的,在用户确定待发送的文件之后,用户可以对选择联系人控件进行输入,以触发电子设备显示联系人标识选择界面,从而用户可以选择的对应的联系人,该联系人标识选择界面可以是列表形式展现,也可以是悬浮框形式展示,用户所选择的联系人可以是1个联系人,也可以是多个联系人。
可选地,本申请实施例中,用户选择文件的入口,可以直接从目标群聊的界面中进行选择文件,也可以是直接从电子设备的文件管理/相册等文件存储应用程序中找到文件,并通过长按等方式分享到目标群聊中。
示例性的,结合图2,如图9中的(A)所示,用户可以对手机显示的目标群聊界面10中包括的文件选择控件21进行输入,以触发手机可以显示文件选择界面22,进而用户可以在文件选择界面22中对第一文件23进行选择输入,并在手机勾选了该第一文件23之后,对联系人选择控件24进行输入,如图9中的(B)所示,手机可以 显示联系人选择界面25,从而用户可以对该联系人选择界面25中包括的多个联系人标识26进行选择输入,在手机确定了第一文件23对应的多个联系人之后,手机可以根据第一文件和多个联系人标识生成目标消息。
步骤502、电子设备响应于第五输入,基于第一文件信息和第一提醒标识信息生成目标消息,并向目标群聊对应的服务器发送目标消息。
本申请实施例中,上述第一文件信息和第一提醒标识信息是M个内容信息中的,第一提醒标识信息是基于至少一个联系人标识生成的。
可选地,本申请实施例中,电子设备可以将第一文件信息和第一提醒标识信息进行组合,以生成一条组合消息(即目标消息)发送至目标群聊。
本申请实施例中,用户可以通过选择文件信息,并选择目标群聊中的至少一个联系人标识的方式,编辑一条新的消息,从容触发电子设备基于用户选择的文件信息和提醒标识信息生成目标消息,并向目标群聊对应的服务器发送目标消息,以供用户选择的联系人查看对应的文件内容,从而提高了电子设备发送文件并提示相关的联系人查看的效率。
可选地,本申请实施例中,在上述步骤502中的“向目标群聊对应的服务器发送目标消息”之前,本申请实施例提供的消息发送方法还可以包括下述的步骤601和步骤602,并且,上述步骤502中的“基于第一文件信息和第一提醒标识信息生成目标消息”具体可以通过下述的步骤502a实现。
步骤601、电子设备响应于第五输入,基于第一文件信息和第一提醒标识信息生成目标消息,并显示消息预览界面。
本申请实施例中,上述消息预览界面中包括文本输入框。
可选地,本申请实施例中,在电子设备根据第一文件信息和第一提醒标识信息生成目标消息之后,电子设备可以先显示消息预览界面,并在消息预览界面中显示文本输入框,从而用户可以进行文本输入。
可选地,本申请实施例中,上述消息预览界面中显示有目标消息的预览样式供用户查看,该目标消息的预览样式为电子设备中预设的预览样式,用户可以在设置界面中选择目标消息的预览样式。
步骤602、电子设备接收用户在文本输入框中对第一文字内容信息的输入。
可选地,本申请实施例中,用户还可以在文本输入框中对语音内容信息进行输入,本申请中对用户在文本输入框中输入的内容信息形式不做限定,可以为文字形式或语音形式。
示例性的,结合图9中的(B),如图10中的(A)所示,在用户确定待发送的文件和该文件对应的联系人之后,手机可以显示消息预览界面27,并在该消息预览界面27中显示目标消息28和文本输入框29,从而用户可以在该文本输入框29中进行文字输入,以对发送的目标消息28进行描述说明,并在文字输入完成之后,对发送控 件进行输入,如图10中的(B)所示,为目标消息28发送至目标群聊的界面,在该目标群聊的界面中,目标消息28为一个组合消息(即通过文件信息、提醒标识信息和文字内容信息构成的组合消息)。
步骤502a、电子设备基于第一文件信息、至少一个联系人标识和第一文字内容信息生成目标消息,并向目标群聊对应的服务器发送目标消息。
本申请实施例中,上述第一文字内容信息是M个内容信息中的。
可选地,本申请实施例中,电子设备可以根据至少一个联系人标识生成提醒标识信息,从而将第一文件信息、至少一个联系人标识对应的提醒标识信息和第一文字内容信息组合得到目标消息。
可以理解,本申请实施例中,电子设备可以将选择的文件内容、至少一个联系人标识组合成一个消息体(即目标消息),同时展示给用户提供消息体预览界面,方便用户发送前可看到效果,并在该预览界面中可以输入文字内容。其中,组合的消息体显示效果,可以是文件文字上下排版或者左右排版,以及消息体上是否显示收件人的头像、昵称等。发送的消息体,自动携带@属性,可以@对应的联系人,以提醒这些联系人及时查看文件。
本申请实施例中,在用户选择并确定第一文件信息和至少一个联系人标识之后,电子设备可以显示消息预览界面并在该消息预览界面中显示文本输入框,从而用户可以在该文本输入框中输入文字后,再触发电子设备基于第一文件信息、至少一个联系人标识和第一文字内容信息生成目标消息并发送至目标群聊,从而用户可以预先查看发送的目标消息的显示效果,提高了电子设备发送消息的灵活性。
需要说明的是,本申请实施例提供的消息发送方法,执行主体可以为消息发送装置,或者该消息发送装置中的用于执行消息发送方法的控制模块。本申请实施例中以消息发送装置执行加载消息发送方法为例,说明本申请实施例提供的消息发送装置。
图11示出了本申请实施例中涉及的消息发送装置的一种可能的结构示意图。如图11所示,消息发送装置70可以包括:接收模块71、显示模块72、编辑模块73、生成模块74和发送模块75。
其中,接收模块71,用于在显示目标群聊的界面、且目标群聊的界面中包括目标消息的情况下,接收用户对目标消息的第一输入,该目标消息包括M个内容信息,M为正整数。显示模块72,用于响应于接收模块71接收的第一输入,显示M个内容信息对应的M个控件,一个内容信息对应一个控件。接收模块71,还用于接收用户对M个控件中的目标控件的第二输入。编辑模块73,用于响应于接收模块71接收的第二输入,编辑目标消息,将目标控件对应的目标内容信息替换为第一内容信息。生成模块74,用于生成第一消息。发送模块75,用于向目标群聊对应的服务器发送第一消息。其中,第一内容信息与目标内容信息为同类型的内容信息,第一消息由第一内容信息和M-1个内容信息构成,M-1个内容信息为M个内容信息中,除目标内容信息外的内 容信息。
在一种可能的实现方式中,目标内容信息包括以下任一项:文件信息、提醒标识信息,该提醒标识信息用于提醒对应的联系人查看文件信息。显示模块72,还用于在编辑模块将目标控件对应的目标内容信息替换为第一内容信息之前,显示目标界面,该目标界面中包括N个内容信息,N为正整数。接收模块71,还用于接收用户对N个内容信息中的第二内容信息的第三输入。本申请实施例提供的消息发送装置70还可以包括:确定模块。其中,确定模块,用于响应于接收模块71接收的第三输入,将第二内容信息确定为第一内容信息。其中,在目标内容信息包括文件信息的情况下,N个内容信息为:电子设备中存储的文件信息;在目标内容信息包括提醒标识信息的情况下,N个内容信息为:目标群聊中的N个联系人分别对应的内容信息,一个内容信息对应一个联系人。
在一种可能的实现方式中,目标内容信息为文字内容信息。显示模块72,还用于在编辑模块将目标控件对应的目标内容信息替换为第一内容信息之前,显示文本输入框。接收模块71,还用于接收用户在文本输入框中对目标文字内容信息的第四输入。本申请实施例提供的消息发送装置70还可以包括:确定模块。其中,确定模块,用于响应于接收模块71接收的第四输入,将目标文字内容信息,确定为第一内容信息。
在一种可能的实现方式中,接收模块71,还用于在显示目标群聊的界面、且目标群聊的界面中包括目标消息的情况下,接收用户对目标消息的第一输入之前,并在选中第一文件信息、且显示目标群聊中的N个联系人标识的情况下,接收用户的第五输入,该第五输入用于选择N个联系人标识中的至少一个联系人标识。生成模块74,还用于响应于接收模块71接收的第五输入,基于第一文件信息和第一提醒标识信息生成目标消息。发送模块75,还用于向目标群聊对应的服务器发送目标消息。其中,第一文件信息和第一提醒标识信息是M个内容信息中的,第一提醒标识信息是基于至少一个联系人标识生成的。
在一种可能的实现方式中,显示模块72,还用于在发送模块75向目标群聊对应的服务器发送目标消息之前,显示消息预览界面,该消息预览界面中包括文本输入框。接收模块71,还用于接收用户在文本输入框中对第一文字内容信息的输入。生成模块74,具体用于基于第一文件信息、至少一个联系人标识和第一文字内容信息生成目标消息。其中,第一文字内容信息是M个内容信息中的。
本申请实施例提供的消息发送装置能够实现上述方法实施例中消息发送装置实现的各个过程,为避免重复,详细描述这里不再赘述。
本申请实施例提供一种消息发送装置,在电子设备显示目标群聊的界面、且在目标群聊的界面中包括目标消息时,用户可以对该目标消息进行第一输入,从而触发电子设备显示目标消息包括的M个内容信息所对应的M个控件。进而用户可以再对该M个控件中的目标控件进行输入,以触发电子设备编辑目标消息,将该目标控件对应 的目标内容信息替换为第一内容信息,以基于第一内容信息和M个内容信息中除目标内容信息外的M-1个内容信息生成第一消息,以及向目标群聊对应的服务器发送第一消息。因此可以通过在一个历史发送过的消息的基础上,对该消息进行重新编辑修改,以得到一个新的消息并再次发送该新的消息。而无需用户重新编辑一个或多个新的消息,以发送文件并提示相关的联系人进行查看。从而简化用户的操作,提高了电子设备发送文件并提示相关的联系人查看的效率。
本申请实施例中的消息发送装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的消息发送装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为iOS操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
可选地,本申请实施例还提供一种电子设备,包括处理器110,存储器109,存储在存储器109上并可在所述处理器110上运行的程序或指令,该程序或指令被处理器110执行时实现上述消息发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图12为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备100包括但不限于:射频单元101、网络模块102、音频输出单元103、输入单元104、传感器105、显示单元106、用户输入单元107、接口单元108、存储器109、以及处理器110等部件。
本领域技术人员可以理解,电子设备100还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图12中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,用户输入单元107,用于在显示目标群聊的界面、且目标群聊的界面中包括目标消息的情况下,接收用户对目标消息的第一输入,目标消息包括M个内容信息,M为正整数。
显示单元106,用于响应于第一输入,显示M个内容信息对应的M个控件,一个 内容信息对应一个控件。
用户输入单元107,还用于接收用户对M个控件中的目标控件的第二输入。
处理器110,用于响应于第二输入,编辑目标消息,将目标控件对应的目标内容信息替换为第一内容信息,生成第一消息,以及,向目标群聊对应的服务器发送第一消息。其中,M-1个内容信息为M个内容信息中,除目标内容信息外的内容信息。
本申请实施例提供一种电子设备,在电子设备显示目标群聊的界面、且在目标群聊的界面中包括目标消息时,用户可以对该目标消息进行第一输入,从而触发电子设备显示目标消息包括的M个内容信息所对应的M个控件。进而用户可以再对该M个控件中的目标控件进行输入,以触发电子设备编辑目标消息,将该目标控件对应的目标内容信息替换为第一内容信息,以基于第一内容信息和M个内容信息中除目标内容信息外的M-1个内容信息生成第一消息,以及向目标群聊对应的服务器发送第一消息。因此可以通过在一个历史发送过的消息的基础上,对该消息进行重新编辑修改,以得到一个新的消息并再次发送该新的消息。而无需用户重新编辑一个或多个新的消息,以发送文件并提示相关的联系人进行查看。从而简化用户的操作,提高了电子设备发送文件并提示相关的联系人查看的效率。
可选地,显示单元106,还用于显示目标界面,该目标界面中包括N个内容信息,N为正整数。
用户输入单元107,还用于接收用户对N个内容信息中的第二内容信息的第三输入。
处理器110,还用于响应于第三输入,将第二内容信息确定为第一内容信息。其中,在目标内容信息包括文件信息的情况下,N个内容信息为:电子设备中存储的文件信息;在目标内容信息包括提醒标识信息的情况下,N个内容信息为:目标群聊中的N个联系人分别对应的内容信息,一个内容信息对应一个联系人。
本申请实施例中,在用户触发电子设备删除的目标控件对应的目标内容信息为文件信息或提醒标识信息的情况下,电子设备可以显示包括有N个内容信息的目标界面,从而用户可以从显示的N个内容信息中选择所需的内容信息,以触发电子设备将所选的内容信息确定为第一内容信息。进而电子设备可以将用户所选的内容信息与M个内容信息中除目标内容信息外的内容信息组合得到第一消息并发送至目标群聊,提高了电子设备发送消息的灵活性。
显示单元106,还用于显示文本输入框。
用户输入单元107,还用于接收用户在文本输入框中对目标文字内容信息的第四输入。
处理器110,还用于响应于第四输入,将目标文字内容信息,确定为第一内容信息。
本申请实施例中,在用户触发电子设备删除的目标控件对应的目标内容信息为文 字内容信息的情况下,电子设备可以显示文本输入框,从而用户可以在该文本输入框中进行文字输入,以得到目标文字内容信息,以触发电子设备将文本输入框中的目标文字内容信息确定为第一内容信息。进而电子设备可以将该目标文字内容信息与M个内容信息中除目标内容信息外的内容信息组合得到第一消息并发送至目标群聊,提高了电子设备发送消息的灵活性。
用户输入单元107,还用于在选中第一文件信息、且显示目标群聊中的N个联系人标识的情况下,接收用户的第五输入,该第五输入用于选择N个联系人标识中的至少一个联系人标识。
处理器110,还用于响应于第五输入,基于第一文件信息和第一提醒标识信息生成目标消息,并向目标群聊对应的服务器发送目标消息。其中,第一文件信息和第一提醒标识信息是M个内容信息中的,第一提醒标识信息是基于至少一个联系人标识生成的。
本申请实施例中,用户可以通过选择文件信息,并选择目标群聊中的至少一个联系人标识的方式,编辑一条新的消息,从容触发电子设备基于用户选择的文件信息和提醒标识信息生成目标消息,并向目标群聊对应的服务器发送目标消息,以供用户选择的联系人查看对应的文件内容,从而提高了电子设备发送文件并提示相关的联系人查看的效率。
显示单元106,还用于显示消息预览界面,该消息预览界面中包括文本输入框。
用户输入单元107,还用于接收用户在文本输入框中对第一文字内容信息的输入。
处理器110,具体用于基于第一文件信息、至少一个联系人标识和第一文字内容信息生成目标消息。其中,第一文字内容信息是M个内容信息中的。
本申请实施例中,在用户选择并确定第一文件信息和至少一个联系人标识之后,电子设备可以显示消息预览界面并在该消息预览界面中显示文本输入框,从而用户可以在该文本输入框中输入文字后,再触发电子设备基于第一文件信息、至少一个联系人标识和第一文字内容信息生成目标消息并发送至目标群聊,从而用户可以预先查看发送的目标消息的显示效果,提高了电子设备发送消息的灵活性。
应理解的是,本申请实施例中,输入单元104可以包括图形处理器(Graphics Processing Unit,GPU)1041和麦克风1042,图形处理器1041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元106可包括显示面板1061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板1061。用户输入单元107包括触控面板1071以及其他输入设备1072。触控面板1071,也称为触摸屏。触控面板1071可包括触摸检测装置和触摸控制器两个部分。其他输入设备1072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器109可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器110可集成 应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器110中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述消息发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述消息发送方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (13)

  1. 一种消息发送方法,所述方法包括:
    在显示目标群聊的界面、且所述目标群聊的界面中包括目标消息的情况下,接收用户对所述目标消息的第一输入,所述目标消息包括M个内容信息,M为正整数;
    响应于所述第一输入,显示所述M个内容信息对应的M个控件,一个内容信息对应一个控件;
    接收用户对所述M个控件中的目标控件的第二输入;
    响应于所述第二输入,编辑所述目标消息,将所述目标控件对应的目标内容信息替换为第一内容信息,生成第一消息,以及,向所述目标群聊对应的服务器发送所述第一消息;
    其中,所述第一内容信息与所述目标内容信息为同类型的内容信息,所述第一消息由所述第一内容信息和M-1个内容信息构成,所述M-1个内容信息为所述M个内容信息中,除所述目标内容信息外的内容信息。
  2. 根据权利要求1所述的方法,其中,所述目标内容信息包括以下任一项:文件信息、提醒标识信息,所述提醒标识信息用于提醒对应的联系人查看所述文件信息;
    所述将所述目标控件对应的目标内容信息替换为第一内容信息,生成第一消息之前,所述方法还包括:
    显示目标界面,所述目标界面中包括N个内容信息,N为正整数;
    接收用户对所述N个内容信息中的第二内容信息的第三输入;
    响应于所述第三输入,将所述第二内容信息确定为所述第一内容信息;
    其中,在所述目标内容信息包括文件信息的情况下,所述N个内容信息为:电子设备中存储的文件信息;在所述目标内容信息包括提醒标识信息的情况下,所述N个内容信息为:所述目标群聊中的N个联系人分别对应的内容信息,一个内容信息对应一个联系人。
  3. 根据权利要求1所述的方法,其中,所述目标内容信息为文字内容信息;
    所述将所述目标控件对应的目标内容信息替换为第一内容信息,生成第一消息之前,所述方法还包括:
    显示文本输入框;
    接收用户在所述文本输入框中对目标文字内容信息的第四输入;
    响应于所述第四输入,将所述目标文字内容信息,确定为所述第一内容信息。
  4. 根据权利要求1至3中任一项所述的方法,其中,所述在显示目标群聊的界面、且所述目标群聊的界面中包括目标消息的情况下,接收用户对所述目标消息的第一输入之前,所述方法还包括:
    在选中第一文件信息、且显示所述目标群聊中的N个联系人标识的情况下,接收用户的第五输入,所述第五输入用于选择所述N个联系人标识中的至少一个联系人标 识;
    响应于所述第五输入,基于所述第一文件信息和第一提醒标识信息生成所述目标消息,并向所述目标群聊对应的服务器发送所述目标消息;
    其中,所述第一文件信息和所述第一提醒标识信息是所述M个内容信息中的,所述第一提醒标识信息是基于所述至少一个联系人标识生成的。
  5. 根据权利要求4所述的方法,其中,所述向所述目标群聊对应的服务器发送所述目标消息之前,所述方法还包括:
    显示消息预览界面,所述消息预览界面中包括文本输入框;
    接收用户在所述文本输入框中对第一文字内容信息的输入;
    所述基于所述第一文件信息和所述至少一个联系人标识生成所述目标消息,包括:
    基于所述第一文件信息、所述至少一个联系人标识和所述第一文字内容信息生成所述目标消息;
    其中,所述第一文字内容信息是所述M个内容信息中的。
  6. 一种消息发送装置,所述消息发送装置包括:接收模块、显示模块、编辑模块、生成模块和发送模块;
    所述接收模块,用于在显示目标群聊的界面、且所述目标群聊的界面中包括目标消息的情况下,接收用户对所述目标消息的第一输入,所述目标消息包括M个内容信息,M为正整数;
    所述显示模块,用于响应于所述接收模块接收的所述第一输入,显示所述M个内容信息对应的M个控件,一个内容信息对应一个控件;
    所述接收模块,还用于接收用户对所述M个控件中的目标控件的第二输入;
    所述编辑模块,用于响应于所述接收模块接收的所述第二输入,编辑所述目标消息,将所述目标控件对应的目标内容信息替换为第一内容信息;
    所述生成模块,用于生成第一消息;
    所述发送模块,用于向所述目标群聊对应的服务器发送所述第一消息;
    其中,所述第一内容信息与所述目标内容信息为同类型的内容信息,所述第一消息由所述第一内容信息和M-1个内容信息构成,所述M-1个内容信息为所述M个内容信息中,除所述目标内容信息外的内容信息。
  7. 根据权利要求6所述的消息发送装置,其中,所述目标内容信息包括以下任一项:文件信息、提醒标识信息,所述提醒标识信息用于提醒对应的联系人查看所述文件信息;
    所述显示模块,还用于在所述编辑模块将所述目标控件对应的目标内容信息替换为第一内容信息之前,显示目标界面,所述目标界面中包括N个内容信息,N为正整数;
    所述接收模块,还用于接收用户对所述N个内容信息中的第二内容信息的第三输 入;
    所述消息发送装置还包括:确定模块;
    所述确定模块,用于响应于所述接收模块接收的所述第三输入,将所述第二内容信息确定为所述第一内容信息;
    其中,在所述目标内容信息包括文件信息的情况下,所述N个内容信息为:电子设备中存储的文件信息;在所述目标内容信息包括提醒标识信息的情况下,所述N个内容信息为:所述目标群聊中的N个联系人分别对应的内容信息,一个内容信息对应一个联系人。
  8. 根据权利要求6所述的消息发送装置,其中,所述目标内容信息为文字内容信息;
    所述显示模块,还用于在所述编辑模块将所述目标控件对应的目标内容信息替换为第一内容信息之前,显示文本输入框;
    所述接收模块,还用于接收用户在所述文本输入框中对目标文字内容信息的第四输入;
    所述消息发送装置还包括:确定模块;
    所述确定模块,用于响应于所述接收模块接收的所述第四输入,将所述目标文字内容信息,确定为所述第一内容信息。
  9. 一种电子设备,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5中任一项所述的消息发送方法的步骤。
  10. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5中任一项所述的消息发送方法的步骤。
  11. 一种计算机软件产品,所述计算机软件产品被至少一个处理器执行以实现如权利要求1-5中任一项所述的消息发送方法。
  12. 一种电子设备,包括电子设备被配置成用于执行如权利要求1-5中任一项所述的消息发送方法。
  13. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5中任一项所述的消息发送方法。
PCT/CN2022/083454 2021-04-02 2022-03-28 消息发送方法、装置及电子设备 WO2022206699A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110362042.X 2021-04-02
CN202110362042.XA CN113300938B (zh) 2021-04-02 2021-04-02 消息发送方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2022206699A1 true WO2022206699A1 (zh) 2022-10-06

Family

ID=77319445

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/083454 WO2022206699A1 (zh) 2021-04-02 2022-03-28 消息发送方法、装置及电子设备

Country Status (2)

Country Link
CN (1) CN113300938B (zh)
WO (1) WO2022206699A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113300938B (zh) * 2021-04-02 2023-02-24 维沃移动通信有限公司 消息发送方法、装置及电子设备
CN114095886B (zh) * 2021-11-08 2023-07-28 维沃移动通信有限公司 信息发送方法、信息发送装置和电子设备
CN114221923B (zh) * 2021-12-16 2024-02-23 维沃移动通信有限公司 消息处理方法、装置和电子设备
CN114629864B (zh) * 2022-02-22 2024-04-16 维沃移动通信有限公司 消息发送方法、装置和电子设备
CN114928583A (zh) * 2022-04-13 2022-08-19 广西宏廷智能科技有限公司 一种数据信息的通讯方法及系统
CN114860117A (zh) * 2022-04-24 2022-08-05 Oppo广东移动通信有限公司 内容输入方法、装置以及电子设备
CN115622969B (zh) * 2022-09-22 2024-08-23 维沃移动通信有限公司 消息处理方法、装置、电子设备及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180309801A1 (en) * 2015-05-23 2018-10-25 Yogesh Chunilal Rathod Initiate call to present one or more types of applications and media up-to end of call
WO2018231306A1 (en) * 2017-06-15 2018-12-20 Google Llc Suggested items for use with embedded applications in chat conversations
CN110545232A (zh) * 2018-05-29 2019-12-06 阿里巴巴集团控股有限公司 群消息提示、数据处理方法及装置、电子设备及存储设备
CN111126301A (zh) * 2019-12-26 2020-05-08 腾讯科技(深圳)有限公司 一种图像处理方法、装置、计算机设备和存储介质
CN111277487A (zh) * 2020-01-16 2020-06-12 腾讯科技(深圳)有限公司 消息处理方法、装置、计算机可读存储介质和计算机设备
CN112261624A (zh) * 2019-12-31 2021-01-22 华为技术有限公司 应用中传输文件的方法、电子设备及系统
CN113300938A (zh) * 2021-04-02 2021-08-24 维沃移动通信有限公司 消息发送方法、装置及电子设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170214642A1 (en) * 2016-01-27 2017-07-27 Vonage Network Llc Systems and methods for managing delivery of media content to user communication terminals
CN107911556B (zh) * 2017-11-27 2021-04-13 珠海市魅族科技有限公司 联系人提醒方法、装置、计算机装置及计算机可读存储介质
CN111124221B (zh) * 2019-12-03 2022-02-25 维沃移动通信有限公司 文件发送方法及终端设备
CN112165553B (zh) * 2020-09-28 2021-12-07 维沃移动通信有限公司 图像生成方法、装置、电子设备及计算机可读存储介质
CN112333084B (zh) * 2020-10-30 2022-02-08 维沃移动通信有限公司 文件发送方法、装置及电子设备

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180309801A1 (en) * 2015-05-23 2018-10-25 Yogesh Chunilal Rathod Initiate call to present one or more types of applications and media up-to end of call
WO2018231306A1 (en) * 2017-06-15 2018-12-20 Google Llc Suggested items for use with embedded applications in chat conversations
CN110545232A (zh) * 2018-05-29 2019-12-06 阿里巴巴集团控股有限公司 群消息提示、数据处理方法及装置、电子设备及存储设备
CN111126301A (zh) * 2019-12-26 2020-05-08 腾讯科技(深圳)有限公司 一种图像处理方法、装置、计算机设备和存储介质
CN112261624A (zh) * 2019-12-31 2021-01-22 华为技术有限公司 应用中传输文件的方法、电子设备及系统
CN111277487A (zh) * 2020-01-16 2020-06-12 腾讯科技(深圳)有限公司 消息处理方法、装置、计算机可读存储介质和计算机设备
CN113300938A (zh) * 2021-04-02 2021-08-24 维沃移动通信有限公司 消息发送方法、装置及电子设备

Also Published As

Publication number Publication date
CN113300938A (zh) 2021-08-24
CN113300938B (zh) 2023-02-24

Similar Documents

Publication Publication Date Title
WO2022206699A1 (zh) 消息发送方法、装置及电子设备
WO2022121817A1 (zh) 群组创建方法、装置、设备及存储介质
WO2022001900A1 (zh) 信息发送方法、装置和电子设备
CN111857500B (zh) 消息显示方法、装置、电子设备及存储介质
US10015118B2 (en) Message handling method and terminal supporting the same
CN108306810A (zh) 一种群组组建方法、服务器及终端
WO2022156668A1 (zh) 信息处理方法和电子设备
WO2022089568A1 (zh) 文件分享的方法、装置和电子设备
CN113259222B (zh) 消息处理方法、装置和电子设备
WO2023131055A1 (zh) 消息发送方法、装置和电子设备
WO2022143521A1 (zh) 消息处理方法、装置及电子设备
WO2022161431A1 (zh) 显示方法、装置及电子设备
US12028298B2 (en) System for sharing mail for group collaboration
CN113676589B (zh) 未读消息显示方法、装置及电子设备
CN112565063B (zh) 消息处理方法、装置和电子设备
WO2023040845A1 (zh) 消息发送方法、装置及电子设备
WO2023165423A1 (zh) 一种消息处理方法及装置
WO2023125157A1 (zh) 消息发送方法、装置、电子设备及介质
WO2022156674A1 (zh) 聊天内容处理方法、装置及电子设备
WO2022068803A1 (zh) 文件处理方法、装置及电子设备
WO2022089481A1 (zh) 信息处理方法、装置及电子设备
WO2024093815A1 (zh) 数据共享方法、装置、电子设备及介质
CN113965614A (zh) 会话创建方法、装置和电子设备
WO2022228433A1 (zh) 信息处理方法、装置以及电子设备
CN113852540B (zh) 信息发送方法、信息发送装置和电子设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22778881

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22778881

Country of ref document: EP

Kind code of ref document: A1