CN112087365A - Instant messaging method and device applied to group, electronic equipment and storage medium - Google Patents

Instant messaging method and device applied to group, electronic equipment and storage medium Download PDF

Info

Publication number
CN112087365A
CN112087365A CN201910514651.5A CN201910514651A CN112087365A CN 112087365 A CN112087365 A CN 112087365A CN 201910514651 A CN201910514651 A CN 201910514651A CN 112087365 A CN112087365 A CN 112087365A
Authority
CN
China
Prior art keywords
group
message
frequency
sending
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910514651.5A
Other languages
Chinese (zh)
Inventor
陈雪丹
黄深林
徐融星
王天武
黄畅峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910514651.5A priority Critical patent/CN112087365A/en
Publication of CN112087365A publication Critical patent/CN112087365A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • 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/212Monitoring or handling of messages using filtering or selective blocking

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of instant messaging, and discloses an instant messaging method, an instant messaging device, electronic equipment and a storage medium applied to a group, wherein the method comprises the following steps: receiving a message sent to a group by a client of a group member; judging whether a limiting condition corresponding to the group aiming at the message sending frequency is met; if the restriction condition is not met, the message is sent to the clients of other group members in the group; and if the limiting condition is met, sending prompt information representing that the message sending fails to the client of the group member. According to the technical scheme, the speaking frequency of the group members is limited, the condition of message screen refreshing is avoided, the group members have better reading experience, meanwhile, the speaking enthusiasm of the group members is not influenced, and the long-term healthy development of the group is facilitated.

Description

Instant messaging method and device applied to group, electronic equipment and storage medium
Technical Field
The present application relates to the field of instant messaging technologies, and in particular, to an instant messaging method and apparatus applied to a group, an electronic device, and a storage medium.
Background
The instant messaging is a choice for online chatting of most users because the instant messaging can facilitate real-time chatting of the users, and when the users perform instant messaging chatting, the users mainly send messages to a server providing instant messaging service through a held client side, and the server pushes the messages to receiving users of the messages. In the process of using the instant messaging program, not only the individual-to-individual chat experience is needed, but also users with the same characteristics are needed to be gathered together to form a group, and the users with the common characteristics or the common preferences can freely communicate and communicate in the group space, so that the interactive interface of the users is greatly expanded, and the communication and communication convenience of the instant messaging program is improved.
In the group chat process, because the messages sent by each member are presented in the same chat window, the message screen refreshing condition occurs when the number of the members speaking at the same time is too large, and the experience of reading the messages by the user is reduced. In addition, the group members may have malicious screen refreshing situations, for example, sending a large number of messages to the group in a short time may also reduce the experience of the user in reading the messages.
In the face of the screen refreshing situation, the group administrator can only prohibit the talk-back of the group member who has refreshed the screen or kick the group member out of the group, and the group member cannot send any type of message after the talk-back is prohibited. The existing method for solving the screen refreshing problem is too rough, and the speaking enthusiasm of group members is seriously influenced.
Disclosure of Invention
The embodiment of the application provides an instant messaging method and device applied to a group, electronic equipment and a storage medium, and by limiting the speaking frequency of group members and limiting the generation of a large number of screen refreshing messages, the group members have better reading experience, and meanwhile, the speaking enthusiasm of the group members is not influenced.
The embodiment of the application provides an instant messaging method applied to a group, which comprises the following steps:
receiving a message sent to a group by a client of a group member;
if the limit condition corresponding to the group aiming at the message sending frequency is not met, the message is sent to the clients of other group members in the group;
and if the limiting condition is met, sending prompt information representing that the message sending fails to the client of the group member.
Optionally, determining whether a limitation condition for the message sending frequency corresponding to the group is satisfied by the following method specifically includes:
if the frequency of the group members sending the messages in the group in the current judging period is determined to be smaller than a first frequency limit threshold value set for the group members, or the frequency of the group members receiving the messages in the current timing period is determined to be smaller than a second frequency limit threshold value set for the group, the limiting condition is determined not to be met, otherwise, the limiting condition is determined to be met.
Optionally, determining the frequency of sending messages in the group by the group members in the current determination period by:
acquiring a message successfully sent to the group by the group members in the current judgment period;
and determining the frequency of the group members sending messages in the group in the current judging period according to the acquired messages.
Optionally, the current determination period is within a preset time period before the message is received, or within a preset time period after the previous determination period is finished, or within a preset time period after the group member successfully sends the first message to the group after the previous determination period is finished.
Optionally, the method further comprises:
if the frequency of the group members sending messages in the group in the current judging period is not less than a first frequency limit threshold value set aiming at the group members, the group members are marked as limited members;
receiving a message sent by a client of the group member to the group;
and if the group member is a limited member, sending prompt information for representing the failure of sending the message to the client of the group member.
Optionally, the method further comprises: and after the current judging period is finished, marking the group members as unrestricted members.
Optionally, determining the frequency of messages received by the group in the current timing period by:
acquiring messages which are successfully sent to the group by all group members in the group within the current timing period;
and determining the frequency of the group receiving the messages in the current timing period according to the acquired messages.
Optionally, the current timing period is within a preset time period before the message is received, or within a preset time period after the previous timing period is finished, or within a preset time period after any group member in the group successfully sends the first message to the group after the previous timing period is finished.
Optionally, the method further comprises:
if the frequency of the messages received by the group in the current timing period is determined to be not less than a second frequency limit threshold value set for the group, marking the group as a limited group;
receiving a message sent to the group by a client of any group member in the group;
and if the group is a limited group, sending prompt information for representing the failure of sending the message to the client of any group member.
Optionally, the method further comprises: after the current timing period ends, marking the group as an unrestricted group.
Optionally, before determining whether the limitation condition for the message sending frequency corresponding to the group is satisfied, the method further includes:
and if the message type of the message is determined to be the designated type, the message is sent to the clients of other group members in the group.
Optionally, before determining whether the limitation condition for the message sending frequency corresponding to the group is currently met, the method further includes:
and if the member type of the group member sending the message is determined to be an administrator, sending the message to the clients of other group members in the group.
Optionally, the method further comprises:
receiving setting information for the restriction condition sent by a client of an administrator of the group;
and updating the restriction conditions corresponding to the group according to the setting information.
The embodiment of the present application provides an instant messaging device applied to a group, including:
the receiving module is used for receiving the message sent by the client of the group member to the group;
the first judging module is used for determining whether the limiting condition corresponding to the group aiming at the message sending frequency is met, if the limiting condition is not met, the function of the issuing module is executed, and if the limiting condition is met, the function of the prompting module is executed;
the sending module is used for sending the message to the clients of other group members in the group;
and the prompting module is used for sending prompting information representing the failure of sending the message to the client of the group member.
Optionally, the first determining module is specifically configured to: if the frequency of the group members sending the messages in the group in the current judging period is determined to be smaller than a first frequency limit threshold value set for the group members, or the frequency of the group members receiving the messages in the current timing period is determined to be smaller than a second frequency limit threshold value set for the group, the limiting condition is determined not to be met, otherwise, the limiting condition is determined to be met.
Optionally, the first determining module is specifically configured to: determining the frequency of the group members sending messages in the group in the current judging period by the following method:
acquiring a message successfully sent to the group by the group members in the current judgment period;
and determining the frequency of the group members sending messages in the group in the current judging period according to the acquired messages.
Optionally, the current determination period is within a preset time period before the message is received, or within a preset time period after the previous determination period is finished, or within a preset time period after the group member successfully sends the first message to the group after the previous determination period is finished.
Optionally, the system further comprises a restricted member tagging module configured to: if the frequency of the group members sending messages in the group in the current judging period is not less than a first frequency limit threshold value set aiming at the group members, the group members are marked as limited members;
the receiving module is further configured to: receiving a message sent by a client of the group member to the group;
the second judging module is used for judging whether the group member is a limited member before the first judging module is executed, if the group member is the limited member, the function of the prompting module is executed, and if not, the function of the first judging module is executed.
Optionally, the restricted member tagging module is further configured to: and after the current judging period is finished, marking the group members as unrestricted members.
Optionally, the first determining module is specifically configured to: determining the frequency of messages received by the group in the current timing period by:
acquiring messages which are successfully sent to the group by all group members in the group within the current timing period;
and determining the frequency of the group receiving the messages in the current timing period according to the acquired messages.
Optionally, the current timing period is within a preset time period before the message is received, or within a preset time period after the previous timing period is finished, or within a preset time period after any group member in the group successfully sends the first message to the group after the previous timing period is finished.
Optionally, the system further comprises a restricted group tagging module configured to: if the frequency of the messages received by the group in the current timing period is determined to be not less than a second frequency limit threshold value set for the group, marking the group as a limited group;
the receiving module is further configured to: receiving a message sent to the group by a client of any group member in the group;
the third judging module is used for judging whether the group is a limited group or not before the first judging module is executed, if the group is the limited group, the function of the prompting module is executed, and if not, the function of the first judging module is executed.
Optionally, the restricted group tagging module is further configured to: after the current timing period ends, marking the group as an unrestricted group.
Optionally, the apparatus further includes a fourth determining module, configured to: before executing the function of the first judging module, judging whether the message type of the message is a specified type, if the message type of the message is determined to be the specified type, executing the function of the issuing module, otherwise, executing the function of the first judging module.
Optionally, the apparatus further includes a fifth determining module, configured to: before executing the function of the first judging module, judging whether the member type of the group member is an administrator or not, if the member type of the group member sending the message is determined to be the administrator, executing the function of the issuing module, otherwise, executing the function of the first judging module.
Optionally, the system further comprises a setting module, configured to:
receiving setting information for the restriction condition sent by a client of an administrator of the group;
and updating the restriction conditions corresponding to the group according to the setting information.
An embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any one of the methods when executing the computer program.
Embodiments of the present application provide a computer-readable storage medium having stored thereon computer program instructions, which, when executed by a processor, implement the steps of any of the above-described methods.
According to the technical scheme provided by the embodiment of the application, the function of limiting the speaking frequency of the group members is set for the group, so that the frequency of the group members for sending the messages in the group is limited, when the server receives the messages sent to the group by the group members through the client sides of the group members, whether the limiting conditions corresponding to the group aiming at the message sending frequency are met or not is judged, if the limiting conditions are not met, the messages are sent to the client sides of other group members in the group, and if the limiting conditions are met, the prompt information for representing the message sending failure is sent to the client sides of the group members, namely, the messages are not sent to the client sides of the other group members. According to the method, the speaking frequency of the group members is limited, the condition of message screen refreshing is avoided, the group members have better reading experience, meanwhile, the speaking enthusiasm of the group members is not influenced, and the long-term healthy development of the group is facilitated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments of the present application will be briefly described below, and it is obvious that the drawings described below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of an instant messaging method applied to a group according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an instant messaging method applied to a group according to an embodiment of the present disclosure;
fig. 3 is a diagram illustrating a group chat window according to an embodiment of the present application;
fig. 4 is a flowchart illustrating an instant messaging method applied to a group according to an embodiment of the present disclosure;
fig. 5 is a flowchart illustrating an instant messaging method applied to a group according to an embodiment of the present application;
fig. 6 is a flowchart illustrating an instant messaging method applied to a group according to an embodiment of the present application;
fig. 7 is a flowchart illustrating an instant messaging method applied to a group according to an embodiment of the present application;
fig. 8 is a flowchart illustrating an instant messaging method applied to a group according to an embodiment of the present application;
fig. 9 is a flowchart illustrating an instant messaging method applied to a group according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an instant messaging device applied to a group according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an instant messaging device applied to a group according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of an instant messaging device applied to a group according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of an instant messaging device applied to a group according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an instant messaging device applied to a group according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, 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.
For convenience of understanding, terms referred to in the embodiments of the present application are explained below:
a Client (Client), also called Client, refers to a program corresponding to a server and providing local services to clients. Except for some application programs which only run locally, the application programs are generally installed on common clients and need to be operated together with a server. After the internet has developed, the more common clients include web browsers used on the world wide web, email clients for receiving and sending emails, and client software for instant messaging. For this kind of application, a corresponding server and a corresponding service program are required in the network to provide corresponding services, such as database services, e-mail services, etc., so that a specific communication connection needs to be established between the client and the server to ensure the normal operation of the application program. The client in the embodiment of the application refers to an application program supporting a group chat technology.
The group refers to a group in which a plurality of application users are grouped together to communicate with each other for a specific purpose by an application supporting the group chat technique, for example, a daily communication group between family members.
Any number of elements in the drawings are by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
In a specific practical process, in a group with more group members and active member speech, a plurality of people can speech in the group at the same time, and because messages sent by each member are presented in the same chat window, the condition of message screen refreshing can occur when the number of members who speech at the same time is too large, so that some important messages are submerged in a large number of screen refreshing messages, and the experience of reading the messages by a user is reduced. In addition, some group members have malicious screen refreshing situations, for example, a large amount of useless text, pictures or advertisement messages are sent to the group in a short time, so that the experience of reading the messages by the user is poor, troubles are caused to other members, and the development of long-term health of the group is not facilitated. In the face of the screen refreshing condition, the group administrator can only forbid the talk of the group members who are in screen refreshing or kick the group members out of the group, and the group members cannot send any type of messages after being forbidden to talk, so that the method is too rough and seriously affects the speaking enthusiasm of the group members.
To this end, the inventors of the present application have provided a function for restricting the speaking frequency of members to a group to restrict the frequency with which the group members send messages within the group. If the group enables the function of limiting the speaking frequency of the members, when the server receives a message sent to the group by the members of the group through the clients of the members, the server judges whether the limiting condition corresponding to the group aiming at the message sending frequency is met, if the limiting condition is not met, the server sends the message to the clients of other group members in the group, and if the limiting condition is met, the server sends prompt information representing the failure of message sending to the clients of the group members, namely the server does not send the message to the clients of other group members in the group. By limiting the speaking frequency of the group members, the condition of message screen refreshing is avoided, the group members have better reading experience, meanwhile, the speaking enthusiasm of the group members is not influenced, and the long-term healthy development of the group is facilitated.
After introducing the design concept of the embodiment of the present application, some simple descriptions are provided below for application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiment of the present application and are not limited. In specific implementation, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Fig. 1 is a schematic view of an application scenario of the instant messaging method applied to a group according to an embodiment of the present application. As shown in fig. 1, the application scenario may include a server 101 and a plurality of terminal devices 102 (including terminal device 102-1, terminal device 102-2, … … terminal devices 102-n, … …), where the server 101 may be regarded as a background server providing a corresponding instant messaging service, the server 101 may be a server, a server cluster formed by a plurality of servers, or a cloud computing center, a client supporting group chat technology is installed in the terminal device 102, and the server 101 may be communicatively connected to the plurality of terminal devices 102 through the internet. A user can log in an account of the user through a client in any terminal device 102 (for example, a terminal device 102-1), open a chat window corresponding to a group to which the user belongs, display a chat message in the group through the chat window, and input a message to be sent to the group through the chat window, wherein the client in the terminal device 102-1 sends the message to the server 101, and the message carries a user identifier and a group identifier; after receiving the message, the server 101 determines a group to which the message is sent according to a group identifier carried by the message, determines other group members in the group according to the stored group information, and pushes the message to clients used by the other group members, for example, if the other 3-bit group members in the group respectively use clients in the terminal device 102-2, the terminal device 102-3, and the terminal device 102-4, the message is sent to the clients in the terminal device 102-2, the terminal device 102-3, and the terminal device 102-4.
In the application scenario shown in fig. 1, the terminal device includes, but is not limited to, an electronic device such as a mobile phone, a mobile computer, a tablet computer, a Personal Digital Assistant (PDA), a media player, a smart television, a smart watch, smart glasses, and a smart band.
Of course, the method provided in the embodiment of the present application is not limited to be used in the application scenario shown in fig. 1, and may also be used in other possible application scenarios, and the embodiment of the present application is not limited. The functions that can be implemented by each device in the application scenario shown in fig. 1 will be described in the following method embodiments, and will not be described in detail herein.
To further illustrate the technical solutions provided by the embodiments of the present application, the following detailed description is made with reference to the accompanying drawings and the detailed description. Although the embodiments of the present application provide the method operation steps as shown in the following embodiments or figures, more or less operation steps may be included in the method based on the conventional or non-inventive labor. In steps where no necessary causal relationship exists logically, the order of execution of the steps is not limited to that provided by the embodiments of the present application.
The following describes the technical solution provided in the embodiment of the present application with reference to the application scenario shown in fig. 1.
Referring to fig. 2, an embodiment of the present application provides an instant messaging method applied to a group, which specifically includes the following steps:
s201, the client A sends the message sent to the group to the server.
In specific implementation, a message sent to a group by the client a carries a user identifier and a group identifier, the user identifier carried by the message is the user identifier of the user currently using the client a, and the group identifier carried by the message is the group identifier corresponding to the group to which the message is sent. In the embodiment of the present application, the user identifier is used to uniquely identify each user, the group identifier is used to uniquely identify each group, and the client a may be a client being used by any group member in the group.
In the embodiment of the present application, the message sent by the client is not limited to a text message, a file message, a video message, an audio message, a picture message, an applet message, and the like.
S202, the server receives the message sent to the group by the client A and judges whether the limiting condition corresponding to the group and aiming at the message sending frequency is met.
In specific implementation, the administrator of the group may set a restriction condition for the message transmission frequency corresponding to the group. The group default selection does not limit the speaking frequency of the group members, and at the moment, the server directly sends the message to the clients of other group members in the group after receiving the message sent to the group by any client. When the speaking frequency of the group members needs to be limited, the administrator of the group can set limiting conditions through the client, for example, the number of the limiting conditions is not more than 10 per minute, the number of the limiting conditions is not more than 5 per minute, and the like, the client sends the setting information for the limiting conditions set by the administrator to the server, the server receives the setting information for the limiting conditions sent by the client of the administrator, the limiting conditions corresponding to the group are updated according to the setting information, and subsequently, judgment is carried out based on the updated limiting conditions so as to determine whether to send the message to the group.
In this embodiment, the limitation may be a limitation on the message sending frequency of a single group member in the group, that is, the limitation is used to limit the frequency of sending messages in the group by the single group member. In this case, it is necessary to count the frequency of sending messages by each group member in the group, and when the frequency of sending messages by a certain group member satisfies the limiting condition, the sending of messages by the group member is prohibited, and at this time, if the frequency of sending messages by other group members in the group does not satisfy the limiting condition, the other group members in the group can successfully send messages to the group, that is, the messages sent by the group members are displayed in the group, and the client where the other group members in the group are located receives the messages.
In specific implementation, the limitation condition may be that the frequency of the messages sent by a single group member is not less than a first frequency threshold, for example, the first frequency threshold is 5 messages per minute, and if the number of messages sent by a certain group member per minute is greater than or equal to 5, it is determined that the group member satisfies the limitation condition, and the messages sent by the group member cannot be forwarded to other group members in the group. The first threshold may be adjusted by an administrator according to an actual speaking situation of the group members, and this embodiment of the present application is not limited, for example, the speaking frequency of the group is high and a screen swiping message is rarely sent, and the administrator may increase the first threshold, for example, the first threshold may be 10 messages per minute, and for the group with a low speaking frequency and a member often sending a screen swiping message, the administrator may select a smaller first threshold, for example, the first threshold may be 5 messages per minute.
In specific implementation, a uniform restriction condition may be set for all group members in the group, or a restriction condition may be set for each group member in the group individually. For example, if the administrator finds that there are individual group members in the group that send the message of the screen refresh frequently, the first threshold of the frequency limit corresponding to these group members can be individually adjusted downward, for example, the number of messages sent per minute by the group members that send the message of the screen refresh frequently cannot exceed 5, and the number of messages sent per minute by other group members in the group cannot exceed 10.
In this embodiment, the limitation may also be a limitation on the frequency with which messages are received by the group. In this case, the sum of the messages sent to the group by all the group members in the group needs to be counted, and the frequency of receiving the messages by the group is determined based on the sum. In specific implementation, the limitation condition may be that the frequency of messages received by the group is not less than a second frequency threshold set for the group, that is, the frequency of messages which are aggregated by all group members and sent to the group cannot exceed the second frequency threshold, for example, the second frequency threshold may be 50 messages per minute, that is, the sum of messages which are sent by all group members to the group per minute cannot exceed 50 messages per minute, if the sum of messages which are sent by all group members to the group per minute is greater than or equal to 50 messages, it is determined that the group satisfies the limitation condition, and the group members in the group are prohibited from sending messages to the group.
The second threshold may be adjusted by the administrator according to the actual speaking situation of the group members, the number of the group members, and the like, and this embodiment of the application is not limited, for example, the speaking frequency of the group is high and the swiping message is rarely sent, the administrator may increase the second threshold, for example, the second threshold may be 100 messages per minute, and for the group with a low speaking frequency and the group having the member sending the swiping message frequently, the administrator may select a smaller second threshold, for example, the second threshold may be 20 messages per minute.
And S203, if the server judges that the limiting condition is not met, the server sends the message to the clients of other group members in the group.
In specific implementation, the server stores group information of the group, and the group information at least includes a group identifier and a user identifier of a group member. The server determines other group members in the group according to the group identification carried by the message sent to the group by the client A and the stored group information, and sends the message to the clients of the other group members, and the clients of the other group members in the group display the message sent by the server, so that the process of sending the message of the client A to the group is completed.
And S204, if the server judges that the limiting conditions are met, sending a prompt message for representing the failure of sending the message to the client A.
In this step, if the server determines that the restriction condition is satisfied, the server does not send the message sent by the client a to the group to the clients of other group members in the group, and sends a prompt message indicating that the message sending fails to the client a, and the client a displays the prompt message after receiving the prompt message to prompt the user of the client a that the message sending fails.
In a specific implementation, as shown in fig. 3, after receiving the prompt information indicating that the message transmission failed, the client a may display an exclamation mark 303 in a chat window 301 of the group "typewriter" at a corresponding position of the message 302 that failed to be transmitted, so as to prompt the user that the message transmission failed. Meanwhile, the client may also display the document information 304 such as the restriction condition set for the group in the group chat window 301, for example, "the group can only send 5 pieces of information per minute" as shown in fig. 3, so as to inform the user of the reason for the failure in sending the piece of information. For example, if the limit condition is that the frequency of sending messages by a single group member is not less than 5 messages per minute, the document information displayed by the client may be "each person in the group can only send 5 messages per minute", for example, if the limit condition is that the frequency of receiving messages by the group is not less than 50 messages per minute, the document information displayed by the client may be "the group can only send 50 messages per minute in total", and the specific document information may be set by itself according to the requirement, and is not limited to the above-listed examples.
The method of the embodiment of the application limits the frequency of the messages sent by the group members in the group by setting the function of limiting the speaking frequency of the group members for the group, judges whether the limiting condition corresponding to the group aiming at the message sending frequency is met or not when the server receives the messages sent by the group members to the group through the client sides of the group members, sends the messages to the client sides of other group members in the group if the limiting condition is not met, and sends the prompt information representing the message sending failure to the client sides of the group members if the limiting condition is met, namely, does not send the messages to the client sides of other group members. According to the method, the speaking frequency of the group members is limited, the condition of message screen refreshing is avoided, the group members have better reading experience, meanwhile, the speaking enthusiasm of the group members is not influenced, and the long-term healthy development of the group is facilitated.
Referring to fig. 4, an embodiment of the present application provides an instant messaging method applied to a group, which is applied to the server shown in fig. 1, and specifically includes the following steps:
s401, receiving a message sent to the group by the client of the group member.
In specific implementation, a message sent to a group by a client carries a user identifier and a group identifier, the user identifier carried by the message is the user identifier of a user who uses the client at present, and the group identifier carried by the message is the group identifier corresponding to the group to which the message is to be sent.
S402, it is determined whether or not a restriction condition for the message transmission frequency corresponding to the group is satisfied, and if the restriction condition is not satisfied, step S403 is executed, and if the restriction condition is satisfied, step S404 is executed.
And S403, sending the message to the clients of other group members in the group.
S404, sending prompt information for representing the failure of sending the message to the client of the group member.
As a possible implementation manner, if the limitation condition set by the group administrator is a limitation condition for the message sending frequency of a single group member in the group, step S402 specifically includes: if the frequency of the group member sending the message in the group in the current judging period is determined to be less than a first frequency limit threshold value set aiming at the group member, the restriction condition is determined not to be met, otherwise, the restriction condition is determined to be met.
In specific implementation, the frequency of any group member sending messages in the group in the current judgment period can be determined in the following way: and acquiring the message successfully sent to the group by the group member in the current judging period, and determining the frequency of sending the message by the group member in the group in the current judging period according to the acquired message. In this embodiment of the present application, the message that is successfully sent to the group refers to a message that is successfully sent by the server to the clients of other group members in the group pointed in step S401, and the message that is failed to be sent does not participate in statistics of the speaking frequency.
In specific implementation, the current determination period may be within a preset time period before the message pointed in step S401 is received, that is, based on the message that the group member successfully sends to the group within the preset time period before the message is received, the frequency of sending the message in the group by the group member is determined. In the embodiment of the present application, the preset time period may be predetermined by a person skilled in the art according to experience and specific requirements, for example, the preset time period may be 1 minute, 5 minutes, or 10 minutes, and the embodiment of the present application is not limited. The preset time period may also be determined according to a set first frequency threshold, for example, if the first frequency threshold is 5 messages per minute, the preset time period may be 1 minute, and if the first frequency threshold is 9 messages per 2 minutes, the preset time period may be 2 minutes.
For example, assuming the preset time duration is 2 minutes, the group G is received1Group member A of1Message M to a groupnThen, the received message M is obtainednGroup Member A within the previous 2 minutes1Successfully sent to group G1The total number of the obtained messages is counted to be 6, the counted total number is divided by the preset time length to obtain the group member A in the current judging period1In group G1Frequency of messages sent in f1Was 3 strips/min. Assuming that the first threshold is 5 messages per minute, f1Less than the first threshold, determining the group member A1If the current limit condition is not met, the message M is sentnSend to group G1Among other group members.
In the above embodiment, after each message is received, the frequency of sending messages in the group by the group member needs to be determined in real time based on the number of messages that the group member sending the message has successfully sent to the group.
In specific implementation, the current determination period may also be within a preset time length after the last determination period is finished. Specifically, a timer in the server automatically times, and when the time reaches a preset time, the next judgment period is automatically entered, the time is restarted, and the frequency of sending the message is set to 0. For the above case, members in the same group may share one timer, or all groups may share one timer. In specific implementation, when the server sends a message successfully, the frequency of sending the message in the group by the group members sending the message is counted again.
For example, assume for group G2The preset time length is set to be 1 minute, the server starts timing and enters a first judgment period, when the timing of the server reaches 1 minute, the server enters a second judgment period and restarts timing, when the timing of the server reaches 1 minute again, the server enters a third judgment period and restarts timing, and so on. In group G2Group member A of2For example, the server is receiving group G2Group member A of2Send to group G2Message M ofnThen, the group member A is obtained2Successfully sends the information to the group G in the current judgment period2According to the number of the acquired messages, determining the group member A in the current judging period2In group G2Of the frequency at which the message is sent. For example, the server is receiving message MnIf the time of the timer is 30 seconds, counting the received message MnGroup Member A in the first 30 seconds2Successfully sent to group G2The total number of the messages is 4, the counted total number of the messages is divided by the preset time length to obtain the current judgment period TnInner group Member A2In group G2Frequency of messages sent in f2Was 4 strips/min. Assuming that the first threshold is 5 messages per minute, f2Less than the first threshold, determining the group member A2If the current limit condition is not met, the message M is sentnSend to group G2Clients of other group membersAnd (4) an end. The server receives the group member A2Send to group G2Message M ofn+1Thereafter, the period T is still determinednIn the interior, the current judging period T is obtainednInner group Member A2In group G2Frequency of messages sent in f2At 5 strips/min, at this time, f2Equal to the first frequency limit threshold, then the group member A is determined2Currently satisfying the restriction condition, and sending the group member A2The client sends prompt information for representing the failure of message sending without sending the message Mn+1Send to group G2Among other group members. When the timer reaches 1 minute, entering the next judgment period Tn+1The timer restarts counting and f is set2Is set to 0. The server receives the group member A2Send to group G2Message M ofn+2Thereafter, the server has entered the next judgment period Tn+1At this time, in the judgment period Tn+1Group member A2Successfully sent to group G2Is 0, when f20, i.e. f2If the number of the group members is less than the first frequency limit threshold value, the group member A is determined2If the current limit condition is not met, the message M is sentn+2Send to group G2The subsequent processes of the clients of other group members are analogized, and are not described again.
In specific implementation, the current determination period may also be within a preset time length after the group member successfully sends the first message to the group in step S401 after the previous determination period is finished. Specifically, after a previous judgment period is finished, the frequency of sending messages by the group members in the group is set to 0, after that, if the server successfully sends the messages of the group members to the group, the time of successfully sending the messages is taken as the starting time of the current judgment period, timing is started, that is, the current judgment period is entered, and after the timing reaches a preset time length, the current judgment period is finished, and a next judgment period is waited to be entered. It should be noted that, the message successfully sent at the start time of each judgment period is counted in the judgment period.
In group G3Group member A of3For example, assuming the preset time period is 1 minute, the last judgment period Tn-1After the end, the group member A3In group G3Frequency of messages sent in f3Is set to 0. The server receives the group member A3Send to group G3Message M ofnThen, since f is at this time3If 0, the message M is sentnSend to group G3And the other group members in the group and sends the message M with successnAt time tMnTo determine the period TnWhen the group member A starts to count time3Has succeeded in moving to group G3A message is sent, so that f is now present31 bar/min. In the judgment period TnInner (i.e. t)MnWithin 1 minute after time), group member a was counted3In the judgment period TnInternal successful send to group G3Dividing the counted number by the preset time length to obtain the current f3If f is3Less than the first threshold (assuming the first threshold is 5 pieces per minute), then group member A is determined3Currently, the restriction condition is not satisfied, when the group member A3In the judgment period TnInternal successful send to group G3When the number of messages of (2) reaches 5, when f35 pieces/min, f2Equal to the first frequency limit threshold, then the group member A is determined3The constraint is satisfied. If in the determination period TnIn the method, the server receives the group member A again3Send to group G3Then determine group member A3Currently satisfying the restriction condition, and sending the group member A3The client sends prompt information for representing the failure of sending the message, and does not send the message to the group G3Among other group members. If the timer reaches the preset duration, the period T is judgednEnding, and grouping the member A3In group G3Frequency of messages sent in f3And setting the value to be 0, and repeating the subsequent processes in the same way without repeated description.
On the basis of any one of the above embodiments, the method of the embodiment of the present application further includes the steps of: if the frequency of the group member sending the message in the group in the current judging period is not less than a first frequency limit threshold value set aiming at the group member, the group member is marked as a limited member; and after the current judging period is finished, marking the group member as an unlimited member.
Therefore, referring to fig. 5, an embodiment of the present application provides an instant messaging method applied to a group, which specifically includes the following steps:
s501, receiving a message sent to the group by the client of the group member.
S502, judging whether the group member is a limited member, if the group member is the limited member, executing the step S505, otherwise executing the step S503.
S503, determining whether the restriction condition for the message transmission frequency corresponding to the group is satisfied, if not, executing step S504, and if so, executing step S506 and step S506.
S504, the message is sent to the clients of other group members in the group.
And S505, sending prompt information for representing the failure of sending the message to the client of the group member.
S506, marking the group member as a restricted member.
And S507, after the current judgment period is finished, marking the group member as an unrestricted member.
The specific implementation method of each step can refer to the specific implementation method corresponding to the method shown in fig. 4, and is not described again.
In specific implementation, in the same judgment period, the client may be configured to display the document information only once, or may be configured to display the document information once after receiving the prompt message each time.
As another possible implementation manner, if the limitation condition set by the administrator is a limitation condition for the frequency of receiving the message for the group, step S402 specifically includes: and if the frequency of the messages received by the group in the current timing period is smaller than a second frequency limit threshold value set for the group, determining that the limiting condition is not met, otherwise, determining that the limiting condition is met.
In specific implementation, the frequency of sending messages in the group by any group member in the current timing period can be determined by the following method: and acquiring messages successfully sent to the group by all group members in the group in the current timing period, and determining the frequency of the messages received by the group in the current timing period according to the acquired messages.
In a specific implementation, the current timing period may be within a preset time period before the message pointed in step S401 is received, that is, the frequency of receiving the message by the group is determined based on all messages successfully sent to the group within the preset time period before the message is received. In the embodiment of the present application, the preset time period may be predetermined by a person skilled in the art according to experience and specific requirements, for example, the preset time period may be 1 minute, 5 minutes, or 10 minutes, and the embodiment of the present application is not limited. The preset time period may also be determined according to a set second frequency threshold, for example, if the second frequency threshold is 50 messages per minute, the preset time period may be 1 minute, and if the second frequency threshold is 90 messages per 2 minutes, the preset time period may be 2 minutes.
For example, assuming the preset time duration is 2 minutes, the group G is received1Message M sent by any group member to the groupnThen, the received message M is obtainednGroup G within the previous 2 minutes1All group members successfully send to group G1Counting the total number of the acquired messages to 60, and dividing the counted total number by a preset time length to obtain a group G of the current timing period1Frequency F of received messages1Was 30 strips/min. Assuming that the first threshold is 50 messages per minute, F1Less than the first threshold, determining group G1If the current limit condition is not met, the message M is sentnSend to group G1Among other group members.
In the foregoing embodiment, after each message is received, the frequency of receiving the message by the group in the current timing period needs to be determined in real time based on the number of the messages received by the group to which the message is sent in the current timing period.
In specific implementation, the current timing period may also be within a preset time length after the last timing period is finished. Specifically, a timer in the server automatically times, and when the time reaches a preset time, the next time period is automatically entered, the time is restarted, and the frequency of the messages received by the group is set to 0. For the above case, one timer may be separately set for each group, or one timer may be shared by all groups. In specific implementation, when the server sends a message successfully, the server re-counts the frequency of receiving the message by the group to which the message is sent.
For example, assume for group G2The preset time length is set to be 1 minute, the server starts timing and enters a first timing period, when the timing of the server reaches 1 minute, the server enters a second timing period and restarts timing, when the timing of the server reaches 1 minute again, the server enters a third timing period and restarts timing, and so on. The server receives the group G2Group member A of1Send to group G2Message M ofnThen, group G is obtained2Determining the group G in the current timing period according to the number of the received messages2The frequency at which the message is received. For example, the server is receiving message MnIf the time of the timer is 30 seconds, counting the received message MnGroup G in the first 30 seconds2The number of the received messages is 40, the counted number is divided by the preset time length to obtain the current timing period TnInner group G2Frequency F of received messages240 strips/min. Assuming that the second threshold is 50 messages per minute, F2Less than the second threshold, determining group G2If the current limit condition is not met, the message M is sentnSend to group G2Is divided by A1Clients of other group members than the others. The server receives the group G2Middle group member A2Send to group G2Message M ofn+1Thereafter, still at the timing period TnIn the interior, the current timing period T is obtainednInner group G2Frequency F of received messages2At 50 strips/min, in this case, F2Equal to the second threshold, group G is determined2Currently satisfying the restriction condition, and sending the group member A2The client sends prompt information for representing the failure of message sending without sending the message Mn+1Send to group G2Among other group members. When the timer reaches 1 minute, the next timing period T is enteredn+1The timer restarts counting and F is set2Is set to 0. The server receives the group member A3Send to group G2Message M ofn+2Thereafter, the server has entered the next timer period Tn+1At this time, in the timing period Tn+1Group G2The number of received messages is 0, when F20, i.e. F2Less than the second threshold, group G is determined2If the current limit condition is not met, the message M is sentn+2Send to group G2Removing A3And other clients of other group members can repeat the following process in the same way, and the description is omitted.
In specific implementation, the current timing period may also be within a preset time length after any group member in the group indicated in step S401 successfully sends the first message to the group after the previous timing period is ended. Specifically, for any group, after the last timing period is finished, the frequency of receiving messages by the group is set to 0, after that, if the server successfully sends the message of any group member in the group to the group, the time of successfully sending the message is taken as the starting time of the current timing period, timing is started, that is, the current timing period is entered, and after the timing reaches the preset time, the current timing period is finished, and the next timing period is waited to be entered. It should be noted that, the message successfully sent at the beginning of each timing period is counted in the timing period.
In group G3For example, assuming the preset time period is 1 minute, the last timer period Tn-1After finishing, the group G3Frequency of received messagesF3Is set to 0. The server receives the group member A1Send to group G3Message M ofnThen, since F is at this time3If 0, the message M is sentnSend to group G3Removing A1Clients of other group members than the group member, and sending the message M with successnAt time tMnFor timing a period TnWhen the group member A starts to count time1Has succeeded in moving to group G3A message is sent, so that F is now present31 bar/min. At a timing period TnInner (i.e. t)MnWithin 1 minute after time), group G was counted3In the timing period T of all group membersnInternal successful send to group G3Dividing the counted total number by a preset time length to obtain the current F3If F is3Less than the second threshold (assuming 50 strips per minute), group G is determined3Currently not satisfying the constraint, when group G3At a timing period TnWhen 50 messages are successfully received, F350 strips/min, F2Equal to the second threshold, group G is determined3The constraint is satisfied. If in the timing period TnIn the method, the server receives the group G3Any one of group members AnSend to group G3Then determine group G3Currently satisfying the restriction condition, and sending the group member AnThe client sends prompt information for representing the failure of sending the message, and does not send the message to the group G3Among other group members. If the timer reaches the preset time (here, 1 minute), the timer period T is countednEnding, the group G3Frequency F of received messages3And setting the value to be 0, and repeating the subsequent processes in the same way without repeated description.
It should be noted that, in practical applications, a group member may log in an account of the group member through clients on multiple terminal devices and send a message to a group to which the group member belongs, so that when counting an utterance frequency (including a frequency at which the group member sends a message in the group and a frequency at which the group receives a message), messages sent by the group member through clients in all the terminal devices are incorporated into data of the counted utterance frequency based on a user identifier carried in the message, and the method is not limited to the terminal devices used by the user.
On the basis of any one of the above embodiments, the method of the embodiment of the present application further includes the steps of: if the frequency of the messages received by the group in the current timing period is determined to be not less than a second frequency threshold set for the group, marking the group as a limited group; after the current timing period ends, the group is marked as an unrestricted group.
Therefore, referring to fig. 6, an embodiment of the present application provides an instant messaging method applied to a group, which specifically includes the following steps:
s601, receiving a message sent to the group by the client of the group member.
S602, determining whether the group is a restricted group, if the group is a restricted group, executing step S605, otherwise executing step S603.
S603, it is determined whether or not a restriction condition for the message transmission frequency corresponding to the group is satisfied, and if the restriction condition is not satisfied, step S604 is executed, and if the restriction condition is satisfied, step S605 and step S606 are executed.
S604, sending the message to the clients of other group members in the group.
S605, sending prompt information for representing the failure of sending the message to the client of the group member.
S606, marking the group as a limited group.
S607, after the current timing cycle is over, the group is marked as an unrestricted group.
The specific implementation method of each step can refer to the specific implementation method corresponding to the method shown in fig. 4, and is not described again.
In specific implementation, in the same timing period, the client may be configured to display the document information only once, or may be configured to display the document information once after receiving the prompt message each time.
In practical applications, the administrator is responsible for daily management of the group, usually needs to issue notifications, organize group activities, and so on, and the speaking frequency is high, so the speaking frequency of the administrator should not be limited. Therefore, on the basis of the method shown in fig. 4, as shown in fig. 7, the embodiment of the present application provides an instant messaging method applied to a group, which specifically includes the following steps:
s701, receiving a message sent to the group by the client of the group member.
S702, judging whether the member type of the group member is an administrator or not, if so, executing a step S704, otherwise, executing a step S703.
In specific implementation, the server stores the member type of each group member in the group, and the member type at least comprises an administrator and a common member.
S703 determines whether a restriction condition for the message transmission frequency corresponding to the group is satisfied, if not, executes step S704, and if so, executes step S705.
S704, sending the message to the clients of other group members in the group.
S705, prompt information for representing the failure of message sending is sent to the client of the group member.
The group members in this step are the group members in step S701.
In specific implementation, the group may further include a group chat robot, and the group chat robot is controlled by the server to assist members in the group to query information, manage the group, and the like. In the embodiment of the application, the speaking frequency of the group chat robot is not limited, namely when the group opens the limiting condition, the server can still control the chat robot to send the message to the group.
In specific implementation, the messages sent by the administrator and the chat robot to the group do not participate in the statistics of speaking frequency.
When the limitation set by the group administrator is a limitation for the message sending frequency of a single group member in the group, referring to fig. 8, an embodiment of the present application provides an instant messaging method applied to the group, which specifically includes the following steps:
s801, receiving a message sent to the group by the client of the group member.
S802, judging whether the member type of the group member is an administrator, if so, executing a step S805, otherwise, executing a step S803.
S803, determine whether the group member is a restricted member, if the group member is a restricted member, execute step S806, otherwise execute step S804.
S804, determining whether the frequency of the group member sending the message in the group in the current determination period satisfies the limiting condition, if not, executing step S805, otherwise, executing step S806 and step S807.
And S805, sending the message to the clients of other group members in the group.
S806, sending prompt information for representing the failure of sending the message to the clients of the group members.
S807, the group member is marked as a restricted member.
And S808, marking the group member as an unlimited member after the current judgment period is finished.
When the limitation set by the administrator is a limitation on the frequency of receiving messages for the group, referring to fig. 9, an embodiment of the present application provides an instant messaging method applied to the group, which specifically includes the following steps:
s901, receiving a message sent to the group by the client of the group member.
S902, judging whether the member type of the group member is an administrator, if so, executing a step S905, otherwise, executing a step S903.
S903, determining whether the group is a restricted group, if the group is a restricted group, executing step S906, otherwise executing step S904.
And S904, judging whether the frequency of the group receiving the message in the current timing period meets the limiting condition, if not, executing a step S905, and if so, executing a step S906 and a step S907.
S905, the message is sent to the clients of other group members in the group.
S906, sending prompt information for representing the failure of message sending to the client of the group member.
S907, marking the group as a limited group.
S908, after the current determining period is over, marking the group as an unrestricted group.
On the basis of any of the above embodiments, before step S402, the method in the embodiment of the present application further includes the following steps: if the message type of the message is determined to be the designated type, the message is sent to the clients of other group members in the group, otherwise, step S402 is executed.
In the embodiment of the present application, the specifying types include: voice call type, video call type, voting type, red envelope type, group campaign type, check-in type, etc. When the server receives the message sent by the client, the message type of the message is judged first, and if the message type of the message is the specified type, the message is directly sent to the clients of other group members in the group, so that whether the group member is an administrator or not does not need to be judged, whether the restriction condition is met or not does not need to be judged, and the like. In specific implementation, the message of the designated type does not participate in the statistics of the speaking frequency, and further, the message of the designated type cannot be identified and does not participate in the statistics of the speaking frequency.
As shown in fig. 10, based on the same inventive concept as the above instant messaging method applied to a group, the embodiment of the present application further provides an instant messaging device 10 applied to a group, which includes a receiving module 1001, a first determining module 1002, a sending module 1003, and a prompting module 1004.
A receiving module 1001, configured to receive a message sent by a client of a group member to a group.
The first determining module 1002 is configured to determine whether a limiting condition for the message sending frequency corresponding to the group is met, if the limiting condition is not met, execute the function of the issuing module 1003, and if the limiting condition is met, execute the function of the prompting module 1004.
And the issuing module 1003 is configured to send the message to the clients of other group members in the group.
The prompting module 1004 is configured to send a prompting message indicating that the sending of the message fails to the clients of the group members.
Optionally, the first determining module 1002 is specifically configured to: and if the frequency of the group members sending the messages in the group in the current judging period is determined to be less than a first frequency limit threshold value set aiming at the group members, determining that the limiting condition is not met, otherwise, determining that the limiting condition is met.
Further, the first determining module 1002 is specifically configured to: determining the frequency of the group members sending messages in the group in the current judging period by the following method: acquiring a message successfully sent to the group by the group members in the current judgment period; and determining the frequency of the group members sending messages in the group in the current judging period according to the acquired messages.
Optionally, the current determination period is within a preset time period before the message is received, or within a preset time period after the previous determination period is finished, or within a preset time period after the group member successfully sends the first message to the group after the previous determination period is finished.
Optionally, as shown in fig. 11, the instant communication device 10 applied to the group of the embodiment of the present application further includes a restricted member marking module 1005 configured to: and if the frequency of the group members sending the messages in the group in the current judging period is not less than a first frequency limit threshold value set aiming at the group members, marking the group members as limited members.
Accordingly, the receiving module 1001 is further configured to: and receiving the message sent by the client of the group member to the group.
Correspondingly, the instant messaging device 10 applied to a group in the embodiment of the present application further includes a second determining module 1006, configured to determine whether the group member is a restricted member before the first determining module 1002 is executed, if the group member is a restricted member, execute the function of the prompting module 1004, otherwise execute the function of the first determining module 1002.
Optionally, the restricted member marking module 1005 is further configured to: and after the current judging period is finished, marking the group members as unrestricted members.
Optionally, the first determining module 1002 is specifically configured to: and if the frequency of the messages received by the group in the current timing period is determined to be less than a second frequency limit threshold value set for the group, determining that the limiting condition is not met, otherwise, determining that the limiting condition is met.
Further, the first determining module 1002 is specifically configured to: determining the frequency of messages received by the group in the current timing period by: acquiring messages which are successfully sent to the group by all group members in the group within the current timing period; and determining the frequency of the group receiving the messages in the current timing period according to the acquired messages.
Optionally, the current timing period is within a preset time period before the message is received, or within a preset time period after the previous timing period is finished, or within a preset time period after any group member in the group successfully sends the first message to the group after the previous timing period is finished.
Further, as shown in fig. 12, the instant communication device 10 applied to a group according to the embodiment of the present application further includes a restricted group marking module 1007 configured to: and if the frequency of the messages received by the group in the current timing period is determined to be not less than a second frequency limit threshold set for the group, marking the group as a limited group.
Accordingly, the receiving module 1001 is further configured to: receiving a message sent to the group by a client of any group member in the group;
correspondingly, the instant messaging device 10 applied to a group in the embodiment of the present application further includes a third determining module 1008, configured to determine whether the group is a restricted group before the first determining module 1002 is executed, if the group is a restricted group, the function of the prompting module 1004 is executed, otherwise, the function of the first determining module 1002 is executed.
Optionally, the restricted group tagging module 1007 is further configured to: after the current timing period ends, marking the group as an unrestricted group.
Optionally, as shown in fig. 13, the instant communication apparatus 10 applied to a group in the embodiment of the present application further includes a fourth determining module 1009, configured to: before executing the function of the first determining module 1002, it is determined whether the message type of the message is a designated type, if it is determined that the message type of the message is the designated type, the function of the issuing module 1003 is executed, otherwise, the function of the first determining module 1002 is executed.
Optionally, as shown in fig. 14, the instant communication device 10 applied to a group according to the embodiment of the present application further includes a fifth determining module 1010, configured to: before executing the function of the first determining module 1002, it is determined whether the member type of the group member is an administrator, if it is determined that the member type of the group member that sends the message is the administrator, the function of the issuing module 1003 is executed, otherwise, the function of the first determining module 1002 is executed.
Optionally, the instant communication device 10 applied to the group according to the embodiment of the present application further includes a setting module configured to: receiving setting information for the restriction condition sent by a client of an administrator of the group; and updating the restriction conditions corresponding to the group according to the setting information.
The instant messaging device applied to the group and the instant messaging method applied to the group provided by the embodiment of the application adopt the same inventive concept, can obtain the same beneficial effects, and are not repeated herein.
Based on the same inventive concept as the above instant messaging method applied to the group, the embodiment of the present application further provides an electronic device, which may be specifically a desktop computer, a portable computer, a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a server, and the like. As shown in fig. 15, the electronic device 150 may include a processor 1501 and a memory 1502.
The Processor 1501 may be a general-purpose Processor, such as a Central Processing Unit (CPU), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present Application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor.
The memory 1502, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charged Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 1502 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
An embodiment of the present application provides a computer-readable storage medium, which is used for storing computer program instructions for the electronic device, and which includes a program for executing the bullet screen processing method.
The computer storage media may be any available media or data storage device that can be accessed by a computer, including but not limited to magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), etc.
The above embodiments are only used to describe the technical solutions of the present application in detail, but the above embodiments are only used to help understanding the method of the embodiments of the present application, and should not be construed as limiting the embodiments of the present application. Modifications and substitutions that may be readily apparent to those skilled in the art are intended to be included within the scope of the embodiments of the present application.

Claims (12)

1. An instant messaging method applied to a group, comprising:
receiving a message sent to a group by a client of a group member;
if the limit condition corresponding to the group aiming at the message sending frequency is not met, the message is sent to the clients of other group members in the group;
and if the limiting condition is met, sending prompt information representing that the message sending fails to the client of the group member.
2. The method according to claim 1, wherein determining whether the restriction condition for the message transmission frequency corresponding to the group is satisfied includes:
if the frequency of the group members sending the messages in the group in the current judging period is determined to be smaller than a first frequency limit threshold value set for the group members, or the frequency of the group members receiving the messages in the current timing period is determined to be smaller than a second frequency limit threshold value set for the group, the limiting condition is determined not to be met, otherwise, the limiting condition is determined to be met.
3. The method of claim 2, wherein the frequency of messages sent by the group members in the group during the current determination period is determined by:
acquiring a message successfully sent to the group by the group members in the current judgment period;
and determining the frequency of the group members sending messages in the group in the current judging period according to the acquired messages.
4. The method of claim 2, wherein the current determination period is within a preset duration before the message is received, or within a preset duration after the previous determination period is finished, or within a preset duration after the group member successfully sends the first message to the group after the previous determination period is finished.
5. The method of claim 2, further comprising:
if the frequency of the group members sending messages in the group in the current judging period is not less than a first frequency limit threshold value set aiming at the group members, the group members are marked as limited members;
receiving a message sent by a client of the group member to the group;
and if the group member is a limited member, sending prompt information for representing the failure of sending the message to the client of the group member.
6. The method of claim 2, wherein the frequency of messages received by the group during the current timing period is determined by:
acquiring messages which are successfully sent to the group by all group members in the group within the current timing period;
and determining the frequency of the group receiving the messages in the current timing period according to the acquired messages.
7. The method of claim 2, wherein the current timing period is within a preset duration before the message is received, or within a preset duration after a previous timing period is finished, or within a preset duration after any group member in the group successfully sends a first message to the group after the previous timing period is finished.
8. The method according to any one of claims 1 to 7, wherein before determining whether the restriction condition for the message sending frequency corresponding to the group is satisfied, the method further comprises:
and if the message type of the message is determined to be the designated type, the message is sent to the clients of other group members in the group.
9. The method according to any one of claims 1 to 7, wherein before determining whether the restriction condition for the message sending frequency corresponding to the group is satisfied, the method further comprises:
and if the member type of the group member sending the message is determined to be an administrator, sending the message to the clients of other group members in the group.
10. An instant messaging device applied to a group, comprising:
the receiving module is used for receiving the message sent by the client of the group member to the group;
the first judging module is used for determining whether the limiting condition corresponding to the group aiming at the message sending frequency is met, if the limiting condition is not met, the function of the issuing module is executed, and if the limiting condition is met, the function of the prompting module is executed;
the sending module is used for sending the message to the clients of other group members in the group;
and the prompting module is used for sending prompting information representing the failure of sending the message to the client of the group member.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 9 are implemented when the computer program is executed by the processor.
12. A computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, implement the steps of the method of any one of claims 1 to 9.
CN201910514651.5A 2019-06-14 2019-06-14 Instant messaging method and device applied to group, electronic equipment and storage medium Pending CN112087365A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910514651.5A CN112087365A (en) 2019-06-14 2019-06-14 Instant messaging method and device applied to group, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910514651.5A CN112087365A (en) 2019-06-14 2019-06-14 Instant messaging method and device applied to group, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112087365A true CN112087365A (en) 2020-12-15

Family

ID=73733840

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910514651.5A Pending CN112087365A (en) 2019-06-14 2019-06-14 Instant messaging method and device applied to group, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112087365A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301862A (en) * 2021-12-31 2022-04-08 北京字跳网络技术有限公司 Message urgent method, device, system and storage medium
CN115589391A (en) * 2022-12-09 2023-01-10 北京百度网讯科技有限公司 Instant messaging processing method, device and equipment based on block chain and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146065A1 (en) * 2008-12-04 2010-06-10 Incesoft Co., Ltd. Method and apparatus for realizing instant messaging between a plurality of members in an instant messenger group
CN107360441A (en) * 2017-07-10 2017-11-17 广州华多网络科技有限公司 Made a speech between a kind of user live broadcast control method and device
CN108334256A (en) * 2018-02-27 2018-07-27 维沃移动通信有限公司 A kind of message control method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100146065A1 (en) * 2008-12-04 2010-06-10 Incesoft Co., Ltd. Method and apparatus for realizing instant messaging between a plurality of members in an instant messenger group
CN107360441A (en) * 2017-07-10 2017-11-17 广州华多网络科技有限公司 Made a speech between a kind of user live broadcast control method and device
CN108334256A (en) * 2018-02-27 2018-07-27 维沃移动通信有限公司 A kind of message control method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114301862A (en) * 2021-12-31 2022-04-08 北京字跳网络技术有限公司 Message urgent method, device, system and storage medium
CN114301862B (en) * 2021-12-31 2023-08-22 北京字跳网络技术有限公司 Message urgent method, device, system and storage medium
CN115589391A (en) * 2022-12-09 2023-01-10 北京百度网讯科技有限公司 Instant messaging processing method, device and equipment based on block chain and storage medium

Similar Documents

Publication Publication Date Title
US9015109B2 (en) Systems, methods, and computer readable media for maintaining recommendations in a media recommendation system
EP3334127B1 (en) Message pushing method and apparatus thereof
US8712944B1 (en) Adaptive contact window wherein the probability that an answering user/expert will respond to a question corresponds to the answering users having response rates that are based on the time of day
US9135558B1 (en) Generating models based on response rates of users/experts using probabilities, and random numbers
US20180104588A1 (en) Method, apparatus, and storage medium for displaying data
US20150120680A1 (en) Discussion summary
CN106254220B (en) The management method and device of instant messaging group
CN106911556B (en) Message reminding management method and terminal
CN106909448A (en) Method, system and client device for performing application
CN101729441B (en) Update reminding method, system thereof, update source server and access server
CN111130986B (en) Message sending method, device, equipment and storage medium
US20220224659A1 (en) Automated messaging reply-to
US8606742B1 (en) User behavior based contact decisions
US10003617B2 (en) Terminal and application synchronization method thereof
CN112087365A (en) Instant messaging method and device applied to group, electronic equipment and storage medium
CN114024927A (en) Information sharing method and device
CN114358307A (en) Federal learning method and device based on differential privacy law
CN111277483A (en) Multi-terminal message synchronization method, server and storage medium
CN112838980B (en) Message processing method, system, device, electronic equipment and storage medium
CN114124962A (en) Multi-machine room message load balancing processing method and device
US20170279749A1 (en) Modular Communications
US20170164167A1 (en) Call notification method and electronic device
CN111767558A (en) Data access monitoring method, device and system
US11916853B2 (en) Group type identification method and apparatus, computer device, and medium
CN106407098B (en) Application program state monitoring method and device

Legal Events

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

Application publication date: 20201215