Message sending method and device and electronic equipment

文档序号:1965868 发布日期:2021-12-14 浏览:17次 中文

阅读说明:本技术 消息发送方法、装置及电子设备 (Message sending method and device and electronic equipment ) 是由 奉光跃 于 2021-08-05 设计创作,主要内容包括:本申请公开了一种消息发送方法、装置及电子设备,属于通信技术领域。能够解决电子设备转发会话群组中的聊天信息的操作较为繁琐的问题。该方法包括:在第一会话群组接收到第一消息的情况下,确定与该第一会话群组关联的第二会话群组;通过目标群成员在该第二会话群组中发送第二消息,该第二消息与该第一消息相关联;其中,该第一会话群组和该第二会话群组中均包括目标群成员,目标群成员为在电子设备上登录的账户对应的群成员。(The application discloses a message sending method, a message sending device and electronic equipment, and belongs to the technical field of communication. The problem that the operation of forwarding the chat information in the conversation group by the electronic equipment is complex can be solved. The method comprises the following steps: determining a second session group associated with the first session group in case the first session group receives the first message; sending a second message in the second session group by a target group member, the second message associated with the first message; the first session group and the second session group both comprise target group members, and the target group members are group members corresponding to accounts logged in on the electronic equipment.)

1. A method for sending a message, the method comprising:

determining a second session group associated with a first session group if the first session group receives a first message;

sending, by a target group member, a second message in the second session group, the second message associated with the first message;

the first session group and the second session group both comprise the target group member, and the target group member is a group member corresponding to an account logged in on the electronic device.

2. The method of claim 1, wherein before sending the second message in the second session group, the method further comprises:

acquiring a first group member sending the first message;

the sending a second message in the second session group, comprising:

sending a second message in the second session group through a target group member under the condition that the group members of the second session group comprise the first group member, wherein the second message is used for reminding the first group member to send a message corresponding to the first message in the second session group;

or, when the first group member is not included in the group members of the second session group, a second message is sent in the second session group by a target group member, the second message corresponding to the first message.

3. The method of claim 1 or 2, wherein after determining the second session group associated with the first session group, and before sending the second message in the second session group, the method further comprises:

acquiring a group member set included in both the first session group and the second session group, wherein group members in the group member set have the authority of forwarding group messages;

the sending of the second message in the second session group by the target group member comprises:

sending a second message in the second session group by the target group member if the target group member is in the set of group members.

4. The method of claim 1, wherein prior to the determining the second session group associated with the first session group, the method further comprises:

associating the first session group and the second session group under the condition that the first session group and the second session group meet a preset condition;

wherein the preset condition comprises any one of the following conditions:

receiving a first input to the first session group and the second session group;

the number of group members included in the first session group and the second session group is greater than or equal to a first preset threshold;

the name of the first session group and the name of the second session group include the same keyword;

the time difference between the creation time of the first session group and the creation time of the second session group is less than or equal to a second preset threshold;

the first session group and the second session group include the same chat topic.

5. The method of claim 1, wherein the language type of the first message is a first language type;

before the sending, by the target group member, the second message in the second session group, the method further comprises:

and under the condition that the language type corresponding to the second conversation group is the second language type, converting the language type of the first message from the first language type into the second language type to obtain a second message.

6. A message transmission apparatus, characterized in that the message transmission apparatus comprises a determination module and a transmission module;

the determining module is used for determining a second session group associated with a first session group when the first session group receives a first message;

the sending module is configured to send, by a target group member, a second message in the second session group determined by the determining module, where the second message is associated with the first message;

the first session group and the second session group both comprise the target group member, and the target group member is a group member corresponding to an account logged in on the electronic device.

7. The apparatus of claim 6, wherein the message sending apparatus further comprises an obtaining module;

the acquiring module is configured to acquire a first group member that sends the first message;

the sending module is specifically configured to send a second message in the second session group through a target group member when the group member of the second session group includes the first group member acquired by the acquiring module, where the second message is used to remind the first group member to send a message corresponding to the first message in the second session group;

or, when the group member of the second session group does not include the first group member acquired by the acquisition module, a second message is sent in the second session group by a target group member, where the second message corresponds to the first message.

8. The apparatus of claim 6, wherein the message sending apparatus further comprises an obtaining module;

the acquiring module is configured to acquire a group member set included in each of the first session group and the second session group, where each group member in the group member set has a right to forward a group message;

the sending module is specifically configured to send a second message in the second session group through the target group member when the target group member is in the group member set.

9. The apparatus of claim 6, wherein the messaging apparatus further comprises a processing module;

the processing module is used for associating the first session group with the second session group under the condition that the first session group and the second session group meet preset conditions;

wherein the preset condition comprises any one of the following conditions:

receiving a first input to the first session group and the second session group;

the number of group members included in the first session group and the second session group is greater than or equal to a first preset threshold;

the name of the first session group and the name of the second session group include the same keyword;

the time difference between the creation time of the first session group and the creation time of the second session group is less than or equal to a second preset threshold;

the first session group and the second session group include the same chat topic.

10. The apparatus of claim 6, wherein the language type of the first message is a first language type; the message sending device also comprises a processing module;

the processing module is configured to, when the language type corresponding to the second session group is a second language type, convert the language type of the first message from the first language type to the second language type to obtain a second message.

11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the message sending method according to any one of claims 1-5.

12. A readable storage medium, on which a program or instructions are stored, which program or instructions, when executed by a processor, carry out the steps of the message sending method according to any one of claims 1-5.

Technical Field

The application belongs to the technical field of communication, and particularly relates to a message sending method, a message sending device and electronic equipment.

Background

With the development of communication technology, electronic devices are increasingly used, for example, users can chat, communicate with friends and the like using different social applications on the electronic devices.

Typically, a user may chat with a group member in a conversation group in a social application through an electronic device. If a user wants to share a chat message in one session group in the social application to another session group, the user needs to trigger the electronic device to copy the chat message, then trigger the electronic device to switch from the session interface of the one session group to the session interface of the another session group, and finally trigger the electronic device to paste the chat message in the session interface of the another session group and send the chat message, so that the operation of forwarding the message in the session group by the electronic device is cumbersome and inefficient.

Disclosure of Invention

The embodiment of the application aims to provide a message sending method, a message sending device and electronic equipment, and can solve the problem that the operation of forwarding chat information in a conversation group by the electronic equipment is complex.

In order to solve the technical problem, the present application is implemented as follows:

in a first aspect, an embodiment of the present application provides a message sending method, where the method includes: determining a second session group associated with the first session group in case the first session group receives the first message; sending a second message in the second session group by a target group member, the second message associated with the first message; the first session group and the second session group both comprise target group members, and the target group members are group members corresponding to accounts logged in on the electronic equipment.

In a second aspect, an embodiment of the present application provides a message sending apparatus, including: the device comprises a determining module and a sending module. The determining module is used for determining a second session group associated with the first session group under the condition that the first session group receives the first message. A sending module, configured to send, by the target group member, a second message in the second session group determined by the determining module, where the second message is associated with the first message; the first session group and the second session group both comprise target group members, and the target group members are group members corresponding to accounts logged in on the electronic equipment.

In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method as in the first aspect.

In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method as in the first aspect described above.

In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method as in the first aspect.

In the embodiment of the application, under the condition that a first message is received by a first session group, a second session group associated with the first session group is determined; and sending a second message in the second session group through the target group member, wherein the first session group and the second session group both comprise the target group member, and the target group member is a group member corresponding to the account logged in on the electronic device. By the scheme, after one session group receives the chat message, at least one session group associated with the one session group can be determined, so that the message associated with the chat message can be automatically sent to the at least one session group through group members included in both the one session group and the at least one session group, and therefore, the electronic device does not need to be frequently triggered by a user to copy the chat message from the one session group and switch to a session interface of the other session group to paste and send the chat message in the session interface of the other session group, namely, the operation of forwarding the chat message in the session group by the electronic device is simplified, and the efficiency of forwarding the chat message in the session group is improved.

Drawings

Fig. 1 is a schematic diagram of a message sending method according to an embodiment of the present application;

fig. 2 is a schematic structural diagram of a message sending apparatus according to an embodiment of the present application;

fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;

fig. 4 is a hardware schematic diagram of an electronic device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.

The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.

In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," should not be construed as advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.

In the description of the embodiments of the present application, unless otherwise specified, "a plurality" means two or more, for example, a plurality of elements means two or more elements, and the like.

The embodiment of the application provides a message sending method, a message sending device and electronic equipment, wherein a second session group associated with a first session group is determined under the condition that the first session group receives a first message; and sending a second message in the second session group through the target group member, wherein the first session group and the second session group both comprise the target group member, and the target group member is a group member corresponding to the account logged in on the electronic device. By the scheme, after one session group receives the chat message, at least one session group associated with the one session group can be determined, so that the message associated with the chat message can be automatically sent to the at least one session group through group members included in both the one session group and the at least one session group, and therefore, the electronic device does not need to be frequently triggered by a user to copy the chat message from the one session group and switch to a session interface of the other session group to paste and send the chat message in the session interface of the other session group, namely, the operation of forwarding the chat message in the session group by the electronic device is simplified, and the efficiency of forwarding the chat message in the session group is improved.

The message sending method, the message sending device and the electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

As shown in fig. 1, an embodiment of the present application provides a message sending method, which includes following steps S101 and S102.

S101, under the condition that the first conversation group receives the first message, the message sending device determines a second conversation group associated with the first conversation group.

Optionally, in this embodiment of the application, the first message is a chat message, a short message, or other possible messages. Further, the type of the first message may include at least one of: text type, voice type, video type, image type, etc. Wherein, in case that the first message is an image type, the first message may be a dynamic image or a static image.

Optionally, in this embodiment of the application, it is assumed that the first session group includes at least two group members, and an account that the electronic device logs in the first session group is one of the at least two group members. The "first session group receives the first message" in S101 may specifically include two possible situations: in one case, the first message is sent by at least two group members other than the one group member; alternatively, the first message is sent by the one group member (the user using the electronic device).

Optionally, in this embodiment of the application, the first session group and the second session group may be session groups in the same application program or session groups in different application programs.

Further, the number of the second session group may be one or more. Specifically, when the number of the second session groups is multiple, the following 3 possible cases may be specifically included for the first session group and the second session group being session groups in different applications:

the first possible scenario: the first session group is a session group in the first application program, and the second session groups are different session groups in the second application program.

The second possible scenario: the first session group is a session group in the first application, a part of session groups in the second session group are different session groups in the first application, and another part of session groups in the second session group are different session groups in the second application, that is, part of session groups in the first session group and the second session group belong to different applications.

A third possible scenario: the first session group is a session group in the first application, a part of session groups in the second session group are different session groups in the second application, and another part of session groups in the second session group are different session groups in the third application, that is, the first session group and the second session group completely belong to different applications, and the second session group can be a session group in a plurality of different applications.

Optionally, at least one association identifier may be stored in the electronic device, where one association identifier is used to indicate a second session group associated with the first session group, and the association identifier may be displayed on the identifier of the session group. Wherein, the association identifier may be any one of the following items: symbols, icons, numbers, graphics, colors, etc.

Further, the association identifier is different for different session groups associated with the first session group, i.e. different association identifiers are used for distinguishing and determining different session groups associated with the first session group.

For example, assume that there are 3 session groups, the 3 session groups respectively include session group 01, session group 02 and session group 03, and the 3 association identifiers are respectively 01, 02 and 03. When the association identifier is 01, determining a second session group associated with the first session group as the session group 01; when the association identifier is 02, determining a second session group associated with the first session group as the session group 02; when the association flag is 03, a second session group associated with the first session group is determined to be session group 03. That is, in this case, the first session group is associated with only one of the groups in the second session group. It is understood that if the association flag is displayed as 01, 02, 03, it is determined that the session group 01, the session group 02, and the session group 03 are all associated with the first session group, i.e., the second message can be sent to three second session groups through the target group member.

Optionally, before the step S101, the message sending method provided in the embodiment of the present application may further include: and under the condition that the first session group and the second session group meet the preset condition, the message sending device associates the first session group and the second session group. Wherein the preset condition comprises any one of the following conditions: receiving a first input to a first session group and a second session group; the number of group members included in the first session group and the second session group is larger than or equal to a first preset threshold value; the name of the first session group and the name of the second session group include the same keyword; the time difference between the creation time of the first session group and the creation time of the second session group is less than or equal to a second preset threshold; the first session group and the second session group include the same chat topic.

It is to be appreciated that receiving the first input to the first session group and the second session group can be receiving a first input by a user to establish an association relationship between the first session group and the second session group. For example, within a short time, receiving a long press operation of the first session group and the second session group by the user, the first session group and the second session group are associated.

It is to be understood that the number of group members included in each of the first session group and the second session group being greater than or equal to the first preset threshold may be: in the case that the first conversation group has 10 group members and the second conversation group has 20 group members, the number of the group members included in each of the first conversation group and the second conversation group is 6, and is greater than the first preset threshold value of 5, and further, the value of the first preset threshold value may be determined according to the specific number of the group with the smaller number of the two conversation groups, for example, the number of the first conversation group is 10, and the first preset threshold value may be set to be half of 10, that is, 5.

It is understood that the name of the first session group and the name of a second session group include the same keywords: the name of the first session group is a first name, the name of the second session group is a second name, and the first name comprise the same keyword. For example, the name of the first session group is "basketball game No. 8/3", the name of the second session group is "team playing basketball", and both the name of the first session group and the name of the second session group include the keyword "basketball".

It is understood that the time difference between the creation time of the first session group and the creation time of the second session group being less than or equal to the second preset threshold value means that: the creating time of the first session group is a first time, the creating time of the second session group is a second time, and the time difference between the first time and the first time is smaller than or equal to a second preset threshold value. For example, the creation time of the first session group is "8 month 3", the creation time of the second session group is "8 month 5", and the second threshold is 2 days, i.e., the time difference between the first time and the first time is 2 days, which is equal to the second threshold.

It is understood that the inclusion of the same chat topic in the first session group and the second session group means that: the first conversation group comprises a first chat subject, the second conversation group comprises a second chat subject, and the first chat subject is the same as the second chat subject. For example, the chat topic of the first session group is "movie that is newly shown", and the chat topic of the second session group is "movie that is newly shown".

In the embodiment of the application, when the first conversation group and the second conversation group meet the preset condition, the first conversation group and the second conversation group can be associated, so that when the electronic equipment can automatically determine another second conversation group associated with one conversation group according to the one conversation group, the user does not need to spend time to search for other groups associated with the one conversation group one by one. Therefore, the time of the user is saved, and the automatic use efficiency is improved.

S102, the message sending device sends a second message in the second session group through the target group member.

Wherein the second message is associated with the first message. The first session group and the second session group both comprise target group members, and the target group members are group members corresponding to accounts logged in on the electronic equipment.

Optionally, the second message may be a message with the same content or meaning as the first message, or another message associated with the first message, and for the description of the second message, reference may be made to the detailed description in the following embodiments, which are not repeated herein.

Alternatively, the electronic device may automatically detect accounts logged in each session group. Assume that the account that the electronic device logs in the first session group is a first account and the account that logs in the second session group is a second account. For the description that the first session group and the second session group both include target group members, the following 2 possible cases are included:

(1) when the first session group and the second session group belong to the same application program, the first account and the second account are the same, and the first account and the second account respectively correspond to the same group members, namely target group members, so that the first session group and the second session group both comprise the target group members.

(2) When the first session group and the second session group belong to different application programs, the first account and the second account are different, the first account and the second account respectively correspond to one group member, namely, the group member respectively corresponding to the first account and the second account is called a target group member, so that the first session group and the second session group respectively comprise the target group member.

Optionally, after the step S101 and before the step S102, the message sending method provided in the embodiment of the present application may further include: the message sending device acquires a group member set which is included in both the first session group and the second session group, wherein the group members in the group member set all have the authority of forwarding the group message. Accordingly, the S102 may specifically include: the message sending device sends the second message in the second session group through the target group member if the target group member is in the set of group members.

Optionally, the group member set refers to a set formed by group members that are included in both the first session group and the second session group and have a right to forward the group message. Further, the group members of the set of group members may be all or part of the group members included in both the first session group and the second session group.

It should be noted that, it is assumed that the number of all group members included in the first session group and the second session group is M, and M is a positive integer; the number of the group member sets is N, and N is a positive integer. When N is equal to M, all group members included in the first session group and the second session group have the authority of forwarding the group message; when N < M, only the group members in the group member set have the authority to forward the group message, and the common group members except the group members in the group member set do not have the authority to forward the group message in all the group members included in the first session group and the second session group.

In the embodiment of the present application, after the group member sets included in the first session group and the second session group are obtained, since the group members in the group member set all have the authority to forward the group message, when the target group member is in the group member set, the second message may be sent in the second session group through the target group member, so that only the group member belonging to the group member set may send the second message in the second session group, and the other group members not belonging to the group member set do not have the authority to forward the group message, thereby preventing the group members not having the authority to forward the group message from forwarding the message between different groups among the common group members of different groups.

Optionally, after the step S101 and before the step S102, the message sending method provided in the embodiment of the present application may further include: a message sending device obtains a first group member that sent a first message. Accordingly, S102 may be specifically realized by S102A described below or S102B described below.

S102A, when the group member of the second session group includes the first group member, the second message is sent in the second session group by the target group member.

The second message is used for reminding the first group member to send the message corresponding to the first message in the second session group.

Optionally, the second message is a reminder message. For example, the second message is @ the first group member, or the second message is a beat of the first group member.

Optionally, assuming that the message sent by the first group member in the second session group and corresponding to the first message is a third message, the third message may be any one of the following messages: the same message as the first message, the same meaning message as the first message, and the same keyword as the first message.

S102B, when the first group member is not included in the group members of the second session group, transmitting a second message in the second session group through the target group member.

Wherein the second message corresponds to the first message.

Optionally, the second message may be any one of: the same message as the first message, the same meaning message as the first message, and the same keyword as the first message.

Illustratively, the first message is "go basketball together tomorrow" and the second message is "go basketball tomorrow".

In this embodiment of the present application, after obtaining a first group member that sends a first message, since it may be determined whether a second session group includes the first group member, on one hand, when a group member of the second session group includes the first group member, a second message for reminding the first group member may be sent in the second session group by a target group member, so that the first group member may send a message associated with the first message in the second session group; on the other hand, in the case where the first group member is not included in the group members of the second session group, the second message may be directly transmitted in the second session group through the target group member. Therefore, the second messages with different purposes can be sent through the target group members according to the actual use scene, so that different use requirements of the user can be met.

Further, the second message may further include account information of the first group member.

Optionally, in a case that the second message may further include account information of the first group member, after the first group member that sends the first message is acquired, the message sending method provided in the embodiment of the present application may further include the following S103 and S104.

S103, the message sending device acquires the first message and the account information of the first group member.

Optionally, the account information of the first group member may include at least one of: a nickname of the first group member, an account avatar of the first group member, an account number of the first group member, a region to which the first group member belongs, a group to which the first group member belongs, and the like.

S104, the message sending device packages the first message and the account information of the first group member to obtain a second message.

It is understood that after the first message and the account information of the first group member are acquired, the first message and the account information of the first group member may be packaged as a second message, so that the group members in the second session group receiving the second message may know not only the message content of the second message, but also which sender of the second message is.

Illustratively, the message sending device is taken as a mobile phone. Assume that application 1 includes zhang three, li four, and wang five in session group 1, application 2 includes zhang three, xiaoming, and pinkish in session group 2, and application 3 includes xiaoming, pinkish, and pinkish in session group 3. Wherein, session group 1 is associated with session group 2, and session group 2 is associated with session group 3. When a chat message sent by wang five is received in the session group 1, since the mobile phone of zhang three can determine the session group 2 associated with the session group 1, zhang three can automatically send the chat message to the session group 2 (i.e., the chat message sent by wang five in the session group 1), so zhang three, xiao ming and xiao bai in the session group 2 can all receive the chat message triggered and sent by wang five in the session group 1.

Further, since the small and dark mobile phone can determine the session group 3 associated with the session group 2 and automatically send the chat message to the session group 3, both the small and the small in the session group 3 can receive the chat message sent by wang five in the session group 1 (and simultaneously, the chat message sent by zhang three in the session group 2). In this way, the group members in the session group 1, the group members in the session group 2 and the group members in the session group 3 all know the message content of the chat message triggered and sent by the group members in the session group 1.

It should be noted that, if there is an association relationship between different session groups, the message in one session group may be forwarded to another session group according to the association relationship, and then the message received in the another session group is sent to another associated session group, and so on until the message is no longer associated with another possible session group and the message forwarding is stopped.

The embodiment of the application provides a message sending method, after a session group receives a chat message, because at least one session group associated with the session group can be determined, a message associated with the chat message can be automatically sent to the at least one session group through group members included in both the session group and the at least one session group, so that a user does not need to frequently trigger an electronic device to copy the chat message from the session group and switch to a session interface of another session group to paste and send the chat message in the session interface of the another session group, that is, the operation of the electronic device for forwarding the chat message in the session group is simplified, and the efficiency of forwarding the chat message in the session group is improved.

Optionally, in a case that the language type of the first message is the first language type, if the group members in the second conversation group use languages of other language types, the first message needs to be processed. For example, after the above S101 and before the above S102, the message sending method provided in the embodiment of the present application may further include the following S105.

And S105, under the condition that the language type corresponding to the second conversation group is the second language type, the message sending device converts the language type of the first message from the first language type to the second language type to obtain a second message.

Optionally, the first language type may be any one of the following: chinese, english, korean, and other language types. Further, the second language type is a language type different from the first language type.

Optionally, before the step S105, the message sending method provided in the embodiment of the present application may further include the following steps: the message sending device determines the second language type according to the target information. Wherein the target information includes any one of: the language type of the historical chat messages in the second conversation group, and the identity information of the group members in the second conversation group.

Optionally, the language type of the history chat message may be any one of the following: spanish, japanese, german, and other language types.

Optionally, the identity information of the group member may be at least one of: native language, passport information, nationality information, etc.

It can be understood that the second language type is determined according to the second information, so that the first message can be converted into a message of a language type more meeting the requirements of group members in the second conversation group, that is, the use requirements of the user are met, and the user experience is improved.

Optionally, when the number of the second session groups is multiple, if the language type of the history chat message in each second session group belongs to the same type, the language type of the second session group may be determined to be a second language type according to the target information, so that the second message of the second language type is obtained only by converting the language type of the first message from the first language type to the second language type; if the language types of the historical chat messages in each second conversation group are different, multiple second language types can be determined according to the target information, so that the language type of the first message needs to be converted from the first language type to the second language types of different types, and the first messages of the multiple second language types are obtained.

Further, when the first message is converted into a second message of a second language type, sending the second message belonging to the second language type in each second conversation group; when the first message is converted into second messages of a plurality of second language types, a second message belonging to one of the plurality of second language types is sent in each second conversation group.

Illustratively, the message sending device is taken as a mobile phone. Assume the first type is Chinese. When a text message (i.e. a first message) is received in the conversation group 1 of the application a, since the conversation group 2 and the conversation group 3 associated with the conversation group 1 can be determined, when the language type of the history chat message in the conversation group 2 is english, the text message can be converted from chinese to english, so that a second message converted into english can be sent to the conversation group 2, and a second message in chinese can be sent to the conversation group 3.

In the message sending method provided by the embodiment of the application, when the language type of the first message is the first language type, and when the language type corresponding to the second conversation group is the second language type, the language type of the first message can be converted from the first language type to the second language type to obtain the second message, so that the second message belonging to the second language type can be sent in the second conversation group. Therefore, the group members in the second conversation group can know the message content of the first message more quickly, and the group members from different groups and using different languages can communicate more smoothly.

It should be noted that, in the message sending method provided in the embodiment of the present application, the execution main body may be a message sending apparatus (for example, the message sending apparatus is an electronic device or an external device on the electronic device), or a control module in the message sending apparatus for executing the message sending method. The message sending device provided in the embodiment of the present application will be described by taking an example in which the message sending device executes a message sending method.

As shown in fig. 2, the embodiment of the present application provides a message sending apparatus 200, which includes a determining module 201 and a sending module 202. The determining module 201 may be configured to determine a second session group associated with a first session group in case the first session group receives a first message. A sending module 202, configured to send, by the target group member, a second message in the second session group determined by the determining module, where the second message is associated with the first message; the first session group and the second session group both include the target group member, and the target group member is a group member corresponding to an account logged in on the electronic device.

Optionally, the message sending apparatus further includes an obtaining module. The apparatus may further include means for obtaining a first group member that sent the first message. The sending module may be specifically configured to send a second message in the second session group through a target group member when the group member of the second session group includes the first group member acquired by the acquiring module, where the second message is used to remind the first group member to send a message corresponding to the first message in the second session group; or, when the group member of the second session group does not include the first group member acquired by the acquisition module, sending a second message in the second session group through the target group member, where the second message corresponds to the first message.

Optionally, the message sending apparatus may further include an obtaining module. The obtaining module may be configured to obtain a group member set included in each of the first session group and the second session group, where each of group members in the group member set has a right to forward the group message. The sending module may be specifically configured to send the second message in the second session group through the target group member when the target group member is in the group member set.

Optionally, the message sending apparatus may further include a processing module. The processing module may be configured to associate the first session group with the second session group when the first session group and the second session group satisfy a preset condition. Wherein the preset condition comprises any one of the following conditions: receiving a first input to a first session group and a second session group; the number of group members included in the first session group and the second session group is larger than or equal to a first preset threshold value; the name of the first session group and the name of the second session group include the same keyword; the time difference between the creation time of the first session group and the creation time of the second session group is less than or equal to a second preset threshold; the first session group and the second session group include the same chat topic.

Optionally, the language type of the first message is a first language type. The message sending device may further comprise a processing module. The processing module may be configured to, when the language type corresponding to the second session group is the second language type, convert the language type of the first message from the first language type to the second language type to obtain the second message.

Optionally, the second message further includes account information of a first group member, where the first group member is a group member that triggers sending the first message. The message sending device can also comprise an acquisition module and a processing module. An obtaining module may be configured to obtain the first message and account information of the first group member. The processing module may be configured to package the first message and the account information of the first group member acquired by the acquisition module to obtain the second message.

Optionally, the determining module may be further configured to determine the second language type according to the target information; wherein the target information includes any one of: the language type of the historical chat messages in the second conversation group, and the identity information of the group members in the second conversation group.

The embodiment of the application provides a message sending device, after one session group receives a chat message, because at least one session group associated with the one session group can be determined, a message associated with the chat message can be automatically sent to the at least one session group through group members included in both the one session group and the at least one session group, so that a user does not need to frequently trigger an electronic device to copy the chat message from the one session group and switch to a session interface of the other session group to paste and send the chat message in the session interface of the other session group, that is, the operation of the electronic device for forwarding the chat message in the session group is simplified, and the efficiency of forwarding the chat message in the session group is improved.

The message sending device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.

The message sending device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.

The message sending apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.

Optionally, as shown in fig. 3, an electronic device 300 is further provided in this embodiment of the present application, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, where the program or the instruction is executed by the processor M01 to implement the processes in the foregoing message sending method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.

Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.

The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.

Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.

The processor 410 may be configured to determine a second session group associated with the first session group if the first message is received by the first session group. A radio frequency unit 401, configured to send a second message in the second session group through a target group member, where the second message is associated with the first message; the first session group and the second session group both include the target group member, and the target group member is a group member corresponding to an account logged in on the electronic device.

Optionally, the processor 410 is configured to obtain a first group member that sends the first message. A radio frequency unit 401, configured to send a second message in a second session group through a target group member when a group member of the second session group includes the first group member, where the second message is used to remind the first group member to send a message corresponding to the first message in the second session group; or, in a case that the first group member is not included in the group members of the second session group, a second message is sent in the second session group by the target group member, the second message corresponding to the first message.

Optionally, the group member corresponding to the account logged in on the electronic device is a second group member. The processor 410 is configured to obtain a group member set included in each of the first session group and the second session group, where each of the group members in the group member set has a right to forward the group message. A radio frequency unit 401, configured to send a second message in the second session group through the target group member when the target group member is in the group member set.

Optionally, the processor 410 may be further configured to associate the first session group with the second session group when the first session group and the second session group satisfy a preset condition. Wherein the preset condition comprises any one of the following conditions: receiving a first input to a first session group and a second session group; the number of group members included in the first session group and the second session group is larger than or equal to a first preset threshold value; the name of the first session group and the name of the second session group include the same keyword; the time difference between the creation time of the first session group and the creation time of the second session group is less than or equal to a second preset threshold; the first session group and the second session group include the same chat topic.

Optionally, the language type of the first message is a first language type. The processor 410 may be further configured to, if the language type corresponding to the second conversation group is the second language type, convert the language type of the first message from the first language type to the second language type to obtain the second message.

Optionally, the second message further includes account information of a first group member, where the first group member is a group member that triggers sending the first message. A processor 410, further operable to obtain the first message and account information of the first group member; and packaging the first message and the account information of the first group member to obtain the second message.

Optionally, the processor 410 may be further configured to determine a second language type according to the target information; wherein the target information includes any one of: the language type of the historical chat messages in the second conversation group, and the identity information of the group members in the second conversation group.

The embodiment of the application provides an electronic device, after one session group receives a chat message, since at least one session group associated with the one session group can be determined, a message associated with the chat message can be automatically sent to the at least one session group through group members included in both the one session group and the at least one session group, so that the electronic device does not need to be frequently triggered by a user to copy the chat message from the one session group and switch to a session interface of the other session group to paste and send the chat message in the session interface of the other session group, that is, the operation of forwarding the chat message in the session group by the electronic device is simplified, and the efficiency of forwarding the chat message in the session group is improved.

It should be understood that, in the embodiment of the present application, the input unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.

The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the foregoing message sending method embodiment is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.

The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media such as a computer-read-only memory (ROM), a Random Access Memory (RAM), a magnetic or optical disk, and so forth.

The 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 execute a program or an instruction to implement each process of the above-mentioned message sending method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method in the embodiments of the present application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种可再投票的二元共识方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!