CN117714999A - Group chat control method and device, electronic equipment and storage medium - Google Patents
Group chat control method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN117714999A CN117714999A CN202311696992.1A CN202311696992A CN117714999A CN 117714999 A CN117714999 A CN 117714999A CN 202311696992 A CN202311696992 A CN 202311696992A CN 117714999 A CN117714999 A CN 117714999A
- Authority
- CN
- China
- Prior art keywords
- group chat
- group
- message
- terminal
- page
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 113
- 238000003860 storage Methods 0.000 title claims abstract description 17
- 238000004891 communication Methods 0.000 claims abstract description 30
- 238000009877 rendering Methods 0.000 claims description 58
- 238000012545 processing Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 16
- 101150054987 ChAT gene Proteins 0.000 description 1363
- 101100203187 Mus musculus Sh2d3c gene Proteins 0.000 description 1363
- 238000007726 management method Methods 0.000 description 135
- 239000003999 initiator Substances 0.000 description 33
- 230000006870 function Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 9
- 230000003993 interaction Effects 0.000 description 8
- 238000005304 joining Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000007246 mechanism Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000009191 jumping Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The disclosure provides a group chat control method, a group chat control device, electronic equipment and a storage medium, and relates to the technical field of communication. The method comprises the following steps: receiving a group chat creation request message sent by a first message protocol under the condition that a first terminal determines a second terminal needing to create the group chat on a group chat home page H5 page; generating a group chat session H5 page resource of the group chat according to the group chat creation request message; according to the group chat session H5 page resource, sending a group invitation message to the second terminal through a second message protocol; receiving a feedback message sent by a second terminal; and sending a group notice message to the first terminal according to the feedback message. Therefore, the problem of excessive dependence of the group chat function on the terminal can be solved, and unified and complete group chat service can be obtained by realizing the common terminal.
Description
Technical Field
The disclosure relates to the technical field of communication, and in particular relates to a group chat control method, a group chat control device, electronic equipment and a storage medium.
Background
In the related art, the group chat function is a one-to-many communication mode, and relates to a detailed and complex group management function, wherein social properties are strong, business processes are complex, and the function is complex, so that the dependence on a terminal is large. And the terminal is not capable of supporting the fifth generation (5th generation,5G) message, is upgraded To support the functions of 5G message terminal-To-terminal (Person To Person, P2P) and application To the terminal (Application To Person, A2P), but the terminal is not capable of supporting the standard 5G message group chat, and in addition, even if the terminal can support the 5G message group chat function in the future, the problems of different group chat functions of different terminal brands and different page interaction exist. Therefore, how to solve the excessive dependence of the group chat function on the terminal and provide the unified and complete group chat service is a problem to be solved.
Disclosure of Invention
The disclosure provides a group chat control method, a group chat control device, electronic equipment and a storage medium.
In a first aspect, the present disclosure provides a group chat control method, performed by a group chat server, including: receiving a group chat creation request message sent by a first message protocol under the condition that a first terminal determines a second terminal needing to create a group chat on a group head page hypertext markup language H5 page, wherein the group chat creation request message is used for requesting to create a group chat with the second terminal; generating a group chat session H5 page resource of the group chat according to the group chat creation request message; according to the group chat session H5 page resource, a group invitation message is sent to the second terminal through a second message protocol, wherein the group invitation message carries a Uniform Resource Locator (URL) of the group chat session and is used for inviting the second terminal to join the group chat; receiving a feedback message sent by a second terminal, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat; and sending a group notice message to the first terminal according to the feedback message, wherein the group notice message is used for indicating whether the second terminal agrees to join the group chat.
In some embodiments, the above method further comprises: according to the group chat session H5 page resource, a first message carrying a group chat session URL is sent to a first terminal; receiving a first request message which is sent by a first terminal through a first message protocol and used for accessing a group chat session URL; and sending the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the first terminal.
In some embodiments, the above method further comprises: receiving a second request message which is sent by a second terminal through a first message protocol and used for accessing a group chat session URL; according to the second request message, carrying out identity authentication on the second terminal; and determining that the identity authentication is passed, and sending a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal.
In some embodiments, the above method further comprises: receiving group chat robot chatbot information determined by a first terminal in a second message protocol connection state, and determining a group chat home page H5 page to be accessed according to the group chat robot chatbot information, wherein the group home page access request is sent by a browser or a web page view and is based on a first message protocol; according to the group home page access request, carrying out identity authentication on the first terminal; and determining that the identity authentication is passed, and sending a group chat home page H5 page resource to the first terminal, wherein the group chat home page H5 page resource is used for rendering and displaying the group chat home page H5 page by the first terminal.
In some embodiments, the above method further comprises: pre-distributing group identification for the group chat according to the group chat creation request message; and under the condition that the feedback message is used for indicating that the second terminal agrees to join the group chat, determining that the group chat is successfully created and the group identification is effective.
In some embodiments, the above method further comprises: receiving a first group chat message of a group chat sent by a first terminal through a first message protocol, and sending the first group chat message to other terminals except the first terminal in the group chat; and/or receiving a second group chat message of the group chat sent by the first terminal through the first message protocol, determining that the second terminals except the first terminal in the group chat are in a non-first message protocol connection state, storing the second group chat message, and sending the second group chat message to the second terminal after determining that the second terminal recovers the first message protocol connection state.
In some embodiments, after determining that the second terminal resumes the first message protocol connection state, sending a second group chat message to the second terminal includes: sending a group chat new message notification to the second terminal through a second message protocol, wherein the group chat new message notification carries the second group chat message and a group chat session URL; receiving a third request message which is sent by the second terminal through the first message protocol and used for accessing the group chat session URL, and determining that the second terminal restores the first protocol connection state; sending a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal; receiving an offline message acquisition request sent by a second terminal; and sending a second group chat message to the second terminal according to the offline message acquisition request.
In some embodiments, the above method further comprises: receiving a group list inquiring message sent by a first terminal through a first message protocol; and sending a group list H5 page resource to the first terminal according to the group list inquiring message, wherein the group list H5 page resource is used for rendering and displaying the group list H5 page by the first terminal.
In some embodiments, the above method further comprises: determining at least one stored group offline message of the existing group chat according to the query group list message; receiving a fourth request message of a group chat session URL of a specific group sent by a first terminal through a first message protocol, wherein the specific group is any one of the existing group chat; transmitting group chat session H5 page resources of a specific group to a first terminal; receiving a group offline message acquisition request of a specific group sent by a first terminal; and sending the group offline message of the specific group to the first terminal according to the group offline message acquisition request.
In some embodiments, the above method further comprises: receiving a group management access message sent by a first terminal through a first message protocol, wherein the group management access message is used for requesting access operation to a group chat where the first terminal is located;
according to the group management access message, sending a group management H5 page resource to the first terminal; receiving a group management operation message sent by a first terminal through a first message protocol, wherein the group management operation message is used for requesting to perform specified group management operation on group chat; executing specified group management operation according to the group management operation message; and sending a group management operation feedback message to the first terminal.
In some embodiments, the above method further comprises: transmitting a group event notification message to other terminals in a first message protocol connection state except the first terminal in the group chat through a first message protocol, wherein the group event notification message is used for indicating a result of executing specified group management operation; and/or sending a group event notification message to other terminals in the group chat except the first terminal in a non-first message protocol connection state through a second message protocol, wherein the group event notification message is used for indicating a result of executing the specified group management operation.
In a second aspect, the present disclosure provides a group chat control method performed by a first terminal, including: a first terminal in a first message protocol connection state determines a second terminal needing to create a group chat on a group chat home page H5 page; a group chat creation request message is sent to a group chat server through a first message protocol, wherein the group chat creation request message is used for requesting to create a group chat with a second terminal, and the group chat creation request message is used for generating a group chat session H5 page resource of the group chat by the group chat server; and receiving a group chat server-side sent group notification message, wherein the group notification message is used for indicating whether the second terminal agrees to join the group chat.
In some embodiments, the above method further comprises: receiving a first message carrying a group chat session URL sent by a group chat server according to a group chat session H5 page resource; transmitting a first request message for accessing the group chat session URL to the group chat server through a first message protocol; receiving group chat session H5 page resources sent by a group chat server; and rendering and displaying the group chat session H5 page according to the group chat session H5 page resource.
In some embodiments, the above method further comprises: the first terminal in the second message protocol connection state determines group chat bot information; according to the group chat information, determining a group chat head page H5 page to be accessed; sending a group head page access request based on a first message protocol to a group chat server through a browser or webview; receiving group chat home page H5 page resources sent by the group chat server side under the condition that the identity authentication of the first terminal is passed; and rendering and displaying the group chat home page H5 page according to the group chat home page H5 page resource.
In some embodiments, the above method further comprises: and sending a first group chat message of the group chat to the group chat server through a first message protocol, wherein the first group chat message is used for forwarding to other terminals except the first terminal in the group chat by the group chat server.
In some embodiments, the above method further comprises: sending a group list inquiring message to the group chat server through a first message protocol, wherein the group list inquiring message is used for determining at least one stored group offline message of the existing group chat by the group chat server; receiving group chat service end according to the inquiry group list message, transmitting group list H5 page resource; and rendering and displaying the group list H5 page according to the group list H5 page resource.
In some embodiments, the above method further comprises: sending a fourth request message of the URL of the group chat session of the specific group to the group chat server through a first message protocol, wherein the specific group is any one of the existing group chat; receiving group chat session H5 page resources of a specific group sent by a group chat server; sending a group offline message acquisition request of a specific group to a group chat server; and the receiving group chat server side obtains the request according to the group offline message and sends the group offline message of the specific group.
In some embodiments, the above method further comprises: sending a group management access message to a group chat server through a first message protocol, wherein the group management access message is used for requesting access operation to the group chat where the first terminal is located; receiving group chat service end according to group management access message, and sending group management H5 page resource; rendering a group management H5 page for displaying the group chat according to the group management H5 page resource; determining a specified group management operation to be executed; sending a group management operation message to the group chat server through a first message protocol, wherein the group management operation message is used for requesting to perform specified group management operation on the group chat; and receiving a group management operation feedback message sent by the group chat server.
In a third aspect, the present disclosure provides a group chat control method performed by a second terminal, including: receiving a group invitation message sent by a group chat server through a second message protocol, wherein the group invitation message carries a group chat session URL and is used for inviting a second terminal to join the group chat, the group invitation message is sent by the group chat server under the condition that the group chat server receives a group chat creation request message sent by a first terminal and generates a group chat session H5 page resource of the group chat, and the group chat creation request message is used for requesting to create the group chat with the second terminal; and sending a feedback message to the group chat server, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat.
In some embodiments, the above method further comprises: transmitting a second request message for accessing the group chat session URL to the group chat server through a first message protocol; the receiving group chat server determines that the identity authentication of the second terminal passes according to the second request message, and sends group chat session H5 page resources; and rendering and displaying the group chat session H5 page according to the group chat session H5 page resource.
In some embodiments, the above method further comprises: receiving a first group chat message sent by a group chat server through a first message protocol, wherein the first group chat message is received by the group chat server from a first terminal; and/or receiving a second group chat message sent by the first message protocol after the group chat server determines that the second terminal recovers the first message protocol connection state, wherein the second group chat message is received and stored from the first terminal when the second terminal is in a non-first message protocol connection state.
In some embodiments, after the receiving group chat server determines that the second terminal restores the connection state of the first message protocol, the second group chat message sent through the first message protocol includes: receiving a group chat new message notification sent by the group chat server through a second message protocol, wherein the group chat new message notification carries the second group chat message and a group chat session URL; sending a third request message for accessing the group chat session URL to the group chat server through the first message protocol, wherein the third request message is used for determining that the second terminal restores the connection state of the first message protocol by the group chat server; receiving group chat session H5 page resources sent by a group chat server; rendering and displaying the group chat session H5 page according to the group chat session H5 page resource; determining that offline message acquisition is needed, and sending an offline message acquisition request to a group chat server; and receiving a second group chat message sent by the group chat server.
In a fourth aspect, the present disclosure provides a communication apparatus comprising: the receiving and transmitting module is used for receiving a group chat creation request message sent by a first message protocol under the condition that a first terminal determines a second terminal needing to create a group chat on a group head page hypertext markup language H5 page, wherein the group chat creation request message is used for requesting to create the group chat with the second terminal; the processing module is used for generating group chat session H5 page resources of the group chat according to the group chat creation request message; the receiving and transmitting module is further configured to send a group invitation message to the second terminal through a second message protocol according to the group chat session H5 page resource, where the group invitation message carries a uniform resource locator URL of the group chat session and is used to invite the second terminal to join the group chat; the receiving and transmitting module is further used for receiving a feedback message sent by the second terminal, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat; and the receiving and transmitting module is further used for sending a group notice message to the first terminal according to the feedback message, wherein the group notice message is used for indicating whether the second terminal agrees to join the group chat.
In a fifth aspect, the present disclosure provides a communication apparatus comprising: the processing module is used for determining a second terminal needing to create the group chat on the group chat home page H5 page by the first terminal in the first message protocol connection state; the receiving and transmitting module is used for sending a group chat creation request message to the group chat server through a first message protocol, wherein the group chat creation request message is used for requesting to create a group chat with the second terminal, and the group chat creation request message is used for generating a group chat session H5 page resource of the group chat by the group chat server; and the receiving and transmitting module is also used for receiving a group chat server-side sent group notification message, wherein the group notification message is used for indicating whether the second terminal agrees to join the group chat.
In a sixth aspect, the present disclosure provides a communication apparatus comprising: the receiving and transmitting module is used for receiving a group invitation message sent by the group chat server through a second message protocol, wherein the group invitation message carries a group chat session URL and is used for inviting the second terminal to join the group chat, the group invitation message is sent by the group chat server under the condition that the group chat creation request message sent by the first terminal is received and a group chat session H5 page resource of the group chat is generated, and the group chat creation request message is used for requesting to create the group chat with the second terminal; and the receiving and transmitting module is further used for sending a feedback message to the group chat server, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat.
In a seventh aspect, the present disclosure provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the group chat control method according to the first aspect, the second aspect, or the third aspect of the embodiments of the present disclosure.
In an eighth aspect, the present disclosure provides a computer readable storage medium having stored therein computer executable instructions which when executed by a processor are configured to implement the group chat control method according to the first aspect, the second aspect, or the third aspect of the embodiments of the present disclosure.
In a ninth aspect, the present disclosure provides a computer program product, including a computer program, which when executed by a processor implements the group chat control method according to the first aspect, the second aspect, or the third aspect of the embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
in the embodiment of the disclosure, a group chat creation request message is sent through a first message protocol under the condition that a first terminal determines that a second terminal of a group chat needs to be created on a group home page H5 page through a group chat server, wherein the group chat creation request message is used for requesting to create the group chat with the second terminal; generating a group chat session H5 page resource of the group chat according to the group chat creation request message; according to the group chat session H5 page resource, a group invitation message is sent to the second terminal through a second message protocol, wherein the group invitation message carries a Uniform Resource Locator (URL) of the group chat session and is used for inviting the second terminal to join the group chat; receiving a feedback message sent by a second terminal, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat; and sending a group notice message to the first terminal according to the feedback message, wherein the group notice message is used for indicating whether the second terminal agrees to join the group chat, so that the problem of excessive dependence of the group chat function on the terminal can be solved, and unified and complete group chat service can be obtained by the common terminal.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of a group chat communication system, according to an exemplary embodiment;
fig. 2 is a schematic diagram illustrating a group chat communication system in accordance with another exemplary embodiment;
FIG. 3 is a schematic diagram of a group chat page shown in accordance with an exemplary embodiment;
fig. 4 is a flow chart illustrating a group chat control method according to an exemplary embodiment;
fig. 5 is a flow chart illustrating a group chat control method according to another exemplary embodiment;
fig. 6 is a flow chart of a group chat control method, according to yet another exemplary embodiment;
fig. 7 is a flow chart of a group chat control method shown in accordance with yet another exemplary embodiment;
fig. 8 is a flow chart of a group chat control method, according to yet another exemplary embodiment;
fig. 9 is a flow chart of a group chat control method shown in accordance with yet another exemplary embodiment;
fig. 10 is a flow chart of a group chat control method, according to yet another exemplary embodiment;
Fig. 11 is a flow chart of a group chat control method shown in accordance with yet another exemplary embodiment;
FIG. 12 is a block diagram of a communication device according to an exemplary embodiment;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Specific embodiments of the present disclosure have been shown by way of the above drawings and will be described in more detail below. These drawings and the written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the disclosed concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
The following describes the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
In the related art, a terminal does not support a 5G message and upgrades to support a 5G message P2P, A P function, but a terminal supporting a standard 5G message group chat does not exist yet, and even if the terminal can support the 5G message group chat function in the future, the problems of different group chat functions of different terminal brands and different page interactions exist. Therefore, how to solve the excessive dependence of the group chat function on the terminal and provide the unified and complete group chat service is a problem to be solved.
Based on this, the embodiment of the disclosure provides a group chat control method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: receiving a group chat creation request message sent by a first message protocol under the condition that a first terminal determines a second terminal needing to create a group chat on a group head page hypertext markup language (Hyper Text Markup Language, HTML5 or H5 for short) page, wherein the group chat creation request message is used for requesting to create the group chat with the second terminal; generating a group chat session H5 page resource of the group chat according to the group chat creation request message; according to the group chat session H5 page resource, a group invitation message is sent to the second terminal through a second message protocol, wherein the group invitation message carries a group chat session URL and is used for inviting the second terminal to join the group chat; receiving a feedback message sent by a second terminal, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat; and sending a group notice message to the first terminal according to the feedback message, wherein the group notice message is used for indicating whether the second terminal agrees to join the group chat. Therefore, the problem of excessive dependence of the group chat function on the terminal can be solved, and unified and complete group chat service can be obtained by realizing the common terminal.
First, a group chat communication system provided by an embodiment of the present disclosure will be described with reference to fig. 1.
Fig. 1 is a schematic diagram illustrating a group chat communication system in accordance with an exemplary embodiment.
As shown in fig. 1, the group chat communication system 10 includes: group chat server 11, 5G message center (5th generation message center,5GMC) 12, access module 13 and terminal 14.
The rich media message based on the global system for mobile communication alliance (Global Mobile System Alliance, GSMA) rich media communication suite (rich communication suite, RCS) has the properties of rich media, interactivity, light application, intellectualization and the like, and is a common choice for the short message upgrading evolution of operators. The 5G message is just created based on the RSC framework, and the commercialization of P2P rich media messages, end-to-application (Person To Application, P2A/A2P) Chatbot messages has been realized.
The 5G message based on RCS includes group chat service besides the above-mentioned P2P, A P/P2A service. The system architecture of the 5G message group chat function is shown in fig. 1, and mainly includes a group chat server 11, a 5gmc 12, an access module 13 (e.g. an internet protocol (internet protocol, IP) multimedia subsystem (IP multimedia subsystem, IMS)), and a terminal 14, where network elements/modules interact with each other using a session initiation protocol (session initiation protocol, SIP) protocol to implement group management, such as creating groups, inviting members, adding/removing members, modifying avatars/names, dismissing groups, group event notification, and the like, and transmission of group chat messages.
Fig. 2 is a schematic structural diagram of a group chat communication system according to another exemplary embodiment.
As shown in fig. 2, the group chat communication system 100 includes: group chat server 101 and terminal 102.
The group chat server 101 includes a group chat application server (Group chat Application Server, GC AS), a message platform (message AS a platform, maaP) access module, and an H5 server. The GC AS is responsible for group management service logic handling, group detail information storage, construction and distribution of group messages. The MaaP access module is responsible for interfacing with a 5G message MaaP platform, accessing the group chat service to the 5G message MaaP in a chatbot manner, converting the message of the group chat service into a standard 5G message, and sending the standard 5G message to the terminal 102 via the MaaP. H5 The server is responsible for accessing client identity authentication, providing group chat management and message interaction related H5 page resources, interaction with the terminal 102, offline message storage and the like.
The terminal 102 may be a 5G message terminal embedded with webview, and provide a user with functions of searching group chat, receiving a standard 5G message form group invitation message card, accessing an H5 server, invoking a terminal bottom generic bootstrapping architecture (Generic Bootstrapping Architecture, GBA) capability to complete authentication, group management operation, group chat messaging, and the like.
The group chat server 101 provides a group chat hypertext markup language (Hyper Text Markup Language, html5, or H5) page for the terminal 102 to perform group chat interaction operations, including group home page, group management, group chat session, and the like, all performed through the H5 page. The group chat server 101 accesses the 5G message MaaP in a mode of group chat application, and configures a fixed menu key of the group chat as a group chat home page entry.
The terminal 102 (e.g., standard 5G message terminal) may provide the function of searching group chat for the initiator user and provide a chat session page, as shown in fig. 3, the initiator user may click a group chat home page button of a fixed menu in the chat session page, and the terminal 102 provides the group chat home page H5 page for the initiator user through a built-in page view (webview)/browser.
When the terminal 102 determines that the initiator user initiates creation of the group chat through the group chat home page H5 page, the group chat server 101 may generate an invitation message, package the invitation message into a standard 5G message chatbot card message, and send the standard 5G message chatbot card message to the terminal 102 of the invited user through MaaP and 5GMC, where the standard 5G message chatbot card message includes a picture, a group invitation prompt, and accept and reject keys. The terminal 102 determines that the invited user clicks the accept button, and determines that the invited user agrees to join the group chat, and conversely, determines that the invited user does not agree to join the group chat, if it determines that the invited user clicks the reject button. And the terminal 102 transmits the feedback information accepted or rejected by the invited user to the group chat server 101 through the 5GMC and the MaaP, and the group chat server 101 notifies the initiator user again and sends the feedback information to the terminal 102 of the initiator user.
It should be noted that, information interaction between the group chat server and the terminal is realized through the forwarding of MaaP and 5 GMC.
Fig. 4 is a flow chart illustrating a group chat control method according to an exemplary embodiment.
As shown in fig. 4, the group chat control method provided by the embodiment of the present disclosure is executed by a group chat server, and includes, but is not limited to, the following steps:
s41, receiving a group chat creation request message sent by a first message protocol under the condition that the first terminal determines that a second terminal of the group chat needs to be created on a group chat home page H5 page, wherein the group chat creation request message is used for requesting to create the group chat with the second terminal.
In the embodiment of the present disclosure, the first terminal may be a terminal of an initiator user that initiates group chat creation, for example, the user a wants to create a group chat with the user B, the user a initiates a group chat creation procedure with the user B on the terminal thereof, and the first terminal may be a terminal of the user a.
In some embodiments, the first terminal is a terminal supporting 5G messages, or is a normal terminal, or is a terminal supporting standard 5G message group chat.
In the embodiment of the present disclosure, as shown in fig. 3, a first terminal may provide a group chat home page H5 page, and an initiator user may perform an operation of group chat creation on the group chat home page H5 page provided by the first terminal.
In some embodiments, a browser or webview of the first terminal renders a presentation group chat head page H5 page.
Illustratively, the initiator user inputs information of at least one invited user creating the group chat, such as a mobile phone number or a unique identification code of the invited user, etc., in the group chat home page H5 page of the first terminal. Thus, the first terminal sends a group chat creation request to the group chat server based on the operation of the initiator user, wherein the group chat creation request message is used for requesting to create a group chat with a second terminal, and the second terminal is the terminal of the invited user.
In some embodiments, the first message protocol is used for the transceiving of H5 page messages.
In some embodiments, the second terminal is a terminal supporting 5G messages, or is a normal terminal, or is a terminal supporting standard 5G message group chat.
In the embodiment of the disclosure, the group chat server receives the group chat creation request message sent by the first terminal, and may receive the group chat creation request message sent by the first terminal through the first message protocol, that is, through the H5 page (group chat home page H5 page).
S42, generating group chat session H5 page resources of the group chat according to the group chat creation request message.
In the embodiment of the disclosure, the group chat server receives the first sent group chat creation request message, and can determine the second terminal of the invited user according to the group chat creation request message sent by the first terminal, so as to generate the group chat session H5 page resource of the group chat according to the group chat creation request message.
In some embodiments, the first terminal includes an RCS module and a webview (or browser), the group chat server includes a GC AS, an H5 server (server), and a MaaP access module, after the H5 server of the group chat server receives a group chat creation request message sent by the webview (or browser) of the first terminal, the group chat creation request message is forwarded to the GC AS of the group chat server, and the GC AS of the group chat server notifies the H5 server of the group chat server to generate a group chat session H5 page resource of the group chat according to the group chat creation request message.
In some embodiments, the group chat session H5 page resources include static resources, such as group head portraits, group names, group chat windows, and the like.
In some embodiments, the group chat session H5 page resources include hypertext markup language (hyper text markup language, HTML), cascading style sheets (cascading style sheets, CSS), and scripting language (JavaScript) code from which a browser or webview of the terminal may be rendered to present the group chat session H5 page to the user.
S43, according to the group chat session H5 page resource, a group invitation message is sent to the second terminal through a second message protocol, wherein the group invitation message carries a group chat session URL and is used for inviting the second terminal to join the group chat.
In the embodiment of the present disclosure, when the group chat server generates the group chat session H5 page resource of the group chat according to the group chat creation request message, the group invitation message may be further sent to the second terminal according to the group chat session H5 page resource.
In some embodiments, the group chat server encapsulates the group invitation message into a standard 5G message card format defined by the MaaP interface, and sends the group invitation message to the second terminal through the MaaP and the 5 GMC.
In some embodiments, the second message protocol is used for standard 5G messaging.
In some embodiments, the GC AS of the group chat server notifies the H5 server of the group chat session H5 page resource according to the group chat creation request message, the H5 server of the group chat server generates the group chat session H5 page resource of the group chat and the group chat session uniform resource locator (Uniform Resource Locator, URL) pointing to the group chat session H5 page based on the notification of the GC AS of the group chat server, and then feeds the group chat session URL of the group chat session H5 page back to the GC AS of the group chat server, so that the GC AS of the group chat server generates the group invitation message according to the group chat session URL of the group chat session H5 page, and forwards the group invitation message to the MaaP access module of the group chat server, and the MaaP access module of the group chat server encapsulates the group invitation message into a standard 5G message format defined by the MaaP interface and sends the group invitation message to the second terminal through the MaaP and the 5 GMC.
Illustratively, the group invitation message is a standard 5G message chatbot card, in which a 5G message group chat official picture, group invitation prompt (e.g. a invite you to join xx group), accept and reject keys are placed, wherein the accept and reject keys set the actions of feedback information (postpack) and jump group chat session URL.
In some embodiments, the group chat server sends a group invitation message to the second terminal, where the group invitation message is used to invite the second terminal to join the group chat, and the invited user may use the second terminal to perform related operations, for example, an operation of agreeing to join the group chat, or an operation of refusing to join the group chat, viewing group chat homepage information, and so on.
S44, receiving a feedback message sent by the second terminal, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat.
In the embodiment of the disclosure, the invited user uses the second terminal to execute related operation, and the second terminal determines to agree to join the group chat or refuse to join the group chat.
Based on the feedback information, the second terminal can send feedback information to the group chat server, wherein the feedback information is used for indicating that the second terminal agrees to join the group chat, or the feedback information is used for indicating that the second terminal refuses to join the group chat.
In some embodiments, the second terminal sends the feedback message to the group chat server through the second message protocol or the first message protocol.
In some embodiments, the second terminal sends a feedback message to the group chat server through the MaaP and the 5 GMC.
In some embodiments, the second terminal sends the feedback message to the MaaP access module of the group chat server through the MaaP and the 5GMC, the MaaP access module of the group chat server forwards the feedback message to the GC AS of the group chat server, and the GC AS of the group chat server determines whether the second terminal agrees to join the group chat after receiving the feedback message.
In some embodiments, the GC AS of the group chat server determines that the second terminal agrees to join the group chat, determines that the group chat creation is successful, or the GC AS of the group chat server determines that the second terminal refuses to join the group chat, and determines that the group chat creation fails.
In some embodiments, the group chat server pre-distributes group identification for the group chat according to the group chat creation request message; and under the condition that the feedback message is used for indicating that the second terminal agrees to join the group chat, determining that the group chat is successfully created and the group identification is effective.
In the embodiment of the disclosure, the group chat server pre-distributes the group identifier for the group chat according to the group chat creation request message, and can determine that the group chat creation is successful and the group identifier is effective under the condition that the feedback message is used for indicating that the second terminal agrees to join the group chat.
In some embodiments, the group chat server determines that the group chat creation fails and the group identification fails in a case where the feedback message is used to instruct the second terminal to refuse to join the group chat.
In some embodiments, in a case that the group chat server (GC AS of the group chat server) does not receive the feedback message of the second terminal within a specified period of time, it may be determined that the second terminal refuses to join the group chat, and it is determined that the group chat creation fails, and the group identifier fails.
In some embodiments, the starting time of the designated time period is the time when the group chat server sends the group invitation message to the second terminal, and the duration of the designated time period is set according to needs, which is not particularly limited in the embodiments of the present disclosure.
S45, sending a group notice message to the first terminal according to the feedback message, wherein the group notice message is used for indicating whether the second terminal agrees to join the group chat.
In the embodiment of the disclosure, the group chat server may determine whether the second terminal agrees to join the group chat according to the feedback message, and based on this, the group chat server may send a group notification message to the first terminal, where the group notification message is used to indicate whether the second terminal agrees to join the group chat.
In some embodiments, the group chat server sends the group advertisement message to the first terminal via the first message protocol or the second message protocol.
In some embodiments, the group chat server sends a group notification message to the first terminal, where the group notification message is used to instruct the second terminal to agree to join the group chat, or the group chat server sends a group notification message to the first terminal, where the group notification message is used to instruct the second terminal to refuse to join the group chat.
In some embodiments, the GC AS of the group chat server sends the group notification message to the H5server of the group chat server through the first message protocol, and the H5server of the group chat server forwards the group notification message to the first terminal.
In some embodiments, under the condition that a group chat service end generates a group chat session H5 page resource of the group chat, according to the group chat session H5 page resource, a first message carrying a group chat session URL is sent to a first terminal; receiving a first request message which is sent by a first terminal and used for accessing a group chat session URL; and sending the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the first terminal.
In the embodiment of the disclosure, a group chat server sends a first message carrying a group chat session URL to a first terminal through a first message protocol; receiving a first request message which is sent by a first terminal and used for accessing a group chat session URL through a first message protocol; and sending the group chat session H5 page resource to the first terminal through the first message protocol, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the first terminal. Thus, after the first terminal receives the group chat session H5 page resource, the group chat session H5 page can be rendered and displayed, as shown in fig. 3, and the initiator user can access the group chat session H5 page at the first terminal.
It can be understood that after the first terminal receives the group chat session H5 page resource, rendering and displaying the group chat session H5 page, and because the second terminal is not invited to join the group chat at this time, a prompt for waiting for joining of the member can be displayed in the group chat session H5 page.
In some embodiments, an H5 server of the group chat server sends a first message carrying a group chat session URL to the first terminal through a first message protocol; the H5 server of the group chat server receives a first request message which is sent by a first terminal and accesses the URL of the group chat session through a first message protocol; the H5 server of the group chat server sends group chat session H5 page resources to the first terminal through a first message protocol, wherein the group chat session H5 page resources are used for rendering and displaying the group chat session H5 page by the first terminal.
In some embodiments, when the group chat server generates a group chat session H5 page resource of the group chat and sends a group notification message to the first terminal to indicate that the second terminal agrees to join the group chat, the first message carrying the URL of the group chat session is sent to the first terminal according to the group chat session H5 page resource; receiving a first request message which is sent by a first terminal and used for accessing a group chat session URL; and then sending the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the first terminal.
It may be understood that after the first terminal receives the group chat session H5 page resource, rendering and displaying the group chat session H5 page, if a group notification message sent by the group chat server is received, and the group notification message indicates that the second terminal agrees to join the group chat, at this time, the second terminal agrees to join the group chat, and the initiator user may view members joining the group chat on the group chat session H5 page, and perform sending and receiving of the group chat session, and so on.
In some embodiments, the webview or browser of the first terminal renders a presentation group chat session H5 page.
In some embodiments, the group chat server receives a second request message sent by the second terminal through the first message protocol for accessing the group chat session URL; according to the second request message, carrying out identity authentication on the second terminal; and determining that the identity authentication is passed, and sending a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal.
In the embodiment of the disclosure, the second terminal sends a feedback message to the group chat server, where the feedback message is used to instruct the second terminal to agree to join the group chat, the second terminal may call up a webview embedded in the 5G message, send a second request message for accessing the URL of the group chat session to the group chat server, after the group chat server receives the second sent second request message, may perform identity authentication on the second terminal, and if it is determined that the identity authentication passes, may send a group chat session H5 page resource to the second terminal, where the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal. Thus, after receiving the group chat session H5 page resource, the second terminal may render and display the group chat session H5 page, as shown in fig. 3, and the invited user may access the group chat session H5 page at the second terminal, for sending and receiving the group chat session, and viewing members joining the group chat, and so on.
In some embodiments, the H5 server of the group chat server receives a second request message sent by the second terminal for accessing the group chat session URL; the H5 server of the group chat server performs identity authentication on the second terminal according to the second request message; the H5 server of the group chat server inquires whether the second terminal enters the group from the GC AS of the group chat server, and the H5 server of the group chat server sends group chat session H5 page resources to the second terminal under the condition that the GC AS of the group chat server feeds back that the second terminal has entered the group.
In some embodiments, the group chat server sends the group chat session H5 page resources to the second terminal via the first message protocol.
In some embodiments, the webview or browser of the second terminal renders a presentation group chat session H5 page.
In some embodiments, the group chat server receives a group chat chatbot information determined by the first terminal in the second message protocol connection state, and determines a group chat head page H5 page to be accessed according to the group chat chatbot information, and sends a group head page access request based on the first message protocol through a browser or a web page view; according to the group home page access request, carrying out identity authentication on the first terminal; and determining that the identity authentication is passed, and sending a group chat home page H5 page resource to the first terminal, wherein the group chat home page H5 page resource is used for rendering and displaying the group chat home page H5 page by the first terminal.
In this embodiment of the present disclosure, as shown in fig. 3, an initiator user may search a group chat about at a first terminal, determine group chat about information from a MaaP when the first terminal is in a second message protocol connection state, render and display a group chat page, where a fixed menu in the group chat page includes a group chat home page button, and when the first terminal enters the group chat page and clicks the group chat home page button in the fixed menu, the first terminal may determine a group chat home page H5 page that needs to be accessed, call a webview or a browser, and send a group home page access request based on a first message protocol to a group chat server through the browser or webview.
In the embodiment of the disclosure, the group chat server receives the group home page access request sent by the first terminal through the first message protocol, and can perform identity authentication on the first terminal, wherein the group chat home page H5 page resource is sent to the first terminal under the condition that the identity authentication passes.
In some embodiments, the H5 server of the group chat server receives the group top page access request sent by the first terminal through the first message protocol, and may perform identity authentication on the first terminal, where, in a case that the identity authentication passes, the group chat top page H5 page resource is sent to the first terminal through the first message protocol.
In some embodiments, the H5 server of the group chat server receives a group home page access request sent by the first terminal, and performs identity authentication on the first terminal by adopting a GBA authentication mechanism defined by a standard.
In the embodiment of the disclosure, after the first terminal receives the group chat home page H5 page resource, the group chat home page H5 page can be rendered and displayed, so that the initiator user can access the group chat home page H5 page at the first terminal and perform the group chat creation operation on the group chat home page H5 page.
In some embodiments, the group chat head H5 page resources include HTML, CSS, and JavaScript code from which a browser (or webview) of the first terminal may be rendered to present the group chat head H5 page to the user.
In some embodiments, the group chat server receives a first group chat message of the group chat sent by the first terminal through the first message protocol, and sends the first group chat message to other terminals except the first terminal in the group chat; and/or receiving a second group chat message of the group chat sent by the first terminal through the first message protocol, determining that the second terminals except the first terminal in the group chat are in a non-first message protocol connection state, storing the second group chat message, and sending the second group chat message to the second terminal after determining that the second terminal recovers the first message protocol connection state.
In the embodiment of the disclosure, when it is determined that the group chat is successfully created, that is, the first terminal of the initiator user and the second terminal of the invited user both enter the group chat, the first terminal may send a first group chat message of the group chat through a first message protocol, and the group chat server receives the first group chat message sent by the first terminal and may send the first group chat message to other terminals except the first terminal in the group chat.
It can be understood that the group chat creation is successful, that is, the first terminal of the initiator user and the second terminal of the invited user both enter the group chat, if the first terminal is in an H5 online state (that is, the webview of the first terminal is connected with the H5 server of the group chat server, the first terminal is in a first message protocol connection state), the initiator user can input a chat message in the group chat session H5 page of the first terminal, the first terminal sends the first group chat message to the group chat server (the H5 server of the group chat server), and after the group chat server (the H5 server of the group chat server) receives the first group chat message, the first group chat message can be sent to the second terminal in the H5 online state (that is, the webview of the second terminal is connected with the H5 server of the group chat server, and the second terminal is in the first message protocol connection state).
In this embodiment of the present disclosure, if the second terminal is in an H5 offline state (i.e., the webview of the second terminal loses connection with the H5server of the group chat server, and the second terminal is in a non-first message protocol connection state), the group chat server (the H5server of the group chat server) receives the second group chat message of the group chat sent by the first terminal, and when it is determined that the second terminal other than the first terminal in the group chat is in the non-first message protocol connection state (i.e., in the H5 offline state), the second group chat message may be stored, and after it is determined that the second terminal resumes the first message protocol connection state (i.e., in the H5 online state), the second group chat message is sent to the second terminal.
In some embodiments, the first terminal sends the first group chat message and/or the second group chat message to the group chat server (H5 server of the group chat server) through the first message protocol, and the group chat server (H5 server of the group chat server) sends the first group chat message and/or the second group chat message to the second terminal through the first message protocol.
In some embodiments, the group chat server receives a third group chat message of the group chat sent by the second terminal, and sends the third group chat message to other terminals except the second terminal in the group chat; and/or receiving a fourth group chat message of the group chat sent by the second terminal, determining that the first terminal except the second terminal in the group chat is in an offline state, storing the fourth group chat message, and sending the fourth group chat message to the first terminal after determining that the first terminal is restored to the online state.
It should be noted that, the description of the group chat server receiving the third group chat message and/or the fourth group chat message of the group chat sent by the second terminal may refer to the description of the group chat server receiving the first group chat message and/or the second group chat message of the group chat sent by the first terminal, which is not repeated herein.
In some embodiments, after determining that the second terminal resumes the first message protocol connection state, the group chat server sends a second group chat message to the second terminal, including: sending a group chat new message notification to the second terminal through a second message protocol, wherein the group chat new message notification carries a second group chat message and a group chat session URL; receiving a third request message which is sent by the second terminal through the first message protocol and used for accessing the group chat session URL, and determining that the second terminal restores the first protocol connection state; sending a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal; receiving an offline message acquisition request sent by a second terminal; and sending a second group chat message to the second terminal according to the offline message acquisition request.
In the embodiment of the disclosure, the group chat server (H5 server of the group chat server) determines that the second terminal is in a non-first message protocol connection state (i.e., is in an H5 off-line state), and may send a group chat new message notification carrying the second group chat message and the group chat session URL to the second terminal through the second message protocol, so that after receiving the group chat new message notification, the second terminal may send a third request message for accessing the group chat session URL to the group chat server (H5 server of the group chat server) through the first message protocol, and the group chat server (H5 server of the group chat server) may determine that the second terminal resumes the first message protocol connection state (i.e., is in an H5 on-line state) when receiving the third request message for accessing the group chat session URL sent by the second terminal.
In the embodiment of the disclosure, the group chat server (H5 server of the group chat server) determines that the second terminal restores the first message protocol connection state, and may send a group chat session H5 page resource to the second terminal, where the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal. Therefore, the user of the second terminal can perform offline message pulling operation on the group chat session H5 page, the second terminal sends an offline message acquisition request to the group chat server (the H5server of the group chat server), and the group chat server (the H5server of the group chat server) can send a second group chat message to the second terminal according to the offline message acquisition request sent by the second terminal.
In some embodiments, the second terminal sends a third access group chat session URL to the group chat server (H5 server of the group chat server) through the first message protocol, the group chat server (H5 server of the group chat server) sends a group chat session H5 page resource to the second terminal through the first message protocol, the second terminal sends an offline message acquisition request to the group chat server (H5 server of the group chat server) through the first message protocol, and the group chat server (H5 server of the group chat server) sends a second group chat message to the second terminal through the first message protocol.
In some embodiments, when the group chat server determines that a second terminal except the first terminal is in a non-first message protocol connection state (i.e. an H5 offline state) in the group chat, the group chat server sends a group chat new message notification to the second terminal through a second message protocol, the second terminal receives the group chat new message notification, the group chat new message notification includes a view details key, a user of the second terminal can click the view details key, call up a webview or a browser to access a URL of a group chat session, enter a H5 page of the group chat session, and perform an offline message pulling operation on the H5 page of the group chat session.
In some embodiments, when determining that a second terminal other than the first terminal in the group chat is in a non-first message protocol connection state (i.e., an H5 offline state), the H5 server of the group chat server feeds back user offline information to the GC AS of the group chat server, the GC AS of the group chat server generates a group chat new message notification, packages the group chat new message notification into a standard 5G message chat card, the card includes a view details key, sends the group chat new message notification to the second terminal through a second message protocol, and a user of the second terminal can click the view details key, call webview or a browser to access a group chat session URL, enter a group chat session H5 page, and perform an offline message pulling operation on the group chat session H5 page, so that the second terminal sends an offline message acquisition request to the H5 server of the group chat server, and the H5 server of the group chat server can send a second group message to the second terminal according to the offline message acquisition request sent by the second terminal.
It should be noted that the second group chat message may include one or more chat messages, which are not specifically limited by the embodiments of the present disclosure.
In some embodiments, the group chat server receives a query group list message sent by the first terminal through a first message protocol; and sending a group list H5 page resource to the first terminal according to the group list inquiring message, wherein the group list H5 page resource is used for rendering and displaying the group list H5 page by the first terminal.
In the embodiment of the disclosure, a user of the first terminal may access a group chat home page H5 page of the first terminal (browser or webview rendering and displaying of the first terminal), and select a query group list in the group chat home page H5 page, so that the first terminal may send a query group list message to the group chat server.
Under the condition that the group chat server receives the group list inquiring message sent by the first terminal, the group list H5 page resource can be sent to the first terminal, so that the first terminal (browser or webview of the first terminal) can receive the group list H5 page resource and render and display the group list H5 page according to the group list H5 page resource.
In some embodiments, the first terminal sends a group list query message to an H5 server of the group chat server, the H5 server of the group chat server sends a group list query message to a GC AS of the group chat server, the GC AS of the group chat server feeds back a group list to the H5 server of the group chat server, and the H5 server of the group chat server obtains the offline message number of each group in the group list, generates a group list H5 page resource, and sends the group list H5 page resource to the first terminal.
In some embodiments, the group chat server sends the group list H5 page resources to the first terminal via a first message protocol.
In some embodiments, the group list H5 page resources include HTML, CSS, and JavaScript code from which the browser (or webview) of the first terminal will be rendered to present the group list H5 page to the user.
In some embodiments, the group chat server determines a stored group offline message of at least one existing group chat according to the query group list message sent by the first terminal; receiving a fourth request message of a group chat session URL of a specific group sent by a first terminal through a first message protocol, wherein the specific group is any one of the existing group chat; transmitting group chat session H5 page resources of a specific group to a first terminal; receiving a group offline message acquisition request of a specific group sent by a first terminal; and sending the group offline message of the specific group to the first terminal according to the group offline message acquisition request.
In the embodiment of the disclosure, the group chat server receives the inquiry group list message sent by the first terminal, can determine one or more stored group offline messages of the existing group chat, sends the group chat session H5 page resource of the specific group to the first terminal when receiving the access group chat session URL of the specific group sent by the first terminal, and renders and displays the group chat session H5 page of the specific group according to the group chat session H5 page resource of the specific group, so that a user of the first terminal can access the group chat session H5 page of the specific group to perform an offline message pulling operation, and the first terminal can send a group offline message acquisition request of the specific group to the group chat server and send the group offline message of the specific group to the first terminal according to the group offline message acquisition request of the specific group sent by the first terminal.
In some embodiments, the H5 server of the group chat server receives a query group list message sent by a first terminal (browser or webview of the first terminal), and determines at least one stored group offline message of the existing group chat; an H5 server of the group chat server receives a fourth request message of a specific group access group chat session URL sent by a first terminal (browser or webview of the first terminal), wherein the specific group is any one of the existing group chat; the H5 server of the group chat server sends group chat session H5 page resources of a specific group to a first terminal (browser or webview of the first terminal); an H5 server of the group chat server receives a group offline message acquisition request of a specific group sent by a first terminal (browser or webview of the first terminal); and the H5 server of the group chat server sends the group offline message of the specific group to the first terminal (browser or webview of the first terminal) according to the group offline message acquisition request.
In some embodiments, the user of the first terminal may save the important group chat in the group list, so as to conveniently and quickly enter the group chat.
In some embodiments, the group chat server receives a group list query message sent by the second terminal; and sending a group list H5 page resource to the second terminal according to the group list inquiring message, wherein the group list H5 page resource is used for rendering and displaying the group list H5 page by the first terminal.
In some embodiments, the group list H5 page resources include HTML, CSS, and JavaScript code from which the browser (or webview) of the second terminal will be rendered to present the group list H5 page to the user.
In some embodiments, the group chat server determines a stored group offline message of at least one existing group chat according to the query group list message sent by the second terminal; receiving an access group chat session URL of a specific group sent by a second terminal, wherein the specific group is any one of the existing group chat; transmitting group chat session H5 page resources of the specific group to the second terminal; receiving a group offline message acquisition request of a specific group sent by a second terminal; and sending the group offline message of the specific group to the second terminal according to the group offline message acquisition request.
It should be noted that, the description related to the second terminal sending the query group list message to the group chat server may refer to the description related to the first terminal sending the query group list message to the group chat server, which is not described herein.
In some embodiments, the group chat server receives a group management access message sent by the first terminal through a first message protocol, where the group management access message is used for requesting access operation to the group chat where the first terminal is located; according to the group management access message, sending a group management H5 page resource to the first terminal; receiving a group management operation message sent by a first terminal through a first message protocol, wherein the group management operation message is used for requesting to perform specified group management operation on group chat; executing specified group management operation according to the group management operation message; and sending a group management operation feedback message to the first terminal.
In this embodiment of the present disclosure, as shown in fig. 3, a first terminal may provide a group chat session H5 page, a user of the first terminal may perform an operation of accessing the group management page on the group chat session H5 page, so that the first terminal may send a group management access message to the group chat server, after the group chat server receives the group management access message sent by the first terminal, the group management H5 page resource may be sent to the first terminal according to the group management access message, the first terminal may render and display the group management H5 page according to the group management H5 page resource, and the user of the first terminal may perform a specified group management operation on the group management H5 page, so that the first terminal may send a group management operation message to the group chat server, and the group chat server may perform the specified group management operation according to the group management operation message and send a group management operation feedback message to the first terminal.
Illustratively, the specified group management operation may be group related information modification, message no disturb setting, group name modification, publishing group advertisement, inviting new members, deleting members, and so forth.
In some embodiments, the H5 server of the group chat server receives a group management access message sent by the first terminal (browser or webview of the first terminal), sends a group management H5 page resource to the first terminal (browser or webview of the first terminal) according to the group management access message, the H5 server of the group chat server receives a group management operation message sent by the first terminal (browser or webview of the first terminal), the H5 server of the group chat server forwards the group management operation message to the GC AS of the group chat server, the GC AS of the group chat server performs a specified group management operation according to the group management operation message, sends a group management operation feedback message to the H5 server of the group chat server, and the H5 server of the group chat server sends the group management operation feedback message to the first terminal.
In some embodiments, the group chat server sends a group event notification message to other terminals in the group chat except the first terminal in a first message protocol connection state through a first message protocol, wherein the group event notification message is used for indicating a result of executing a specified group management operation; and/or sending a group event notification message to other terminals in the group chat except the first terminal in a non-first message protocol connection state through a second message protocol, wherein the group event notification message is used for indicating a result of executing the specified group management operation.
It is understood that the user of the first terminal performs the designated group management operation on the group chat, and needs to notify other terminals except the first terminal in the group chat.
In the embodiment of the disclosure, the group chat server may send a group event notification message to other terminals in the group chat except the first terminal, where the group event notification message is used to indicate a result of executing the specified group management operation.
For example, when the specified group management operation performed by the user of the first terminal is to modify the group name of the group chat, the group chat server may send a group event notification message to the other terminals except the first terminal in the group chat after modifying the group name, where the group event notification message indicates the modified group name of the group chat, so as to notify the other terminals except the first terminal in the group chat that the group name of the group chat is changed.
By implementing the embodiment of the disclosure, the problem of excessive dependence of the group chat function on the terminal can be solved, unified and complete group chat service can be obtained by the common terminal, and the use experience of the user can be improved.
Fig. 5 is a flow chart illustrating a group chat control method according to another exemplary embodiment.
As shown in fig. 5, the group chat control method provided by the embodiment of the present disclosure is executed by a first terminal, including but not limited to the following steps:
s51, the first terminal in the first message protocol connection state determines a second terminal needing to create the group chat on the group chat home page H5 page.
In the embodiment of the disclosure, the first terminal may provide the group chat home page H5, and the initiator user of the first terminal may fill in the information of the second terminals of the one or more invited users that need to create the group chat on the group chat home page H5 of the first terminal, so that the first terminal determines the one or more second terminals that need to create the group chat.
In some embodiments, the first terminal is a terminal supporting 5G messages, or is a normal terminal, or is a terminal supporting standard 5G message group chat.
In some embodiments, the second terminal is a terminal supporting 5G messages, or is a normal terminal, or is a terminal supporting standard 5G message group chat.
In some embodiments, a browser or webview of the first terminal renders a presentation group chat head page H5 page.
In some embodiments, the first message protocol is used for the transceiving of H5 page messages.
In some embodiments, the first terminal determines group chat bot information; according to the group chat information, determining a group chat head page H5 page to be accessed; sending a group head page access request to a group chat server through a browser or webview; receiving group chat home page H5 page resources sent by the group chat server side under the condition that the identity authentication of the first terminal is passed; and rendering and displaying the group chat home page H5 page according to the group chat home page H5 page resource.
In the embodiment of the disclosure, the initiator user can search the group chat at the first terminal, the first terminal determines the group chat information from the MaaP, rendering and displaying a group chat chatbot page, wherein a fixed menu in the group chat chatbot page comprises a group chat home page key, the method comprises the steps that an initiator user enters a group chat page at a first terminal, clicks a group chat home page key in a fixed menu, the first terminal determines a group chat home page H5 page to be accessed, a webview or a browser is called up, and a group home page access request is sent to a group chat server through the browser or the webview.
In the embodiment of the disclosure, the group chat server receives the group first page access request sent by the first terminal, and can perform identity authentication on the first terminal, wherein the group chat first page H5 page resource is sent to the first terminal under the condition that the identity authentication is passed.
In some embodiments, the H5 server of the group chat server receives the group front page access request sent by the first terminal through the MaaP and the 5GMC, and may perform identity authentication on the first terminal, where in the case that the identity authentication passes, the group chat front page H5 page resource is sent to the first terminal through the MaaP and the 5 GMC.
In some embodiments, the H5 server of the group chat server receives a group home page access request sent by the first terminal, and performs identity authentication on the first terminal by adopting a GBA authentication mechanism defined by a standard.
In the embodiment of the disclosure, after the first terminal receives the group chat home page H5 page resource, the group chat home page H5 page can be rendered and displayed, so that the initiator user can access the group chat home page H5 page at the first terminal and perform the group chat creation operation on the group chat home page H5 page.
S52, a group chat creation request message is sent to the group chat server through a first message protocol, wherein the group chat creation request message is used for requesting to create a group chat with the second terminal, and the group chat creation request message is used for generating a group chat session H5 page resource of the group chat by the group chat server.
In the embodiment of the disclosure, a first terminal sends a group chat creation request message to a group chat server to request the creation of a group chat between second terminals under the condition that the second terminals needing to create the group chat are determined.
Under the condition that the group chat server receives the group chat creation request message sent by the first terminal, the group chat session H5 page resource of the group chat can be generated according to the group chat creation request message.
In the embodiment of the disclosure, the first terminal sends the group chat creation request message to the group chat server, and the group chat creation request message can be sent to the group chat server through the first message protocol.
Illustratively, the initiator user inputs information of at least one invited user creating the group chat, such as a mobile phone number or a unique identification code of the invited user, etc., in the group chat home page H5 page of the first terminal. Thus, the first terminal sends a group chat creation request to the group chat server based on the operation of the initiator user, wherein the group chat creation request message is used for requesting to create a group chat with a second terminal, and the second terminal is the terminal of the invited user.
S53, receiving a group notification message sent by the group chat server, wherein the group notification message is used for indicating whether the second terminal agrees to join the group chat.
In the embodiment of the disclosure, the first terminal may receive the group chat notification message sent by the group chat server under the condition that the first terminal sends the group chat creation request message to the group chat server to request to create the group chat with the second terminal.
In some embodiments, the group notification message is used to indicate that the second terminal agrees to join the group chat, or the group notification message is used to indicate that the second terminal refuses to join the group chat.
In some embodiments, the first terminal receives a group notification message sent by the group chat server through a first message protocol.
In some embodiments, a first terminal receives a first message carrying a group chat session URL sent by a group chat server according to a group chat session H5 page resource; transmitting a first request message for accessing the group chat session URL to the group chat server through a first message protocol; receiving group chat session H5 page resources sent by a group chat server; and rendering and displaying the group chat session H5 page according to the group chat session H5 page resource.
In the embodiment of the disclosure, a first terminal receives a first group chat session URL sent by a group chat server through a first message protocol; transmitting a first access group chat session URL to the group chat server through a first message protocol; and receiving the group chat session H5 page resource sent by the group chat server through the first message protocol, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the first terminal. Therefore, after the first terminal receives the group chat session H5 page resource, the group chat session H5 page can be rendered and displayed, and the initiator user can access the group chat session H5 page at the first terminal.
It can be understood that after the first terminal receives the group chat session H5 page resource, rendering and displaying the group chat session H5 page, and because the second terminal is not invited to join the group chat at this time, a prompt for waiting for joining of the member can be displayed in the group chat session H5 page.
It may be understood that after the first terminal receives the group chat session H5 page resource, rendering and displaying the group chat session H5 page, if a group notification message sent by the group chat server is received, and the group notification message indicates that the second terminal agrees to join the group chat, at this time, the second terminal agrees to join the group chat, and the initiator user may view members joining the group chat on the group chat session H5 page, and perform sending and receiving of the group chat session, and so on.
In some embodiments, the webview or browser of the first terminal renders a presentation group chat session H5 page.
In some embodiments, the group chat session H5 page resources include HTML, CSS, and JavaScript code from which a browser (or webview) of the first terminal will render the group chat session H5 page for the initiator user.
In some embodiments, a first terminal sends a first group chat message of the group chat to a group chat server through a first message protocol, wherein the first group chat message is used for forwarding to other terminals except the first terminal in the group chat.
In the embodiment of the disclosure, when it is determined that the group chat is successfully created, that is, the first terminal of the initiator user and the second terminal of the invited user both enter the group chat, the first terminal may send a first group chat message of the group chat through a first message protocol, and the group chat server receives the first group chat message sent by the first terminal and may send the first group chat message to other terminals except the first terminal in the group chat.
In some embodiments, the first terminal sends a group list inquiring message to the group chat server through a first message protocol, wherein the group list inquiring message is used for determining stored group offline messages of at least one existing group chat by the group chat server; receiving group chat service end according to the inquiry group list message, transmitting group list H5 page resource; and rendering and displaying the group list H5 page according to the group list H5 page resource.
In the embodiment of the disclosure, a user of a first terminal may access a group chat home page H5 page of the first terminal (browser or webview rendering and displaying of the first terminal), and select a query group list in the group chat home page H5 page, so that the first terminal may send a query group list message to a group chat server through a first message protocol.
In some embodiments, the first terminal receives the group chat server and sends a group list H5 page resource according to the query group list message via the first message protocol.
Under the condition that the group chat server receives the group list inquiring message sent by the first terminal, the group list H5 page resource can be sent to the first terminal, so that the first terminal (browser or webview of the first terminal) can receive the group list H5 page resource and render and display the group list H5 page according to the group list H5 page resource.
In some embodiments, the first terminal sends a fourth request message of a group chat session URL of a specific group to the group chat server through a first message protocol, wherein the specific group is any one of the existing group chat; receiving group chat session H5 page resources of a specific group sent by a group chat server; sending a group offline message acquisition request of a specific group to a group chat server; and the receiving group chat server side obtains the request according to the group offline message and sends the group offline message of the specific group.
In this embodiment of the present disclosure, the first terminal may send an access group chat session URL of a specific group to the group chat server, where the specific group is any one of the existing group chat, and because the group chat server stores a group offline message of the existing group chat, the group chat server may send a group chat session H5 page resource of the specific group to the first terminal when receiving the access group chat session URL of the specific group sent by the first terminal, and the first terminal may render and display the group chat session H5 page of the specific group according to the group chat session H5 page resource of the specific group, so that a user of the first terminal may access the group chat session H5 page of the specific group to perform a pull operation of an offline message, and the first terminal may send a group offline message acquisition request of the specific group to the group chat server, and may send the group offline message of the specific group to the first terminal according to the group offline message acquisition request of the specific group sent by the first terminal, thereby implementing that the user of the first terminal views the group offline message of the specific group.
In some embodiments, the first terminal receives a group chat session H5 page resource of a specific group sent by the group chat server through the first message protocol, and then sends a group offline message acquisition request of the specific group to the group chat server through the first message protocol, so as to receive a group offline message of the specific group sent by the group chat server through the first message protocol according to the group offline message acquisition request.
In some embodiments, a first terminal sends a group management access message to a group chat server through a first message protocol, wherein the group management access message is used for requesting access operation to the group chat where the first terminal is located; receiving group chat service end according to group management access message, and sending group management H5 page resource; rendering a group management H5 page for displaying the group chat according to the group management H5 page resource; determining a specified group management operation to be executed; sending a group management operation message to the group chat server through a first message protocol, wherein the group management operation message is used for requesting to perform specified group management operation on the group chat; and receiving a group management operation feedback message sent by the group chat server.
In the embodiment of the disclosure, the first terminal may provide a group chat session H5 page, and a user of the first terminal may perform an operation of accessing the group management page on the group chat session H5 page, so that the first terminal may send a group management access message to the group chat server, and after receiving the group management access message sent by the first terminal, the group chat server may send a group management H5 page resource to the first terminal according to the group management access message, and the first terminal may render and display the group management H5 page according to the group management H5 page resource, and the user of the first terminal may perform a specified group management operation on the group management H5 page, so that the first terminal may send a group management operation message to the group chat server, and the group chat server may perform a specified group management operation according to the group management operation message and send a group management operation feedback message to the first terminal.
Illustratively, the specified group management operation may be group related information modification, message no disturb setting, group name modification, publishing group advertisement, inviting new members, deleting members, and so forth.
In some embodiments, the first terminal receives the group chat server and sends a group management H5 page resource according to the group management access message through the first message protocol.
In some embodiments, the first terminal receives a group management operation feedback message sent by the group chat server through the first message protocol.
It should be noted that, for the description of the method for executing the group chat control by the first terminal in the embodiment of the present disclosure, reference may be made to the description of the method for executing the group chat control by the group chat server in the above embodiment, which is not repeated here.
By implementing the embodiment of the disclosure, the problem of excessive dependence of the group chat function on the terminal can be solved, unified and complete group chat service can be obtained by the common terminal, and the use experience of the user can be improved.
Fig. 6 is a flow chart illustrating a group chat control method according to yet another exemplary embodiment.
As shown in fig. 6, the group chat control method provided by the embodiment of the present disclosure is executed by the second terminal, including but not limited to the following steps:
S61, receiving a group invitation message sent by the group chat server through a second message protocol, wherein the group invitation message carries a group chat session URL and is used for inviting the second terminal to join the group chat, the group invitation message is sent by the group chat server under the condition that a group chat creation request message sent by the first terminal is received and a group chat session H5 page resource of the group chat is generated, and the group chat creation request message is used for requesting to create the group chat with the second terminal.
In the embodiment of the disclosure, the second terminal receives a group invitation message sent by the group chat server, where the group invitation message is used for inviting the second terminal to join the group chat.
The group invitation message is sent by the group chat server side under the condition that the group chat creation request message sent by the first terminal is received and the group chat session H5 page resource of the group chat is generated, wherein the group chat creation request message is used for requesting to create the group chat with the second terminal.
In the embodiment of the disclosure, the first terminal may be a terminal of an initiator user that initiates group chat creation, for example, the user a wants to create a group chat with the user B, the user a initiates a group chat creation process with the user B on the terminal thereof, the first terminal may be a terminal of the user a, and the second terminal may be a terminal of the user B.
In some embodiments, the first terminal is a terminal supporting 5G messages, or is a normal terminal, or is a terminal supporting standard 5G message group chat.
In some embodiments, the second terminal is a terminal supporting 5G messages, or is a normal terminal, or is a terminal supporting standard 5G message group chat.
In some embodiments, the second message protocol is used for standard 5G messaging.
In some embodiments, the group chat server encapsulates the group invitation message into a standard 5G message card format defined by the MaaP interface, and sends the group invitation message to the second terminal through the MaaP and the 5 GMC.
In some embodiments, the GC AS of the group chat server notifies the H5 server of the group chat session H5 page resource according to the group chat creation request message, the H5 server of the group chat server generates the group chat session H5 page resource of the group chat and the group chat session uniform resource locator (Uniform Resource Locator, URL) pointing to the group chat session H5 page based on the notification of the GC AS of the group chat server, and then feeds the group chat session URL of the group chat session H5 page back to the GC AS of the group chat server, so that the GC AS of the group chat server generates the group invitation message according to the group chat session URL of the group chat session H5 page, and forwards the group invitation message to the MaaP access module of the group chat server, and the MaaP access module of the group chat server encapsulates the group invitation message into a standard 5G message format defined by the MaaP interface and sends the group invitation message to the second terminal through the MaaP and the 5 GMC.
Illustratively, the group invitation message is a standard 5G message chatbot card, in which a 5G message group chat official picture, group invitation prompt (e.g. a invite you to join xx group), accept and reject keys are placed, wherein the accept and reject keys set the actions of feedback information (postpack) and jump group chat session URL.
In some embodiments, the group chat server sends a group invitation message to the second terminal, where the group invitation message is used to invite the second terminal to join the group chat, and the invited user may use the second terminal to perform related operations, for example, an operation of agreeing to join the group chat, or an operation of refusing to join the group chat, viewing group chat homepage information, and so on.
S62, a feedback message is sent to the group chat server, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat.
In the embodiment of the disclosure, the invited user uses the second terminal to execute related operation, and the second terminal determines to agree to join the group chat or refuse to join the group chat.
Based on the feedback information, the second terminal can send feedback information to the group chat server, wherein the feedback information is used for indicating that the second terminal agrees to join the group chat, or the feedback information is used for indicating that the second terminal refuses to join the group chat.
In some embodiments, the second terminal sends the feedback message to the group chat server through a second message protocol.
In some embodiments, the second terminal sends a feedback message to the group chat server through the MaaP and the 5 GMC.
In some embodiments, the second terminal sends the feedback message to the MaaP access module of the group chat server through the MaaP and the 5GMC, the MaaP access module of the group chat server forwards the feedback message to the GC AS of the group chat server, and the GC AS of the group chat server determines whether the second terminal agrees to join the group chat after receiving the feedback message.
In some embodiments, the GC AS of the group chat server determines that the second terminal agrees to join the group chat, determines that the group chat creation is successful, or the GC AS of the group chat server determines that the second terminal refuses to join the group chat, and determines that the group chat creation fails.
In some embodiments, the second terminal sends a second request message for accessing the group chat session URL to the group chat server through the first message protocol; the receiving group chat server determines that the identity authentication of the second terminal passes according to the second request message, and sends group chat session H5 page resources; and rendering and displaying the group chat session H5 page according to the group chat session H5 page resource.
In the embodiment of the disclosure, the second terminal sends a feedback message to the group chat server, where the feedback message is used to instruct the second terminal to agree to join the group chat, the second terminal may call the webview embedded in the 5G message, send a second request message for accessing the URL of the group chat session to the group chat server, and after the group chat server receives the second request message sent by the second terminal, may perform identity authentication on the second terminal, and if it is determined that the identity authentication passes, may send a group chat session H5 page resource to the second terminal, where the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal. Therefore, after the second terminal receives the group chat session H5 page resource, the group chat session H5 page can be rendered and displayed, and the invited user can access the group chat session H5 page at the second terminal for sending and receiving the group chat session, checking members joining the group chat, and the like.
In some embodiments, the second terminal receives the group chat session H5 page resource sent by the group chat server through the first message protocol.
In some embodiments, the webview or browser of the second terminal renders a presentation group chat session H5 page.
In some embodiments, the second terminal receives a first group chat message sent by the group chat server through a first message protocol, where the first group chat message is received by the group chat server from the first terminal; and/or receiving a second group chat message sent by the first message protocol after the group chat server determines that the second terminal resumes the first message protocol connection, wherein the second group chat message is received and stored from the first terminal when the second terminal is in a non-first message protocol connection.
In the embodiment of the disclosure, when it is determined that the group chat is successfully created, that is, the first terminal of the initiator user and the second terminal of the invited user both enter the group chat, the first terminal may send a first group chat message of the group chat through a first message protocol, and the group chat server receives the first group chat message sent by the first terminal, and may send the first group chat message to other terminals, such as the second terminal, in the group chat, except for the first terminal, so that the second terminal receives the first group chat message sent by the group chat server.
It can be understood that the group chat creation is successful, that is, the first terminal of the initiator user and the second terminal of the invited user both enter the group chat, if the first terminal is in an H5 online state (that is, the webview of the first terminal is connected with the H5 server of the group chat server, the first terminal is in a first message protocol connection state), the initiator user can input a chat message in the group chat session H5 page of the first terminal, the first terminal sends the first group chat message to the group chat server (the H5 server of the group chat server), and after the group chat server (the H5 server of the group chat server) receives the first group chat message, the first group chat message can be sent to the second terminal in the H5 online state (that is, the webview of the second terminal is connected with the H5 server of the group chat server, and the first terminal is in the first message protocol connection state).
In this embodiment of the present disclosure, if the second terminal is in an H5 offline state (i.e., the webview of the second terminal loses connection with the H5 server of the group chat server, and the second terminal is in a non-first message protocol connection state), the group chat server (the H5 server of the group chat server) receives the second group chat message of the group chat sent by the first terminal, and when it is determined that the second terminal other than the first terminal in the group chat is in the non-first message protocol connection state (i.e., in the H5 offline state), the second group chat message may be stored, and after it is determined that the second terminal resumes the first message protocol connection state (i.e., in the H5 online state), the second group chat message is sent to the second terminal.
In some embodiments, after the second terminal receives the group chat server and determines that the second terminal restores the connection state of the first message protocol, the second group chat message sent through the first message protocol includes: receiving a group chat new message notification sent by the group chat server through a second message protocol, wherein the group chat new message notification carries a second group chat message and a group chat session URL; sending a third request message for accessing the group chat session URL to the group chat server through the first message protocol, wherein the third request message is used for determining that the second terminal restores the connection state of the first message protocol by the group chat server; receiving group chat session H5 page resources sent by a group chat server; rendering and displaying the group chat session H5 page according to the group chat session H5 page resource; determining that offline message acquisition is needed, and sending an offline message acquisition request to a group chat server; and receiving a second group chat message sent by the group chat server.
In the embodiment of the disclosure, the group chat server (H5 server of the group chat server) determines that the second terminal is in a non-first message protocol connection state (i.e., is in an H5 off-line state), and may send a group chat new message notification carrying the second group chat message and the group chat session URL to the second terminal through the second message protocol, so that after receiving the group chat new message notification, the second terminal may send a third request message for accessing the group chat session URL to the group chat server (H5 server of the group chat server) through the first message protocol, and in the case that the third request message sent by the second terminal is received, the group chat server (H5 server of the group chat server) may determine that the second terminal resumes the first message protocol connection state (i.e., is in the H5 on-line state).
In the embodiment of the disclosure, the group chat server (H5 server of the group chat server) determines that the second terminal restores the first message protocol connection state, and may send a group chat session H5 page resource to the second terminal, where the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal. Therefore, the user of the second terminal can perform offline message pulling operation on the group chat session H5 page, the second terminal sends an offline message acquisition request to the group chat server (the H5server of the group chat server), and the group chat server (the H5server of the group chat server) can send a second group chat message to the second terminal according to the offline message acquisition request sent by the second terminal.
In some embodiments, the second terminal receives the group chat session H5 page resource sent by the group chat server through the first message protocol.
In some embodiments, the second terminal determines that offline message acquisition is required, and sends an offline message acquisition request to the group chat server through the first message protocol.
In some embodiments, the second terminal receives a second group chat message sent by the group chat server through the first message protocol.
It should be noted that, for the description of the method for the second terminal to execute the group chat control in the embodiment of the present disclosure, reference may be made to the description of the method for the group chat server and/or the first terminal to execute the group chat control in the above embodiment, which is not repeated herein.
By implementing the embodiment of the disclosure, the problem of excessive dependence of the group chat function on the terminal can be solved, unified and complete group chat service can be obtained by the common terminal, and the use experience of the user can be improved.
To facilitate an understanding of the disclosed embodiments, the following exemplary embodiments are provided.
In an exemplary embodiment, as shown in fig. 7, a first terminal is taken as a user A5G message terminal for example.
1. User a searches for group chat bots at the 5G messaging terminal (see first terminal in the above embodiment, the same applies below).
2. The MaaP returns group chat bot information to the 5G message terminal.
3. User a enters the group chat bot page and clicks the group chat home button in the fixed menu.
4. The 5G messaging terminal invokes the webview.
5. The group chat home page H5 page is accessed through webview (see in the above embodiment, the first terminal sends a group home page access request to the group chat server).
6. The H5 Server authenticates the identity of the user A. Preferably, the 5G message terminal and the H5 Server adopt a GBA authentication mechanism defined by standards for identity authentication.
7. After the authentication is passed, the H5 Server returns the group chat home page H5 page resource to the 5G message terminal.
8. Webview rendering and displaying group chat home page H5 page of 5G message terminal; and the user A clicks and creates the group chat in the group chat home page H5, inputs the mobile phone number of the initial group member B and/or C, and then initiates a group chat creation request.
9. The webview of the 5G message terminal sends a group chat creation request message to the H5 Server (see the above embodiment, where the first terminal sends the group chat creation request message to the group chat Server).
10. The H5 Server forwards the group chat creation request message to the GC AS.
11. The GC AS accepts the group chat creation request message, pre-distributes a group Identification (ID), and the group ID is unique by expanding a few digits of numbers on the group chat chatbotID.
12. The GC AS notifies the H5 server to generate group chat session H5 page resources, including static resources such AS group head portrait, group name, group chat window, etc.
13. The H5 Server generates a group chat session H5 page resource and a group chat session url pointing to the group chat session H5 page.
14. The H5 Server returns the group chat session URL to the user A5G message terminal (see the above embodiment, where the group chat Server sends the first group chat session URL to the first terminal).
15. The webview of the user A5G message terminal automatically accesses the group chat session URL (see in the above embodiment, the first terminal sends the first access group chat session URL to the group chat server).
16. The H5 Server returns the group chat session H5 page resource to the user A5G message terminal (see above embodiment, the group chat Server sends the group chat session H5 page resource to the first terminal).
17. The webview rendering of the user A5G message terminal displays a group chat session H5 page, and the page displays a prompt for waiting for member joining because the invited user does not join at the moment.
In another exemplary embodiment, as shown in fig. 8, the group creation flow shown in fig. 7 is described by taking a first terminal as a user A5G message terminal and a second terminal as a user B/C5G message terminal as an example.
1. The GC AS accepts the creation group request of the user A5G message terminal, pre-assigning the group ID (AS with 11 in fig. 7).
2. The H5 Server generates group chat session H5 page resources and url pointing to the page.
3. The H5 Server feeds back the url of the group chat session H5 page to the GC AS;
4. the GC AS constructs a group invitation message for the user B/C5G message terminal and forwards the group invitation message to the MaaP access module.
5. The MaaP access module encapsulates the group invitation message into a standard 5G message card format defined by a MaaP interface, wherein the group invitation message is a standard 5G message chatbot card, a 5G message group chat official picture, a group invitation prompt (such as A inviting you to join xx group) and an accept and reject button are placed in the card, and the accept and reject button sets the actions of feedback information (postpack) and jumping group chat session url.
6. The MaaP access module sends a 5G message card group invitation message to the MaaP.
7. The MaaP forwards the 5G message card group invitation message to the 5GMC.
8. The 5GMC issues a 5G message card group invitation to the user B/C5G message terminal (see above embodiment, the group chat server sends a group invitation message to the second terminal).
9. The user B/C clicks the accept button.
10. The user B/C5G message terminal sends a feedback message to the 5GMC.
11. The user B/C5G message terminal calls the built-in webview and accesses the group chat session page url.
12. The 5GMC forwards the feedback information of the user B/C5G message terminal to the MaaP (see above embodiment, the second terminal sends the feedback message to the group chat server).
13. The Maap forwards the feedback message to the MaaP access module.
14. And the MaaP access module forwards the feedback message of the user B/C5G message terminal to the GC AS.
15. When the GC AS receives the feedback message of the feedback receiving group sent by the user B/C5G message terminal, the group chat is formally successfully created, and the group ID is formally effective.
16. The GC AS adds the group-entering user into the database and notifies the H5 Server user B/C5G message terminal to join the group chat.
17. The H5 Server sends a group event notification message to the user A5G message terminal that the user B/C5G message terminal is clustered (see above embodiment, the group chat Server sends a cluster notification message to the first terminal). (note that if all invited users do not answer or refuse to enter the group within a certain waiting time, the group chat creation fails, the pre-assigned group ID fails, and the GC AS notifies the user A5G that the message terminal group creation fails.)
18. After the user B/C5G message terminal calls the webview embedded in the 5G message, the user B/C5G message terminal accesses the group chat session URL (see the above embodiment, where the second terminal sends the second access group chat session URL to the group chat server).
19. The H5 server receives the access request of the user B/C5G message terminal and interacts with the client to finish login identity authentication.
20. The H5 Server queries GC AS whether the user B/C5G message terminal is in the group.
21. The GC AS feeds back the user B/C5G message terminals to enter the group.
22. The H5 Server returns the group chat session H5 page resources to the user B/C5G message terminal (see above embodiment, the group chat Server sends the group chat session H5 page resources to the second terminal).
23. The webview rendering of the user B/C5G message terminal displays a group chat session H5 page.
It should be noted that the execution sequence of step 11 and any one of steps 12 to 17 may be interchanged, that is, step 11 may be executed after any one of steps 12 to 17.
In yet another exemplary embodiment, as shown in fig. 9, a first terminal is taken as a user B5G message terminal, and a second terminal is taken as a user A5G message terminal as an example.
The user B5G message terminal of the H5 online (i.e. webview is connected with the H5 Server), may input a chat message on the group chat session page and send the chat message to the H5 Server (see the above embodiment, the first terminal sends the first group chat message to the group chat Server), and the H5 Server forwards the chat message to other users of the group chat online (see the above embodiment, the group chat Server sends the first group chat message to the second terminal), and meanwhile, stores the message for the offline user.
The offline user re-accesses the H5 Server, and then pulls the offline message (see in the above embodiment, the group chat Server receives the third access group chat session URL sent by the second terminal, determines that the second terminal is in an online state, sends the group chat session H5 page resource to the second terminal, receives the offline message acquisition request sent by the second terminal, and sends the second group chat message to the second terminal according to the offline message acquisition request).
Optionally, when the H5 Server detects that the user H5 is not online (the H5 Server loses connection with the user webview), the H5 Server feeds back the user offline to the GC AS. The GC AS generates a group message notice, packages the group message notice into a standard 5G message chatbot card, and sends the card to the user terminal through the MaaP and the 5GMC, wherein the card comprises a detail checking button. The user clicks a view detail button to call up the Webview/browser to access the group chat session url and enter the chat page.
In yet another exemplary embodiment, as shown in fig. 10, a first terminal is exemplified as a user A5G message terminal.
When the user A5G message terminal accesses the group front page, the H5 Server inquires the GC AS about list information (group head portrait, group name, number of people and the like) of all groups created or added by the user, integrates the information such AS the offline message number of each group during the offline period of the user to form complete group front page H5 resource, and returns to the user A5G message terminal. The user clicks a group chat session URL, i.e. jumps the group chat session URL, to perform a group session page (see above embodiment, the group chat server receives a query group list message sent by the first terminal, sends a group list H5 page resource to the first terminal according to the query group list message) (see above embodiment, the group chat server determines at least one stored group offline message of the existing group chat according to the query group list message, receives an access group chat session URL of a specific group sent by the first terminal, where the specific group is any one of the existing group chat sessions, sends a group chat session H5 page resource of the specific group to the first terminal, receives a group offline message acquisition request of the specific group sent by the first terminal, and sends a group offline message of the specific group to the first terminal according to the group offline message acquisition request).
Preferably, the user can save the important group chat into the information list, and the user can conveniently and quickly enter the group chat.
In still another exemplary embodiment, as shown in fig. 11, a case where the first terminal is a user A5G message terminal and the other terminals except the first terminal in the group chat are user B/C5G message terminals will be described as an example.
The group chat session page provides an entry for group management, and the user enters the group management page after clicking. The user can add/remove group members, modify group names, publish group announcements, set message do-not-disturb and the like on the group management page. (in the above embodiment, the group chat server receives a group management access message sent by the first terminal, where the group management access message is used for requesting access to a group chat where the first terminal is located, sends a group management H5 page resource to the first terminal according to the group management access message, receives a group management operation message sent by the first terminal, where the group management operation message is used for requesting specified group management operation to the group chat, executes the specified group management operation according to the group management operation message, sends a group management operation feedback message to the first terminal, and sends a group event notification message to other terminals except the first terminal in the group chat, where the group event notification message is used for indicating a result of executing the specified group management operation).
In the embodiment of the disclosure, the 5G message group chat server accesses the MaaP platform in a mode of group chat Chatbot application, and configures one fixed menu key of the group chat Chatbot as a group chat home page entry. And the terminal clicks the fixed menu key to call up the webview/browser to access the group chat home page provided by the group chat server H5 server, perform operations such as group creation, group list query and the like, and further jump the group chat session, group management and other pages to perform related group chat interaction through the group chat home page.
In the embodiment of the disclosure, an initiator user searches a group chat and enters a chat session page through a standard 5G message terminal, clicks a group chat home page key of a fixed menu, and accesses a group chat home page H5 page through a webview/browser. When a user initiates creation of a group on a group chat home page H5 page, the group chat server generates an invitation message, packages the invitation message into a standard 5G message chatbot card message, and sends the standard 5G message chatbot card message to an invited user through a MaaP and a 5GMC, wherein the card message comprises a picture, a group invitation prompt, an acceptance key and a rejection key. The invited user clicks the accept button to join the group chat, and the user does not join the group chat when clicking the reject button, and the terminal transmits the feedback information accepted or rejected by the user to the group chat server through the 5GMC and the MaaP, and the group chat server notifies the initiator.
In the embodiment of the disclosure, when a group chat server accepts a group creation request, a group ID is pre-allocated, a group chat session H5 page resource is allocated by an H5 server, including a group head portrait, a group name, a group chat window and the like, the group chat session H5 page url is returned to a user terminal, and the user terminal webview/browser automatically jumps to the group chat H5 page according to the group chat session url.
In the embodiment of the disclosure, the GC AS constructs a group invitation message for the user B/C, and sends the group invitation message to the invited user through the 5G message MaaP and the 5GMC, where the group invitation message is a standard 5G message chatbot card, and a 5G message group chat official picture, a group invitation prompt (e.g. a invite you to join xx group), and accept and reject keys, where the accept and reject keys set feedback information (postpack) and actions of jumping group chat session url.
In the embodiment of the disclosure, the group service is accessed to the MaaP in a chatbot mode, the group management and group chat message service is changed to H5, and the terminal can perform complex group management and group chat message receiving and transmitting through a webview/browser. Compared with the RCS standard group chat scheme, the group-related new function development, interaction mode optimization, service innovation and the like provided by the embodiment of the disclosure are realized only on the group chat server, and the upgrading and reconstruction of a 5G message base platform and a terminal are not needed, so that the rapid deployment can be realized, and the development iteration of the service is supported.
Fig. 12 is a block diagram of a communication device according to an exemplary embodiment.
As shown in fig. 12, the communication device 1 includes: a transceiver module 1A and a processing module 1B.
In some embodiments, the communication device 1 is applied to a group chat server, wherein,
the receiving and transmitting module 1A is configured to receive a group chat creation request message sent by a first message protocol when the first terminal determines that a second terminal needs to create a group chat on a group top page hypertext markup language H5 page, where the group chat creation request message is used for requesting to create a group chat with the second terminal.
And the processing module 1B is used for generating group chat session H5 page resources of the group chat according to the group chat creation request message.
The transceiver module 1A is further configured to send a group invitation message to the second terminal through a second message protocol according to the group chat session H5 page resource, where the group invitation message carries a uniform resource locator URL of the group chat session and is used to invite the second terminal to join the group chat.
The transceiver module 1A is further configured to receive a feedback message sent by the second terminal, where the feedback message is used to indicate whether the second terminal agrees to join the group chat.
The transceiver module 1A is further configured to send a group notification message to the first terminal according to the feedback message, where the group notification message is used to indicate whether the second terminal agrees to join the group chat.
Optionally, the transceiver module 1A is further configured to send, according to the group chat session H5 page resource, a first message carrying the group chat session URL to the first terminal; receiving a first request message which is sent by a first terminal through a first message protocol and used for accessing a group chat session URL; and sending the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the first terminal.
Optionally, the transceiver module 1A is further configured to receive a second request message sent by the second terminal through the first message protocol to access the group chat URL.
The processing module 1B is further configured to authenticate the identity of the second terminal according to the second request message.
The transceiver module 1A is further configured to determine that the identity authentication passes, and send a group chat session H5 page resource to the second terminal, where the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal.
Optionally, the transceiver module 1A is further configured to receive a group chat robot chatbot information determined by the first terminal in the second message protocol connection state, and determine, according to the group chat chatbot information, a group home page access request based on the first message protocol sent by the browser or the web view under the condition that a group chat home page H5 page to be accessed is determined.
The processing module 1B is further configured to perform identity authentication on the first terminal according to the group home page access request.
Optionally, the transceiver module 1A is further configured to determine that the identity authentication passes, and send a group chat home page H5 page resource to the first terminal, where the group chat home page H5 page resource is used for rendering and displaying the group chat home page H5 page by the first terminal.
Optionally, the processing module 1B is further configured to pre-allocate a group identifier for the group chat according to the group chat creation request message; and under the condition that the feedback message is used for indicating that the second terminal agrees to join the group chat, determining that the group chat is successfully created and the group identification is effective.
Optionally, the transceiver module 1A is further configured to receive a first group chat message of a group chat sent by the first terminal through the first message protocol, and send the first group chat message to other terminals except the first terminal in the group chat; and/or receiving a second group chat message of the group chat sent by the first terminal through the first message protocol, determining that the second terminals except the first terminal in the group chat are in a non-first message protocol connection state, storing the second group chat message, and sending the second group chat message to the second terminal after determining that the second terminal recovers the first message protocol connection state.
Optionally, the transceiver module 1A is further configured to send a group chat new message notification to the second terminal through a second message protocol, where the group chat new message notification carries a second group chat message and a group chat session URL; receiving a third request message which is sent by the second terminal through the first message protocol and used for accessing the group chat session URL, and determining that the second terminal restores the first protocol connection state; sending a group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal; receiving an offline message acquisition request sent by a second terminal; and sending a second group chat message to the second terminal according to the offline message acquisition request.
Optionally, the transceiver module 1A is further configured to receive a query group list message sent by the first terminal through the first message protocol; and sending a group list H5 page resource to the first terminal according to the group list inquiring message, wherein the group list H5 page resource is used for rendering and displaying the group list H5 page by the first terminal.
Optionally, the processing module 1B is further configured to determine the stored group offline message of the at least one existing group chat according to the query group list message.
The transceiver module 1A is further configured to receive a fourth request message sent by the first terminal through the first message protocol for accessing a group chat session URL of a specific group, where the specific group is any one of the existing groups chat.
The transceiver module 1A is further configured to send group chat session H5 page resources of a specific group to the first terminal.
The transceiver module 1A is further configured to receive a group offline message acquisition request of a specific group sent by the first terminal.
The transceiver module 1A is further configured to send a group offline message of a specific group to the first terminal according to the group offline message acquisition request.
Optionally, the transceiver module 1A is further configured to receive a group management access message sent by the first terminal through the first message protocol, where the group management access message is used to request an access operation to a group chat where the first terminal is located.
The transceiver module 1A is further configured to send a group management H5 page resource to the first terminal according to the group management access message.
The transceiver module 1A is further configured to receive a group management operation message sent by the first terminal through the first message protocol, where the group management operation message is used to request to perform a specified group management operation on the group chat.
The processing module 1B is further configured to perform a specified group management operation according to the group management operation message.
The transceiver module 1A is further configured to send a group management operation feedback message to the first terminal.
Optionally, the transceiver module 1A is further configured to send, through the first message protocol, a group event notification message to other terminals in the group chat that are in a connection state of the first message protocol, where the group event notification message is used to indicate a result of executing the specified group management operation; and/or sending a group event notification message to other terminals in the group chat except the first terminal in a non-first message protocol connection state through a second message protocol, wherein the group event notification message is used for indicating a result of executing the specified group management operation.
In other embodiments, the communication device 1 is applied to a first terminal, wherein,
the processing module 1B is configured to determine, on the group chat home page H5 page, a second terminal that needs to create the group chat, by using the first terminal in the first message protocol connection state.
The receiving and transmitting module 1A is configured to send a group chat creation request message to the group chat server through a first message protocol, where the group chat creation request message is used to request creation of a group chat between the second terminal and the group chat server, and the group chat creation request message is used to generate a group chat session H5 page resource of the group chat by the group chat server.
The transceiver module 1A is further configured to receive a group chat server, where the group chat server is configured to send a group notification message to the second terminal.
Optionally, the transceiver module 1A is further configured to receive a first message carrying a URL of the group chat session sent by the group chat server according to the H5 page resource of the group chat session; transmitting a first request message for accessing the group chat session URL to the group chat server through a first message protocol; and receiving the group chat session H5 page resource sent by the group chat server.
The processing module 1B is further configured to render and display a group chat session H5 page according to the group chat session H5 page resource.
Optionally, the processing module 1B is further configured to determine group chat bot information by using the first terminal in the second message protocol connection state; and determining the group chat head page H5 page to be accessed according to the group chat chatbot information.
The receiving and transmitting module 1A is further configured to send a group home page access request based on a first message protocol to the group chat server through a browser or webview; and the receiving group chat server determines the group chat home page H5 page resource sent under the condition that the identity authentication of the first terminal passes.
The processing module 1B is further configured to render and display the group chat home page H5 page according to the group chat home page H5 page resource.
Optionally, the transceiver module 1A is further configured to send a first group chat message of the group chat to the group chat server through a first message protocol, where the first group chat message is used by the group chat server to forward to other terminals in the group chat except the first terminal.
Optionally, the transceiver module 1A is further configured to send a group list query message to the group chat server through the first message protocol, where the group list query message is used by the group chat server to determine at least one stored group offline message of the existing group chat; and the receiving group chat server transmits group list H5 page resources according to the inquiry group list message.
The processing module 1B is further configured to render and display a group list H5 page according to the group list H5 page resource.
Optionally, the transceiver module 1A is further configured to send, to the group chat server, a fourth request message for accessing a group chat session URL of a specific group through the first message protocol, where the specific group is any one of the existing group chat; receiving group chat session H5 page resources of a specific group sent by a group chat server; sending a group offline message acquisition request of a specific group to a group chat server; and the receiving group chat server side obtains the request according to the group offline message and sends the group offline message of the specific group.
Optionally, the transceiver module 1A is further configured to send a group management access message to the group chat server through a first message protocol, where the group management access message is used to request an access operation to the group chat where the first terminal is located; and the receiving group chat server side sends group management H5 page resources according to the group management access message.
The processing module 1B is further used for rendering a group management H5 page for displaying group chat according to the group management H5 page resource; a specified group management operation to be performed is determined.
The receiving and transmitting module 1A is further configured to send a group management operation message to the group chat server through a first message protocol, where the group management operation message is used to request for performing a specified group management operation on the group chat; and receiving a group management operation feedback message sent by the group chat server.
In still other embodiments, the communication device 1 is applied to a second terminal, wherein,
the receiving and transmitting module 1A is configured to receive a group invitation message sent by the group chat server through a second message protocol, where the group invitation message carries a group chat session URL and is used to invite the second terminal to join in the group chat, where the group invitation message is sent by the group chat server when receiving a group chat creation request message sent by the first terminal and generating a group chat session H5 page resource of the group chat, where the group chat creation request message is used to request creation of the group chat with the second terminal; and sending a feedback message to the group chat server, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat.
Optionally, the transceiver module 1A is further configured to send, to the group chat server, a second request message for accessing the group chat session URL through the first message protocol; and the receiving group chat server determines that the identity authentication of the second terminal passes according to the second request message, and sends the group chat session H5 page resource.
The processing module 1B is configured to render and display a group chat session H5 page according to the group chat session H5 page resource.
Optionally, the transceiver module 1A is further configured to receive a first group chat message sent by the group chat server through a first message protocol, where the first group chat message is received by the group chat server from the first terminal; and/or receiving a second group chat message sent by the first message protocol after the group chat server determines that the second terminal recovers the first message protocol connection state, wherein the second group chat message is received and stored from the first terminal when the second terminal is in a non-first message protocol connection state.
Optionally, the transceiver module 1A is further configured to receive a group chat new message notification sent by the group chat server through the second message protocol, where the group chat new message notification carries the second group chat message and the group chat session URL; sending a third request message for accessing the group chat session URL to the group chat server through the first message protocol, wherein the third request message is used for determining that the second terminal restores the connection state of the first message protocol by the group chat server; and receiving the group chat session H5 page resource sent by the group chat server.
The processing module 1B is configured to render and display a group chat session H5 page according to the group chat session H5 page resource.
The receiving and transmitting module 1A is further configured to determine that offline message acquisition is required, and send an offline message acquisition request to the group chat server; and receiving a second group chat message sent by the group chat server.
It should be noted that, in the above embodiments, the description of the group chat control method embodiment is also applicable to the communication device, and will not be repeated here.
It should be further noted that, the beneficial effects obtained by the communication device are the same as those obtained by the group chat control method in the above embodiment, and are not described here again.
There is also provided, in accordance with an embodiment of the present disclosure, an electronic device including: a processor; a memory for storing processor-executable instructions, wherein the processor is configured to: the group chat control method disclosed by the embodiment of the disclosure is realized.
In order to implement the above embodiments, the embodiments of the present disclosure also propose a storage medium.
Wherein the instructions in the storage medium, when executed by the processor, enable the processor to perform the group chat control method disclosed by the embodiments of the present disclosure.
To achieve the above embodiments, the present disclosure embodiment also provides a computer program product.
Wherein the computer program product, when executed by a processor of the electronic device, enables the electronic device to execute the group chat control method disclosed in the embodiments of the present disclosure.
Fig. 13 is a block diagram of an electronic device, according to an example embodiment. The electronic device shown in fig. 13 is merely an example and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 13, the electronic device 1000 includes a processor 111 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 112 or a program loaded from a Memory 116 into a random access Memory (RAM, random Access Memory) 113. In the RAM 113, various programs and data required for the operation of the electronic apparatus 1000 are also stored. The processor 111, the ROM 112, and the RAM 113 are connected to each other through a bus 114. An Input/Output (I/O) interface 115 is also connected to bus 114.
The following components are connected to the I/O interface 115: a memory 116 including a hard disk and the like; and a communication section 117 including a network interface card such as a local area network (Local Area Network, LAN) card, a modem, or the like, the communication section 117 performing communication processing via a network such as the internet; the drive 118 is also connected to the I/O interface 115 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program embodied on a computer readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from the network through the communication section 117. The above-described functions defined in the methods of the present disclosure are performed when the computer program is executed by the processor 111.
In an exemplary embodiment, a storage medium is also provided, such as a memory, comprising instructions executable by the processor 111 of the electronic device 1000 to perform the above-described method. Alternatively, the storage medium may be a non-transitory computer readable storage medium, for example, a ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (27)
1. The group chat control method is characterized in that the method is executed by a group chat server and comprises the following steps:
receiving a group chat creation request message sent by a first message protocol under the condition that a first terminal determines a second terminal needing to create a group chat on a group head page hypertext markup language H5 page, wherein the group chat creation request message is used for requesting to create a group chat with the second terminal;
generating a group chat session H5 page resource of the group chat according to the group chat creation request message;
according to the group chat session H5 page resource, a group invitation message is sent to the second terminal through a second message protocol, wherein the group invitation message carries a Uniform Resource Locator (URL) of the group chat session and is used for inviting the second terminal to join the group chat;
receiving a feedback message sent by the second terminal, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat;
And sending a group notification message to the first terminal according to the feedback message, wherein the group notification message is used for indicating whether the second terminal agrees to join the group chat.
2. The method of claim 1, wherein the method further comprises:
according to the group chat session H5 page resource, a first message carrying a group chat session URL is sent to the first terminal;
receiving a first request message which is sent by the first terminal through a first message protocol and used for accessing a group chat session URL;
and sending the group chat session H5 page resource to the first terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the first terminal.
3. The method of claim 1, wherein the method further comprises:
receiving a second request message which is sent by the second terminal through a first message protocol and used for accessing a group chat session URL;
according to the second request message, carrying out identity authentication on the second terminal;
and determining that the identity authentication is passed, and sending the group chat session H5 page resource to the second terminal, wherein the group chat session H5 page resource is used for rendering and displaying the group chat session H5 page by the second terminal.
4. A method according to any one of claims 1 to 3, wherein the method further comprises:
receiving group chat robot chatbot information determined by the first terminal in a second message protocol connection state, and determining a group chat home page H5 page to be accessed according to the group chat robot chatbot information, wherein the group chat home page access request is sent by a browser or a web page view and is based on a first message protocol;
according to the group home page access request, carrying out identity authentication on the first terminal;
and determining that the identity authentication is passed, and sending a group chat home page H5 page resource to the first terminal, wherein the group chat home page H5 page resource is used for rendering and displaying the group chat home page H5 page by the first terminal.
5. A method according to any one of claims 1 to 3, wherein the method further comprises:
pre-distributing group identification for the group chat according to the group chat creation request message; and
and under the condition that the feedback message is used for indicating that the second terminal agrees to join the group chat, determining that the group chat is successfully created, and enabling the group identification to take effect.
6. A method according to any one of claims 1 to 3, wherein the method further comprises:
Receiving a first group chat message of the group chat sent by the first terminal through a first message protocol, and sending the first group chat message to other terminals except the first terminal in the group chat; and/or
Receiving a second group chat message of the group chat sent by the first terminal through a first message protocol, determining that a second terminal except the first terminal in the group chat is in a non-first message protocol connection state, storing the second group chat message, and sending the second group chat message to the second terminal after determining that the second terminal recovers the first message protocol connection state.
7. The method of claim 6, wherein the determining that the second terminal resumes the first message protocol connection state and then sending the second group chat message to the second terminal comprises:
sending a group chat new message notification to the second terminal through a second message protocol, wherein the group chat new message notification carries the second group chat message and a group chat session URL;
receiving a third request message which is sent by the second terminal through a first message protocol and used for accessing a group chat session URL, and determining that the second terminal restores the first protocol connection state;
The group chat session H5 page resource is sent to the second terminal, wherein the group chat session H5 page resource is used for rendering and displaying a group chat session H5 page by the second terminal;
receiving an offline message acquisition request sent by the second terminal;
and sending the second group chat message to the second terminal according to the offline message acquisition request.
8. A method according to any one of claims 1 to 3, wherein the method further comprises:
receiving a group query list message sent by the first terminal through a first message protocol;
and sending a group list H5 page resource to the first terminal according to the group list inquiring message, wherein the group list H5 page resource is used for rendering and displaying the group list H5 page by the first terminal.
9. The method of claim 8, wherein the method further comprises:
determining at least one stored group offline message of the existing group chat according to the inquiry group list message;
receiving a fourth request message of an access group chat session URL of a specific group sent by the first terminal through a first message protocol, wherein the specific group is any one of the existing group chat;
Transmitting group chat session H5 page resources of the specific group to the first terminal;
receiving a group offline message acquisition request of the specific group sent by the first terminal;
and sending the group offline message of the specific group to the first terminal according to the group offline message acquisition request.
10. A method according to any one of claims 1 to 3, wherein the method further comprises:
receiving a group management access message sent by the first terminal through a first message protocol, wherein the group management access message is used for requesting access operation to the group chat where the first terminal is located;
according to the group management access message, group management H5 page resources are sent to the first terminal;
receiving a group management operation message sent by the first terminal through a first message protocol, wherein the group management operation message is used for requesting to perform specified group management operation on the group chat;
executing the specified group management operation according to the group management operation message;
and sending a group management operation feedback message to the first terminal.
11. The method of claim 10, wherein the method further comprises:
Sending a group event notification message to other terminals in a first message protocol connection state except the first terminal in the group chat through a first message protocol, wherein the group event notification message is used for indicating a result of executing the specified group management operation; and/or
And sending a group event notification message to other terminals in the group chat, except the first terminal, which are in a non-first message protocol connection state, through a second message protocol, wherein the group event notification message is used for indicating the result of executing the specified group management operation.
12. A group chat control method, wherein the method is performed by a first terminal and comprises:
the first terminal in the first message protocol connection state determines a second terminal needing to create group chat on a group chat home page H5 page;
a group chat creation request message is sent to a group chat server through a first message protocol, wherein the group chat creation request message is used for requesting to create a group chat between the group chat server and the second terminal, and the group chat creation request message is used for generating a group chat session H5 page resource of the group chat by the group chat server;
and receiving a group notification message sent by the group chat server, wherein the group notification message is used for indicating whether the second terminal agrees to join the group chat.
13. The method of claim 12, wherein the method further comprises:
receiving a first message carrying a group chat session URL sent by the group chat server according to the group chat session H5 page resource;
transmitting a first request message for accessing the group chat session URL to the group chat server through a first message protocol;
receiving the group chat session H5 page resource sent by the group chat server;
and rendering and displaying the group chat session H5 page according to the group chat session H5 page resource.
14. The method of claim 12 or 13, wherein the method further comprises:
the first terminal in the second message protocol connection state determines group chat bot information;
determining the group chat head page H5 page to be accessed according to the group chat information;
sending a group head page access request based on a first message protocol to the group chat server through a browser or webview;
receiving group chat home page H5 page resources sent by the group chat server side under the condition that the identity authentication of the first terminal is confirmed to pass;
and rendering and displaying the group chat home page H5 page according to the group chat home page H5 page resource.
15. The method of claim 12 or 13, wherein the method further comprises:
And sending a first group chat message of the group chat to the group chat server through a first message protocol, wherein the first group chat message is used for forwarding to other terminals except the first terminal in the group chat by the group chat server.
16. The method of claim 12 or 13, wherein the method further comprises:
sending a group list inquiring message to the group chat server through a first message protocol, wherein the group list inquiring message is used for determining at least one stored group offline message of the existing group chat by the group chat server;
receiving group list H5 page resources sent by the group chat server according to the inquiry group list message;
and rendering and displaying the group list H5 page according to the group list H5 page resource.
17. The method of claim 16, wherein the method further comprises:
sending a fourth request message of an access group chat session URL of a specific group to the group chat server through a first message protocol, wherein the specific group is any one of the existing group chat;
receiving group chat session H5 page resources of the specific group sent by the group chat server;
sending a group offline message acquisition request of the specific group to the group chat server;
And receiving the group offline message of the specific group, which is sent by the group chat server according to the group offline message acquisition request.
18. The method of claim 12 or 13, wherein the method further comprises:
sending a group management access message to the group chat server through a first message protocol, wherein the group management access message is used for requesting access operation to the group chat where the first terminal is located;
receiving group management H5 page resources sent by the group chat server according to the group management access message;
rendering and displaying a group management H5 page of the group chat according to the group management H5 page resource;
determining a specified group management operation to be executed;
sending a group management operation message to the group chat server through a first message protocol, wherein the group management operation message is used for requesting the specified group management operation to the group chat;
and receiving a group management operation feedback message sent by the group chat server.
19. A group chat control method, wherein the method is performed by a second terminal, comprising:
receiving a group invitation message sent by a group chat server through a second message protocol, wherein the group invitation message carries a group chat session URL and is used for inviting the second terminal to join in the group chat, the group invitation message is sent by the group chat server under the condition that a group chat creation request message sent by a first terminal is received, and a group chat session H5 page resource of the group chat is generated, and the group chat creation request message is used for requesting to create the group chat with the second terminal;
And sending a feedback message to the group chat server, wherein the feedback message is used for indicating whether the second terminal agrees to join the group chat.
20. The method of claim 19, wherein the method further comprises:
sending a second request message for accessing the group chat session URL to the group chat server through a first message protocol;
the group chat server receives the second request message, determines that the second terminal identity authentication passes, and sends the group chat session H5 page resource;
and rendering and displaying the group chat session H5 page according to the group chat session H5 page resource.
21. The method of claim 19 or 20, wherein the method further comprises:
receiving a first group chat message sent by the group chat server through a first message protocol, wherein the first group chat message is received by the group chat server from the first terminal; and/or
And after the group chat server side receives the second group chat message sent through the first message protocol after determining that the second terminal recovers the first message protocol connection state, wherein the second group chat message is received and stored from the first terminal under the condition that the second terminal is in a non-first message protocol connection state.
22. The method as claimed in claim 21, wherein receiving the second group chat message sent by the first message protocol after the group chat server determines that the second terminal resumes the first message protocol connection state, comprises:
receiving a group chat new message notification sent by the group chat server through a second message protocol, wherein the group chat new message notification carries the second group chat message and a group chat session URL;
sending a third request message for accessing the group chat session URL to the group chat server through a first message protocol, wherein the third request message is used for determining that the second terminal restores the connection state of the first message protocol by the group chat server;
receiving the group chat session H5 page resource sent by the group chat server;
rendering and displaying the group chat session H5 page according to the group chat session H5 page resource;
determining that offline message acquisition is needed, and sending an offline message acquisition request to the group chat server;
and receiving the second group chat message sent by the group chat server.
23. A communication apparatus, comprising:
the receiving and transmitting module is used for receiving a group chat creation request message sent by a first message protocol under the condition that a first terminal determines a second terminal needing to create a group chat on a group head page hypertext markup language H5 page, wherein the group chat creation request message is used for requesting to create the group chat with the second terminal;
The processing module is used for generating group chat session H5 page resources of the group chat according to the group chat creation request message;
the receiving and transmitting module is further configured to send a group invitation message to the second terminal through a second message protocol according to the group chat session H5 page resource, where the group invitation message carries a group chat session uniform resource locator URL, and is used to invite the second terminal to join in the group chat;
the transceiver module is further configured to receive a feedback message sent by the second terminal, where the feedback message is used to indicate whether the second terminal agrees to join the group chat;
the receiving and transmitting module is further configured to send a group notification message to the first terminal according to the feedback message, where the group notification message is used to indicate whether the second terminal agrees to join the group chat.
24. A communication apparatus, comprising:
the processing module is used for determining a second terminal needing to create the group chat on the group chat home page H5 page by the first terminal in the first message protocol connection state;
the receiving and transmitting module is used for sending a group chat creation request message to the group chat server through a first message protocol, wherein the group chat creation request message is used for requesting to create a group chat between the group chat server and the second terminal, and the group chat creation request message is used for generating a group chat session H5 page resource of the group chat by the group chat server;
The receiving and transmitting module is further configured to receive a group notification message sent by the group chat server, where the group notification message is used to indicate whether the second terminal agrees to join the group chat.
25. A communication apparatus, comprising:
a transceiver module, configured to receive a group invitation message sent by a group chat server through a second message protocol, where the group invitation message carries a group chat session URL and is used to invite a second terminal to join in the group chat, where the group invitation message is sent by the group chat server when receiving a group chat creation request message sent by a first terminal and generating a group chat session H5 page resource of the group chat, where the group chat creation request message is used to request creation of the group chat with the second terminal;
the receiving and transmitting module is further configured to send a feedback message to the group chat server, where the feedback message is used to indicate whether the second terminal agrees to join the group chat.
26. An electronic device, comprising:
memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 11 when executing the computer program, or the method according to any one of claims 12 to 18 when executing the computer program, or the method according to any one of claims 19 to 22 when executing the computer program.
27. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program when executed by a processor implements the method of any of claims 1 to 11, or the computer program when executed by a processor implements the method of any of claims 12 to 18, or the computer program when executed by a processor implements the method of any of claims 19 to 22.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311696992.1A CN117714999A (en) | 2023-12-11 | 2023-12-11 | Group chat control method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311696992.1A CN117714999A (en) | 2023-12-11 | 2023-12-11 | Group chat control method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117714999A true CN117714999A (en) | 2024-03-15 |
Family
ID=90161716
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311696992.1A Pending CN117714999A (en) | 2023-12-11 | 2023-12-11 | Group chat control method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117714999A (en) |
-
2023
- 2023-12-11 CN CN202311696992.1A patent/CN117714999A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105847988B (en) | Video sharing method and apparatus | |
US7823166B2 (en) | Enhanced information and presence service | |
US9020472B2 (en) | Social networking-based teleconferencing system and method | |
CN113099399B (en) | 5G financial message data processing method, financial institution and operator service device | |
AU2015250982A1 (en) | Instant messaging systems and methods | |
US20130104200A1 (en) | Apparatus and method for controlling access to multiple services | |
US10757145B2 (en) | Method and device for establishing WebRTC communications | |
JP5601843B2 (en) | Community widget providing method and apparatus | |
US20130086699A1 (en) | Aggregation system | |
WO2017215568A1 (en) | Method, device and system for communicating with call center | |
US9565148B2 (en) | Method and apparatus for processing micro web log messages | |
US11496459B2 (en) | Registration process using multiple devices | |
KR20150043369A (en) | Communications server apparatus, calling device and methods of operation thereof | |
CN102567400B (en) | Method for realizing Web visit and Web server | |
WO2023093452A1 (en) | Resource interaction method and apparatus, and terminal and storage medium | |
CN107786415B (en) | Service processing method and related equipment and system | |
CN101421698A (en) | System and method for enterprise collaboration | |
CN117714999A (en) | Group chat control method and device, electronic equipment and storage medium | |
CN112769798A (en) | Login method and device | |
US20090280842A1 (en) | Computer-based method and system for processing a file request in response to a message received from a user mobile device | |
CN114139093A (en) | Data communication method, equipment and medium | |
CN116708343A (en) | Conference processing method, apparatus, device, storage medium and program product | |
CN114666750B (en) | Message fallback method and device, message processing equipment and MaaP platform equipment | |
CN101400052A (en) | Mobile communication method, system based on WEB2.0 and mobile communication terminal | |
CN115633315B (en) | Inter-system message intercommunication method and device and computer readable storage medium |
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 |