Method and apparatus for joining group session, storage medium and electronic device
By using multiple methods such as generating QR codes and sending SMS messages to invite users to join group conversations, the problem of failing to invite offline users in RCS groups has been solved, improving the success rate of inviting users to the group and the user experience.
Patent Information
- Application Number
- CN202011467476.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-14
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2040-12-14
AI Technical Summary
The issue of RCS group members failing to invite offline users to the group resulted in a poor user experience.
Invite users to join group conversations through various means such as generating QR codes and sending text messages, including generating QR codes or sending text messages to invite users to join group conversations when it is determined that the user cannot receive the first request message.
It improved the success rate of inviting users to join the group, solved the problem of high failure rate in inviting users to join the group, and improved the user experience.
Smart Images

Figure CN114697287B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of communications, and more specifically, to a method and apparatus for joining a group session, a storage medium, and an electronic device. Background Technology
[0002] With the expansion of internet communication and the popularization of 5G technology, traditional SMS services can no longer meet the increasingly diverse needs of users. Users not only want to communicate with each other via text messages, but also hope to achieve communication interconnection through richer multimedia platforms.
[0003] Rich Communication Suite (RCS) is a converged communication service that integrates multiple communication methods such as voice, instant messaging, file transfer, content sharing, presentation, and location services. RCS extends existing voice and SMS services, integrating features such as presentation, instant chat, group chat, file transfer, and video sharing. It meets the needs of operators to quickly provide converged communication and social services in the Internet era.
[0004] RCS group chat service allows each member of a group to send and receive messages after the group administrator creates the group. Messages sent in the group are visible to every member, thus improving the breadth and scalability of RCS message communication.
[0005] However, when inviting a user to join an RCS group, if the invited user is offline (e.g., the device is not supported by RCS, the device is turned off, or the user has not activated RCS), the invitation will fail.
[0006] No effective solutions have yet been proposed in the relevant technologies to address the aforementioned technical problems. Summary of the Invention
[0007] This invention provides a method and apparatus for joining a group session, a storage medium, and an electronic device to at least solve the problem of failure when inviting offline users to join a group in related technologies.
[0008] According to an embodiment of the present invention, a method for joining a group session is provided, comprising: receiving a first request message of a first type sent by a first account, wherein the first request message is used to request a second account to join the group session, the first request message carrying account information of the second account and first group information of the group session; if it is determined based on the account information that the second account does not have the ability to receive the first request message, sending a first response message to the first account; receiving a second request message of a second type sent by the first account based on the first response message, wherein the second request message carries second group information of the group session determined based on the first group information; and requesting the second account to join the group session based on the second request message.
[0009] According to another embodiment of the present invention, a method for joining a group session is also provided, comprising: when a first account is logged in, sending a first request message of a first type to an instant messaging application service (IM-AS), wherein the first request message is used to request a second account to join the group session, and the first request message carries account information of the second account and first group information of the group session; receiving a first response message returned by the IM-AS, wherein the first response message is returned by the IM-AS when it is determined based on the account information that the second account does not have the ability to receive the first request message; and sending a second request message of a second type to the IM-AS based on the first response message to instruct the IM-AS to request the second account to join the group session based on the second request message, wherein the second request message carries second group information of the group session determined based on the first group information.
[0010] According to another embodiment of the present invention, a group session joining device is provided, comprising: a first receiving module, configured to receive a first request message of a first type sent by a first account, wherein the first request message is used to request a second account to join the group session, and the first request message carries account information of the second account and first group information of the group session; a feedback module, configured to send a first response message to the first account when it is determined based on the account information that the second account does not have the ability to receive the first request message; a second receiving module, configured to receive a second request message of a second type sent by the first account based on the first response message, wherein the second request message carries second group information of the group session determined based on the first group information; and a request module, configured to request the second account to join the group session based on the second request message.
[0011] According to another embodiment of the present invention, a group session joining device is also provided, comprising: a first sending module, configured to send a first request message of a first type to an instant messaging application service IM-AS when a first account is logged in, wherein the first request message is used to request a second account to join the group session, and the first request message carries account information of the second account and first group information of the group session; a third receiving module, configured to receive a first response message returned by the IM-AS, wherein the first response message is returned by the IM-AS when it is determined based on the account information that the second account does not have the ability to receive the first request message; and a second sending module, configured to send a second request message of a second type to the IM-AS based on the first response message, to instruct the IM-AS to request the second account to join the group session based on the second request message, wherein the second request message carries second group information of the group session determined based on the first group information.
[0012] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored therein, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0013] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
[0014] By means of this invention, when it is determined that the target user cannot join the group session through the first request message of the first type, the target user will be invited to join the group session through other types of request messages, thereby achieving the purpose of inviting users to join the group session through multiple methods. Therefore, it can solve the problem of high failure rate of inviting users to join the group in related technologies and achieve the effect of effectively inviting users to join the group. Attached Figure Description
[0015] Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of joining a group session according to an embodiment of the present invention.
[0016] Figure 2 This is a method flow for joining a group session according to an embodiment of the present invention. Figure 1 ;
[0017] Figure 3 This is a method flow for joining a group session according to an embodiment of the present invention. Figure 2 ;
[0018] Figure 4 This is an overall flowchart of joining a group session according to an embodiment of the present invention;
[0019] Figure 5 This is a structural block diagram of a group session joining device according to an embodiment of the present invention. Figure 1 ;
[0020] Figure 6 This is a structural block diagram of a group session joining device according to an embodiment of the present invention. Figure 2 . Detailed Implementation
[0021] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.
[0022] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0023] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a group session joining method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0024] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the method of joining a group session in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0025] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0026] This embodiment provides a method for joining a group session. Figure 2 This is a method flow for joining a group session according to an embodiment of the present invention. Figure 1 ,like Figure 2 As shown, the process includes the following steps:
[0027] Step S202: Receive a first request message of the first type sent by the first account, wherein the first request message is used to request the second account to join the group session, and the first request message carries the account information of the second account and the first group information of the group session;
[0028] Step S204: If it is determined based on the account information that the second account does not have the ability to receive the first request message, a first response message is sent back to the first account;
[0029] Step S206: Receive a second request message of the second type sent by the first account based on the first response message, wherein the second request message carries second group information of the group session determined based on the first group information;
[0030] Step S208: Request the second account to join the group session based on the second request message.
[0031] The entity performing the above steps can be an Instant Messaging-Application Service (IM-AS) or other devices or modules with similar processing capabilities, but is not limited to these. The terminal where the first account is located can be an RCS terminal, i.e., an RCS calling terminal.
[0032] In the above embodiments, the first request message includes a referrer message, and the second request message includes a message message, wherein the second request includes a QR code. The second account's inability to receive the first request message may be due to at least one of the following: the second account has not activated a service that allows receiving the first request message (e.g., the second account has not activated RCS service, or the terminal where the second account is located does not support RCS service, etc.), the terminal logged into the second account is powered off, or the second account is in a busy state, etc. Under these circumstances, the second account may be unable to receive the first request message. In this embodiment of the invention, after confirming that the second account cannot receive the first request message, it will be notified to join the group session through other means.
[0033] For example, group information can be converted into a QR code and sent to a second account via a message. A QR code, also known as a two-dimensional barcode, is a method of information encoding. It uses several geometric shapes corresponding to binary to represent text, numerical values, and other data information, which are automatically read by image input devices or photoelectric scanning devices to achieve rapid information dissemination and automatic processing. In this embodiment, after a group session member fails to join the group, the calling terminal can generate a QR code image from the group information and send it to the second account as an RCS message. That is, when sending to IM-AS, IM-AS, if it determines that the second account is online, sends the QR code image to the second account as an RCS message, allowing the second account to recognize the group information in the QR code image and join the group session. Furthermore, it should be noted that if the second account also cannot receive the message, IM-AS will recognize the group information in the QR code image and send it to the second account as an SMS. The second account then decides whether to join the RCS group by replying to the SMS.
[0034] In this embodiment, the first group information may include the group's identifier ID and the name of the group session. The QR code may include the QR code type (i.e., information used to identify that the QR code is an invitation to join the group session), the group session's identifier ID (or group meeting ID), the group session's name (or group nickname), etc.
[0035] Through the above embodiments, when it is determined that the target user cannot join the group session through the first request message of the first type, the target user will be invited to join the group session through other types of request messages, thereby achieving the purpose of inviting users to join the group session through multiple methods. Therefore, the problem of high failure rate of inviting users to join the group in related technologies can be solved, and the effect of effectively inviting users to join the group can be achieved.
[0036] In an optional embodiment, requesting the second account to join the group session based on the second request message includes: if it is determined based on the account information that the second account has the ability to receive the second request message, sending the second request message to the second account to request the second account to join the group session based on the second group information; if it is determined based on the account information that the second account does not have the ability to receive the second request message, constructing a third request message of a third type based on the second group information, wherein the third request message carries third group information of the group session determined based on the second group information; and sending the third request message to the given second account to request the second account to join the group session based on the third group information. In this embodiment, the third request message may include the aforementioned SMS message, which includes the identification information of the first account, the identification ID of the group session, and the name of the group session. In other words, if IM-AS determines that the second account is offline or does not exist, after verifying that the QR code is a valid invitation to join the group, it will construct an SMS message based on the group information included in the QR code. This message will then be sent to the target user corresponding to the second account via the SMS center. This allows the target user to be invited to join the group session via SMS. The target user's response can then determine whether they agree to join the group session. Upon receiving the invitation SMS, the target user's SMS terminal can reply with the caller's access number, indicating agreement or rejection, to decide whether to join the RCS group. The SMS center (i.e., SMSC) can then send the reply SMS to IM-AS based on the access number.
[0037] In an optional embodiment, after sending the third request message to the given second account, the method further includes at least one of the following: if no response message is received within a predetermined time period, replying to the first account with a first message, wherein the first message indicates that the second account has not joined the group session; if a response message is received and the response message carries first identification information, replying to the first account with a first message, wherein the first message indicates that the second account has not joined the group session; if a response message is received and the response message carries second identification information, requesting the group chat server to process the second account joining the group session. In this embodiment, the second identification information may be information carrying affirmative words such as "agree," "can," or "ok," and the first identification information includes other information besides the aforementioned affirmative words, such as information with words like "disagree," "reject," "do not join," "111," or "AAA."
[0038] In an optional embodiment, requesting the group chat server to process the second account joining the group session includes: sending a fourth request message to the group chat server, wherein the fourth request message carries the account information of the second account and the fourth group information of the group session; and receiving a processing result returned by the group chat server, wherein the processing result is returned by the group chat server after determining whether to allow the second account to join the group session based on the account information and the fourth group information. In this embodiment, after receiving the reply SMS, IM-AS sends the group entry application information of the second account to GC-AS, i.e., the group chat server, according to the group venue identifier (id) in the SMS. GC-AS is responsible for managing RCS group information. When it receives the group entry application information, after review and verification, if it confirms that the second account can join the group, it adds the second account to the group and returns the application result to IM-AS.
[0039] As described in the above embodiments, after the first account (i.e., the RCS calling terminal) invites the target user (i.e., the second account) to join the group via a Refer message, it checks the returned status code. If the error is such as the user being offline or the user not existing, a QR code is generated. This QR code contains group information such as the group meeting ID and group name, and is then sent to IM-AS via a SIP message. After receiving the information containing the QR code, IM-AS first attempts to deliver it to the target user. If the delivery is successful, it indicates that the target user is online, and the QR code conversion is not performed. If the delivery fails, and it is determined that the message is a group joining QR code image, the group information in the QR code is identified and converted into an invitation SMS (containing group meeting ID, group name, and other group information). This is then sent to the SMS center, which then sends it to the target user's mobile phone.
[0040] In this embodiment of the invention, a method for joining a group session is also provided, such as... Figure 3 As shown, it includes the following steps:
[0041] S302, when the first account is logged in, a first request message of the first type is sent to the instant messaging application service IM-AS, wherein the first request message is used to request the second account to join the group session, and the first request message carries the account information of the second account and the first group information of the group session.
[0042] S304, Receive the first response message returned by the IM-AS, wherein the first response message is returned by the IM-AS when it is determined based on the account information that the second account does not have the ability to receive the first request message;
[0043] S306, based on the first response message, a second request message of the second type is sent to the IM-AS to instruct the IM-AS to request the second account to join the group session based on the second request message, wherein the second request message carries second group information of the group session determined based on the first group information.
[0044] The operation described above can be performed by an RCS calling terminal, wherein the target application installed on the RCS calling terminal is logged into the aforementioned first account. For a detailed description of the relevant features in this embodiment, please refer to the foregoing embodiments; further details will not be repeated here.
[0045] By following the steps above, if it is determined that the target user cannot join the group session through the first request message of the first type, the target user will be invited to join the group session through other types of request messages. This achieves the purpose of inviting users to join the group session through multiple methods. Therefore, it can solve the problem of high failure rate in inviting users to join the group in related technologies and achieve the effect of effectively inviting users to join the group.
[0046] In an optional embodiment, sending a second request message of the second type to the IM-AS based on the first response message includes: generating a QR code based on the first response message, wherein the QR code includes the type of the QR code, the identifier ID of the group session, and the name of the group session; and sending the second request message of the second type including the QR code to the IM-AS.
[0047] In an optional embodiment, after sending a second request message of the second type to the IM-AS based on the first response message, the method further includes: receiving a first message returned by the IM-AS, wherein the first message is used to indicate that the second account has not joined the group session.
[0048] In an optional embodiment, the first request message includes a referrer message, and the second request message includes a message.
[0049] The present invention will now be described in conjunction with specific embodiments:
[0050] In RCS group chat, after the group administrator creates the group, each member can invite others to join. However, if the invited user is offline due to reasons such as 1) the user's phone is off, 2) the user is busy, 3) the user has not activated the RCS service, or 4) the user's terminal does not support the RCS service, the invitation will fail. This severely impacts the user experience, as group members cannot invite others in a timely manner, and users who have not activated the RCS service cannot join the RCS group.
[0051] Therefore, a method is needed to improve the success rate of inviting offline users to the group, which requires meeting the following two requirements:
[0052] For users who invite others to the group, the invitation can be successful even if the intended user is offline.
[0053] For users invited to the group, even if their device is powered off, does not support RCS service, or has not activated RCS service, they can still join the RCS group chat in a timely manner.
[0054] Therefore, in order to achieve the above functions, this embodiment proposes an offline user group joining method based on QR code to SMS conversion. This method includes the following aspects:
[0055] (1) RCS Terminal: After inviting the target user to the group via the Referer message, the terminal making the RCS call determines the returned status code. If the error is that the user is offline or the user does not exist, a QR code is generated. This QR code contains group information such as the group meeting ID and group name, and is then sent to IM-AS via the Session Initiation Protocol (SIP) message.
[0056] (2) IM-AS: After receiving a message containing a QR code, IM-AS first attempts to deliver it to the target user. If the delivery is successful, it indicates that the target user is online, and the QR code conversion is not performed. If the delivery fails, and it is determined that the message is a group entry QR code image, the group information in the QR code is identified and converted into an invitation SMS (including group venue ID, group name, and other group information). Then it is sent to the SMS center, which then sends it to the target user's mobile phone.
[0057] (3) SMS terminal: After receiving the invitation SMS to join the group, the user's SMS terminal replies to the caller's access number with the content of "agree" or "reject" to decide whether to join the RCS group;
[0058] (4) Short Message Service Center (SMSC): The SMS center sends reply SMS messages to IM-AS based on the access number;
[0059] (5) IM-AS: After receiving the reply SMS, IM-AS sends the user's group entry application information to the group chat server GC-AS according to the group meeting room ID in the SMS.
[0060] (6) GC-AS (Group Chat Server): GC-AS manages RCS group information. When it receives a group entry application, after review and verification, if the user can join the group, it will add the user to the group and return the application result to IM-AS.
[0061] This embodiment uses the example of user A (corresponding to the first account mentioned above) inviting user B (corresponding to the second account mentioned above) to join a group chat (corresponding to the group session mentioned above) for illustration. Figure 4 As shown, it includes the following steps:
[0062] S401: If user A wants to invite user B to join the group chat, it sends a Refer message of the standard Session Initiation Protocol (SIP) to IM-AS, where Refer-To is user B;
[0063] S402: IM-AS parses the Refer message sent by user A, and extracts the destination user number from the Refer-To field. It then determines the status of the destination user.
[0064] If the user is online, a Refer message is sent to GC-AS;
[0065] If the user is offline, return an offline error code to user A;
[0066] If the user has not activated the RCS service or has not opened an account, return a "User does not exist" error code to user A.
[0067] S403: User A checks the returned SIP error code. If it's an offline error code or a user not found error code, then the user is temporarily or permanently unable to receive group invitations. At this time, the mobile phone generates a QR code to invite User B to the group. This QR code must contain the following information:
[0068] QR code type: Invitation to join group QR code;
[0069] Group meeting ID;
[0070] Group nickname;
[0071] S404: User A sends the generated QR code to IM-AS via a Message message using the standard SIP protocol, where the ContentType of the SIP message content is an image format;
[0072] S405: IM-AS will make a judgment after receiving this message;
[0073] If the user is online, the received SIP message will be sent to user B;
[0074] If the user is offline or does not exist, proceed to S407;
[0075] S406: If user B is online, IM-AS will send a SIP message containing a QR code to user B. User B's terminal will first return a response to the SIP message. Then, if the QR code is identified as an invitation to join a group, the user will be asked to choose whether to accept the invitation. If the user chooses to accept the invitation, a group entry request will be initiated based on the group meeting ID in the QR code information.
[0076] S407: If user B is offline or does not exist, IM-AS will make the following judgment on the received SIP message:
[0077] Is the SIP message in image format?
[0078] Is the image a recognizable QR code?
[0079] Is the QR code a group entry application QR code?
[0080] Is the group meeting ID contained in the QR code a valid group meeting ID?
[0081] If all of the above conditions are met, then the QR code is considered a valid invitation to join the group.
[0082] At this point, IM-AS recognizes the group information in the QR code and constructs a text message with the following structure:
[0083] The text message reads: "<Inviter's Number> invites you to join the RCS group: <Group Nickname>. Reply to agree to join the group."
[0084] The caller ID of the text message is the group meeting ID;
[0085] The called number in the text message is the number of the person being invited.
[0086] S408: IM-AS sends the prepared invitation SMS to the SMSC (SMS Center);
[0087] S409: SMSC (Short Message Center) delivers the group entry SMS to user B;
[0088] S410: After receiving the SMS, User B decides whether to join the group. If they agree to join, they reply to the SMS with "Agree". Any other reply is considered a refusal to join. The destination number of the reply is the group ID.
[0089] S411: If the SMS center determines that the destination number of the SMS is the group meeting ID, it will send a reply SMS to IM-AS;
[0090] S412: IM-AS determines the sending result of the group entry SMS:
[0091] If a group entry SMS message is received indicating that the application failed to join, it is considered that User B has refused to join the group, and the entire process ends.
[0092] If user B does not send a reply SMS within the specified time, it will be considered that user B has refused to join the group, and the process will end.
[0093] If the text message returned by user B does not say "agree", it is considered that user B has refused to join the group, and the process ends.
[0094] If user B returns a text message saying "agree", it is assumed that user B has allowed the user to join the group.
[0095] S413: If the user allows joining the group, IM-AS constructs a request for user B to join the group chat and sends it to GC-AS;
[0096] S414: GC-AS performs group entry authentication, mainly determining whether the group ID is valid and whether the number of group members has reached the maximum limit. If user B meets the conditions for joining the group, user B will be added to the group chat and the corresponding group information will be updated; if user B does not meet the conditions for joining the group, the user will be refused entry into the group.
[0097] S415: GC-AS returns the results of the group entry to IM-AS;
[0098] S416: Based on the result returned by GC-AS, IM-AS will notify user A of the group joining result, i.e., whether the group joining was successful or unsuccessful, via a SIP message.
[0099] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0100] This embodiment also provides a device for joining a group session, which is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0101] Figure 5 This is a structural block diagram of a group session joining device according to an embodiment of the present invention. Figure 1 ,like Figure 5 As shown, the device includes:
[0102] The first receiving module 52 is used to receive a first request message of a first type sent by a first account, wherein the first request message is used to request a second account to join a group session, and the first request message carries the account information of the second account and the first group information of the group session.
[0103] Feedback module 54 is used to send a first response message to the first account when it is determined based on the account information that the second account does not have the ability to receive the first request message;
[0104] The second receiving module 56 is configured to receive a second request message of a second type sent by the first account based on the first response message, wherein the second request message carries second group information of the group session determined based on the first group information;
[0105] Request module 58 is used to request the second account to join the group session based on the second request message.
[0106] In an optional embodiment, the request module 58 is configured to, if it is determined based on the account information that the second account has the ability to receive the second request message, send the second request message to the second account to request the second account to join the group session based on the second group information; if it is determined based on the account information that the second account does not have the ability to receive the second request message, construct a third request message of a third type based on the second group information, wherein the third request message carries third group information of the group session determined based on the second group information; and send the third request message to the given second account to request the second account to join the group session based on the third group information.
[0107] In an optional embodiment, the device is further configured to, after sending the third request message to the given second account, perform at least one of the following operations: if no response message is received within a predetermined time period, reply to the first account with a first message, wherein the first message is used to indicate that the second account has not joined the group session; if a response message is received and the response message carries first identification information, reply to the first account with a first message, wherein the first message is used to indicate that the second account has not joined the group session; if a response message is received and the response message carries second identification information, request the group chat server to process the second account joining the group session.
[0108] In an optional embodiment, the device is configured to request a group chat server to process the second account joining the group session by: sending a fourth request message to the group chat server, wherein the fourth request message carries the account information of the second account and the fourth group information of the group session; and receiving a processing result returned by the group chat server, wherein the processing result is returned by the group chat server after determining whether to allow the second account to join the group session based on the account information and the fourth group information.
[0109] In an optional embodiment, the first request message includes a referrer message, and the second request message includes a message message, wherein the second request includes a QR code, the QR code including the type of the QR code, the identifier ID of the group session, and the name of the group session.
[0110] In an optional embodiment, the third request message includes a short message containing the identification information of the first account, the identifier ID of the group session, and the name of the group session.
[0111] Figure 6 This is a structural block diagram of a group session joining device according to an embodiment of the present invention. Figure 2 ,like Figure 6 As shown, the device includes:
[0112] The first sending module 62 is used to send a first request message of the first type to the instant messaging application service IM-AS when the first account is logged in. The first request message is used to request the second account to join the group session. The first request message carries the account information of the second account and the first group information of the group session.
[0113] The third receiving module 64 is used to receive the first response message returned by the IM-AS, wherein the first response message is returned by the IM-AS when it is determined based on the account information that the second account does not have the ability to receive the first request message;
[0114] The second sending module 66 is configured to send a second request message of a second type to the IM-AS based on the first response message, so as to instruct the IM-AS to request the second account to join the group session based on the second request message, wherein the second request message carries second group information of the group session determined based on the first group information.
[0115] In an optional embodiment, the second sending module 66 is configured to: generate a QR code based on the first response message, wherein the QR code includes the type of the QR code, the identifier ID of the group session, and the name of the group session; and send a second request message of the second type including the QR code to the IM-AS.
[0116] In an optional embodiment, the device is further configured to receive a first message returned by the IM-AS after sending a second request message of the second type to the IM-AS based on the first response message, wherein the first message is used to indicate that the second account has not joined the group session.
[0117] In an optional embodiment, the first request message includes a referrer message, and the second request message includes a message.
[0118] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0119] Embodiments of the present invention also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the steps in any of the above method embodiments when executed.
[0120] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0121] Embodiments of the present invention also provide an electronic device including a memory and a processor, the memory storing a computer program and the processor being configured to run the computer program to perform the steps in any of the above method embodiments.
[0122] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.
[0123] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0124] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0125] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for joining a group session, characterized in that, include: Receive a first request message of a first type sent by a first account, wherein the first request message is used to request a second account to join a group session, and the first request message carries the account information of the second account and the first group information of the group session; If it is determined, based on the account information of the second account, that the second account does not have the ability to receive the first request message, a first response message is sent back to the first account; Receive a second request message of a second type sent by the first account based on the first response message, wherein the second request message carries second group information of the group session determined based on the first group information; The second account is requested to join the group session based on the second request message.
2. The method according to claim 1, characterized in that, Requesting the second account to join the group session based on the second request message includes: If it is determined based on the account information that the second account has the ability to receive the second request message, the second request message is sent to the second account to request the second account to join the group session based on the second group information; If, based on the account information, it is determined that the second account does not have the ability to receive the second request message, a third request message of a third type is constructed based on the second group information, wherein the third request message carries third group information of the group session determined based on the second group information; the third request message is sent to the second account to request the second account to join the group session based on the third group information.
3. The method according to claim 2, characterized in that, After sending the third request message to the given second account, the method further includes at least one of the following: If no response message is received within a predetermined time period, a first message is sent to the first account, wherein the first message is used to indicate that the second account has not joined the group session; Upon receiving a response message that carries first identification information, a first message is sent back to the first account, wherein the first message indicates that the second account has not joined the group session; Upon receiving a response message containing second identification information, a request is made to the group chat server to add the second account to the group session.
4. The method according to claim 3, characterized in that, The request to the group chat server to add the second account to the group session includes: Send a fourth request message to the group chat server, wherein the fourth request message carries the account information of the second account and the fourth group information of the group session; The system receives a processing result returned by the group chat server, wherein the processing result is returned by the group chat server after determining whether to allow the second account to join the group session based on the account information and the fourth group information.
5. The method according to claim 1, characterized in that, The first request message includes a refer message, and the second request message includes a message message. The second request includes a QR code, which includes the type of the QR code, the identifier ID of the group session, and the name of the group session.
6. The method according to claim 2, characterized in that, The third request message includes a short message, which includes the identification information of the first account, the identification ID of the group session, and the name of the group session.
7. A method for joining a group session, characterized in that, include: When the first account is logged in, a first request message of the first type is sent to the instant messaging application service IM-AS. The first request message is used to request the second account to join the group session. The first request message carries the account information of the second account and the first group information of the group session. Receive the first response message returned by the IM-AS, wherein the first response message is returned by the IM-AS when it is determined by the IM-AS based on the account information of the second account that the second account does not have the ability to receive the first request message; Based on the first response message, a second request message of a second type is sent to the IM-AS to instruct the IM-AS to request the second account to join the group session based on the second request message, wherein the second request message carries second group information of the group session determined based on the first group information.
8. The method according to claim 7, characterized in that, Sending a second request message of the second type to the IM-AS based on the first response message includes: A QR code is generated based on the first response message, wherein the QR code includes the type of the QR code, the identifier ID of the group session, and the name of the group session; The second request message of the second type, including the QR code, is sent to the IM-AS.
9. The method according to claim 7, characterized in that, After sending a second request message of the second type to the IM-AS based on the first response message, the method further includes: Receive a first message returned by the IM-AS, wherein the first message is used to indicate that the second account has not joined the group session.
10. The method according to claim 7, characterized in that, The first request message includes a refer message, and the second request message includes a message message.
11. A device for joining a group session, characterized in that, include: The first receiving module is used to receive a first request message of a first type sent by a first account, wherein the first request message is used to request a second account to join a group session, and the first request message carries the account information of the second account and the first group information of the group session; The feedback module is used to send a first response message to the first account when it is determined, based on the account information of the second account, that the second account does not have the ability to receive the first request message. The second receiving module is configured to receive a second request message of a second type sent by the first account based on the first response message, wherein the second request message carries second group information of the group session determined based on the first group information; The request module is used to request the second account to join the group session based on the second request message.
12. A device for joining a group session, characterized in that, include: The first sending module is used to send a first request message of the first type to the instant messaging application service IM-AS when the first account is logged in. The first request message is used to request the second account to join the group session. The first request message carries the account information of the second account and the first group information of the group session. The third receiving module is used to receive the first response message returned by the IM-AS, wherein the first response message is returned by the IM-AS when it is determined based on the account information that the second account does not have the ability to receive the first request message; The second sending module is configured to send a second request message of a second type to the IM-AS based on the first response message, so as to instruct the IM-AS to request the second account to join the group session based on the second request message, wherein the second request message carries second group information of the group session determined based on the first group information.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6, or implements the steps of the method according to any one of claims 7 to 10.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method described in any one of claims 1 to 6, or the steps of the method described in any one of claims 7 to 10.
Citation Information
Patent Citations
Group-joining auditing method, auditing server, client and group-joining auditing system
CN109559246A
RCS-based group message processing method and device
WO2016086817A1
