[go: up one dir, main page]

CN107689939A - Method for message interaction and device - Google Patents

Method for message interaction and device Download PDF

Info

Publication number
CN107689939A
CN107689939A CN201610635302.5A CN201610635302A CN107689939A CN 107689939 A CN107689939 A CN 107689939A CN 201610635302 A CN201610635302 A CN 201610635302A CN 107689939 A CN107689939 A CN 107689939A
Authority
CN
China
Prior art keywords
user
message
request
session
response
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610635302.5A
Other languages
Chinese (zh)
Inventor
张创城
何子琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610635302.5A priority Critical patent/CN107689939A/en
Priority to TW106119491A priority patent/TW201806406A/en
Priority to PCT/CN2017/094011 priority patent/WO2018024123A1/en
Publication of CN107689939A publication Critical patent/CN107689939A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/02User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail using automatic reactions or user delegation, e.g. automatic replies or chatbot-generated messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提出一种消息交互方法和装置,该消息交互方法包括接收第一用户的客户端发送的第一请求,其中,第一请求包括用于代理第一用户的第二用户的用户标识和第一用户所在的会话的标识;根据第二用户的用户标识,确定第二用户为第一用户的代理;接收第二用户的客户端发送的消息;将消息作为第一用户的消息发送在会话的标识对应的会话中。通过本发明能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。

The present invention proposes a message interaction method and device. The message interaction method includes receiving a first request sent by a client of a first user, wherein the first request includes a user ID of a second user acting as an agent for the first user and the first request The identification of the session where the user is located; according to the user identification of the second user, determine that the second user is the agent of the first user; receive the message sent by the client of the second user; send the message as the message of the first user in the session Identifies the corresponding session. Through the present invention, it is possible to add an agent in the message interaction of the instant messaging application program, and effectively improve the user experience.

Description

消息交互方法和装置Message interaction method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种消息交互方法和装置。The present invention relates to the technical field of communication, and in particular to a method and device for message interaction.

背景技术Background technique

用户在使用电子设备上的即时通讯类应用程序进行消息交互时,会有添加代理来代替自己与对方交互消息的需求,例如,用户需要做另一件事情而又不愿中断当前会话,或者,用户需要借助代理的专业知识来代替自己会话等场景。When a user uses an instant messaging application on an electronic device for message interaction, there is a need to add an agent to replace the message exchange with the other party. For example, the user needs to do another thing without interrupting the current session, or, Users need to rely on the professional knowledge of the agent to replace their own conversations and other scenarios.

相关技术中,未有实现在即时通讯类应用程序中添加代理的功能。In related technologies, the function of adding agents in instant messaging applications has not been realized.

发明内容Contents of the invention

本发明旨在至少在一定程度上解决相关技术中的技术问题之一。The present invention aims to solve one of the technical problems in the related art at least to a certain extent.

为此,本发明的一个目的在于提出一种消息交互方法,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。Therefore, an object of the present invention is to propose a method for message interaction, which can realize adding an agent in the message interaction of instant messaging applications, and effectively improve user experience.

本发明的另一个目的在于提出一种消息交互方法。Another object of the present invention is to propose a message interaction method.

本发明的另一个目的在于提出一种消息交互方法。Another object of the present invention is to propose a message interaction method.

本发明的另一个目的在于提出一种消息交互方法。Another object of the present invention is to propose a message interaction method.

本发明的另一个目的在于提出一种消息交互方法。Another object of the present invention is to propose a message interaction method.

本发明的另一个目的在于提出一种消息交互装置。Another object of the present invention is to provide a message interaction device.

本发明的另一个目的在于提出一种消息交互装置。Another object of the present invention is to provide a message interaction device.

本发明的另一个目的在于提出一种消息交互装置。Another object of the present invention is to provide a message interaction device.

本发明的另一个目的在于提出一种消息交互装置。Another object of the present invention is to provide a message interaction device.

本发明的另一个目的在于提出一种消息交互装置。Another object of the present invention is to provide a message interaction device.

为达到上述目的,本发明第一方面实施例提出的消息交互方法,包括:接收第一用户的客户端发送的第一请求,其中,所述第一请求包括用于代理第一用户的第二用户的用户标识和所述第一用户所在的会话的标识;根据所述第二用户的用户标识,确定所述第二用户为所述第一用户的代理;接收所述第二用户的客户端发送的消息;将所述消息作为所述第一用户的消息发送在所述会话的标识对应的会话中。In order to achieve the above purpose, the message interaction method proposed by the embodiment of the first aspect of the present invention includes: receiving the first request sent by the client of the first user, wherein the first request includes the second request for proxying the first user The user ID of the user and the ID of the session where the first user is located; according to the user ID of the second user, determine that the second user is the agent of the first user; receive the client of the second user A sent message: sending the message as a message of the first user in the session corresponding to the session identifier.

本发明第一方面实施例提出的消息交互方法,通过将第二用户客户端发送的消息作为第一用户的消息发送在第一用户所在的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。The message interaction method proposed in the embodiment of the first aspect of the present invention can realize the message interaction in the instant messaging application program by sending the message sent by the client of the second user as the message of the first user in the session where the first user is present Adding an agent to effectively improve the user experience.

为达到上述目的,本发明第二方面实施例提出的消息交互方法,包括:生成第一请求,其中,所述第一请求包括:用于代理第一用户的第二用户的用户标识、所述第一用户所在的会话的标识;将所述第一请求发送至服务器,以使所述服务器将所述第二用户的客户端发送的消息作为所述第一用户或所述第一用户代理的消息发送在所述会话的标识对应的会话中。In order to achieve the above purpose, the message interaction method proposed in the second aspect of the present invention includes: generating a first request, wherein the first request includes: the user identifier of the second user used to represent the first user, the The identification of the session where the first user is located; sending the first request to the server, so that the server uses the message sent by the client of the second user as the first user or the first user agent The message is sent in the session corresponding to the session identifier.

本发明第二方面实施例提出的消息交互方法,通过将第一请求发送至服务器,以使服务器将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In the message interaction method proposed by the embodiment of the second aspect of the present invention, by sending the first request to the server, the server sends the message sent by the client of the second user as the message of the first user to the session corresponding to the session identifier , which can add agents in the message interaction of instant messaging applications, effectively improving the user experience.

为达到上述目的,本发明第三方面实施例提出的消息交互方法,包括:接收代理指令,所述代理指令中携带有被代理的第一用户的用户标识、所述第一用户所在的会话标识,所述代理指令用于指示将所述第二用户作为所述第一用户的代理;接收所述第二用户输入的消息和用于发送所述消息的指令;根据所述指令将所述消息发送至服务器,以使所述服务器将所述消息作为所述第一用户的消息发送在所述会话的标识对应的会话中。In order to achieve the above purpose, the message interaction method proposed by the embodiment of the third aspect of the present invention includes: receiving a proxy command, the proxy command carrying the user ID of the first user to be proxied and the session ID of the first user , the proxy instruction is used to indicate that the second user is used as the proxy of the first user; receive the message input by the second user and an instruction for sending the message; send the message according to the instruction sending to the server, so that the server sends the message as a message of the first user in the session corresponding to the session identifier.

本发明第三方面实施例提出的消息交互方法,通过第二用户的客户端接收代理指令,接收第二用户输入的消息和用于发送消息的指令,根据指令将消息发送至服务器,以使服务器将消息作为第一用户的消息发送在会话的标识对应的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In the message interaction method proposed by the embodiment of the third aspect of the present invention, the client of the second user receives the agent instruction, receives the message input by the second user and the instruction for sending the message, and sends the message to the server according to the instruction, so that the server Sending the message as the first user's message in the session corresponding to the session identifier can effectively improve the flexibility and applicability of the message interaction method, realize the addition of agents in the message interaction of instant messaging applications, and effectively improve the user's usage experience.

为达到上述目的,本发明第四方面实施例提出的消息交互方法,包括:根据第一用户选择的代理,生成代理配置信息和第一请求,其中,所述第一请求包括:用于代理第一用户的第二用户的用户标识、所述第一用户所在的会话的标识;将所述代理配置信息和所述第一请求发送至第二用户的客户端,以使所述第二用户的客户端根据所述代理配置信息将所述第二用户输入的消息作为所述第一用户的消息发送在所述会话的标识对应的会话中。To achieve the above purpose, the message interaction method proposed in the fourth aspect of the present invention includes: generating agent configuration information and a first request according to the agent selected by the first user, wherein the first request includes: The user identification of the second user of a user, the identification of the session where the first user is located; sending the proxy configuration information and the first request to the client of the second user, so that the second user's The client sends the message input by the second user as the message of the first user in the session corresponding to the session identifier according to the proxy configuration information.

本发明第四方面实施例提出的消息交互方法,通过将代理配置信息和第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In the message interaction method proposed by the embodiment of the fourth aspect of the present invention, by sending the agent configuration information and the first request to the client of the second user, the client of the second user can send the message input by the second user according to the agent configuration information As the message of the first user is sent in the session corresponding to the session identifier, an agent can be added in the message interaction of the instant messaging application program, and the user experience can be effectively improved.

为达到上述目的,本发明第五方面实施例提出的消息交互方法,包括:接收第一用户的客户端发送的代理配置信息和第一请求,其中,所述第一请求包括:用于代理第一用户的第二用户的用户标识、所述第一用户所在的会话的标识;接收所述第二用户输入的消息和用于发送所述消息的指令;根据所述代理配置信息将所述消息发送在所述第一用户所在的会话中。In order to achieve the above purpose, the message interaction method proposed by the embodiment of the fifth aspect of the present invention includes: receiving the proxy configuration information and the first request sent by the client of the first user, wherein the first request includes: The user identification of the second user of a user, the identification of the session where the first user is in; receiving the message input by the second user and an instruction for sending the message; sending the message according to the agent configuration information Sent in the session of the first user.

本发明第五方面实施例提出的消息交互方法,通过接收第一用户的客户端发送的代理配置信息和第一请求,当第二用户确认同意代理的响应时,接收第二用户输入的消息和用于发送消息的指令,根据代理配置信息将消息发送在第一用户所在的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In the message interaction method proposed by the embodiment of the fifth aspect of the present invention, by receiving the proxy configuration information and the first request sent by the client of the first user, when the second user confirms that he agrees with the response of the proxy, the message and the message input by the second user are received. The instruction for sending a message sends the message in the session of the first user according to the agent configuration information, which can effectively improve the flexibility and applicability of the message interaction method, and realize the addition of an agent in the message interaction of instant messaging applications. Effectively improve user experience.

为达到上述目的,本发明第六方面实施例提出的消息交互装置,包括:第一请求接收模块,用于接收第一用户的客户端发送的第一请求,其中,所述第一请求包括用于代理第一用户的第二用户的用户标识和所述第一用户所在的会话的标识;确定模块,用于根据所述第二用户的用户标识,确定所述第二用户为所述第一用户的代理;消息接收模块,用于接收所述第二用户的客户端发送的消息;第一消息发送模块,用于将所述消息作为所述第一用户的消息发送在所述会话的标识对应的会话中。To achieve the above object, the message interaction device proposed in the sixth embodiment of the present invention includes: a first request receiving module, configured to receive the first request sent by the client of the first user, wherein the first request includes The user identifier of the second user acting as an agent of the first user and the identifier of the session where the first user is located; a determining module, configured to determine that the second user is the first user according to the user identifier of the second user The user's agent; the message receiving module, configured to receive the message sent by the client of the second user; the first message sending module, configured to send the message as the first user's message in the identification of the session in the corresponding session.

本发明第六方面实施例提出的消息交互装置,通过将第二用户客户端发送的消息作为第一用户的消息发送在第一用户所在的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。The message interaction device proposed in the embodiment of the sixth aspect of the present invention can realize message interaction in instant messaging applications by sending the message sent by the client of the second user as the message of the first user in the session where the first user is present Adding an agent to effectively improve the user experience.

为达到上述目的,本发明第七方面实施例提出的消息交互装置,包括:第一生成模块,用于生成第一请求,其中,所述第一请求包括:用于代理第一用户的第二用户的用户标识、所述第一用户所在的会话的标识;第一发送模块,用于将所述第一请求发送至服务器,以使所述服务器将所述第二用户的客户端发送的消息作为所述第一用户或所述第一用户代理的消息发送在所述会话的标识对应的会话中。In order to achieve the above purpose, the message interaction device proposed in the embodiment of the seventh aspect of the present invention includes: a first generation module, configured to generate a first request, wherein the first request includes: a second The user ID of the user, the ID of the session where the first user is located; a first sending module, configured to send the first request to the server, so that the server sends the message sent by the client of the second user The message as the first user or the first user agent is sent in the session corresponding to the session identifier.

本发明第七方面实施例提出的消息交互装置,通过将第一请求发送至服务器,以使服务器将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。The message interaction device proposed in the embodiment of the seventh aspect of the present invention sends the first request to the server, so that the server sends the message sent by the second user's client as the first user's message in the session corresponding to the session identifier , which can add agents in the message interaction of instant messaging applications, effectively improving the user experience.

为达到上述目的,本发明第八方面实施例提出的消息交互装置,包括:代理指令接收模块,用于接收代理指令,所述代理指令中携带有被代理的第一用户的用户标识、所述第一用户所在的会话标识,所述代理指令用于指示将所述第二用户作为所述第一用户的代理;第一消息指令接收模块,用于接收所述第二用户输入的消息和用于发送所述消息的指令;第二消息发送模块,用于根据所述指令将所述消息发送至服务器,以使所述服务器将所述消息作为所述第一用户的消息发送在所述会话的标识对应的会话中。To achieve the above purpose, the message interaction device proposed in the eighth aspect of the present invention includes: a proxy instruction receiving module, configured to receive a proxy instruction, the proxy instruction carrying the user identifier of the first user to be proxied, the The session identifier of the first user, the agent instruction is used to indicate that the second user is used as the agent of the first user; the first message instruction receiving module is used to receive the message input by the second user and use the An instruction for sending the message; a second message sending module, configured to send the message to the server according to the instruction, so that the server sends the message as a message of the first user in the session in the session corresponding to the id.

本发明第八方面实施例提出的消息交互装置,通过第二用户的客户端接收代理指令,接收第二用户输入的消息和用于发送消息的指令,根据指令将消息发送至服务器,以使服务器将消息作为第一用户的消息发送在会话的标识对应的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In the message interaction device proposed by the embodiment of the eighth aspect of the present invention, the client of the second user receives the proxy instruction, receives the message input by the second user and the instruction for sending the message, and sends the message to the server according to the instruction, so that the server Sending the message as the first user's message in the session corresponding to the session identifier can effectively improve the flexibility and applicability of the message interaction method, realize the addition of agents in the message interaction of instant messaging applications, and effectively improve the user's usage experience.

为达到上述目的,本发明第九方面实施例提出的消息交互装置,包括第二生成模块,用于根据第一用户选择的代理,生成代理配置信息和第一请求,其中,所述第一请求包括:用于代理第一用户的第二用户的用户标识、所述第一用户所在的会话的标识;第二发送模块,用于将所述代理配置信息和所述第一请求发送至第二用户的客户端,以使所述第二用户的客户端根据所述代理配置信息将所述第二用户输入的消息作为所述第一用户的消息发送在所述会话的标识对应的会话中。To achieve the above purpose, the message interaction device proposed in the ninth aspect of the present invention includes a second generation module, configured to generate agent configuration information and a first request according to the agent selected by the first user, wherein the first request Including: the user identifier of the second user used to proxy the first user, the identifier of the session where the first user is located; a second sending module, configured to send the proxy configuration information and the first request to the second The client of the user, so that the client of the second user sends the message input by the second user as the message of the first user in the session corresponding to the session identifier according to the proxy configuration information.

本发明第九方面实施例提出的消息交互装置,通过将代理配置信息和第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In the message interaction device proposed by the embodiment of the ninth aspect of the present invention, by sending the agent configuration information and the first request to the client of the second user, the client of the second user can send the message input by the second user according to the agent configuration information As the message of the first user is sent in the session corresponding to the session identifier, an agent can be added in the message interaction of the instant messaging application program, and the user experience can be effectively improved.

为达到上述目的,本发明第十方面实施例提出的消息交互装置,包括第四接收模块,用于接收第一用户的客户端发送的代理配置信息和第一请求,其中,所述第一请求包括:用于代理第一用户的第二用户的用户标识、所述第一用户所在的会话的标识;第二消息指令接收模块,用于接收所述第二用户输入的消息和用于发送所述消息的指令;第三消息发送模块,用于根据所述代理配置信息将所述消息发送在所述第一用户所在的会话中。To achieve the above purpose, the message interaction device proposed in the tenth embodiment of the present invention includes a fourth receiving module, configured to receive the proxy configuration information and the first request sent by the client of the first user, wherein the first request Including: the user identification of the second user acting as the agent of the first user, the identification of the session where the first user is located; the second message instruction receiving module, used to receive the message input by the second user and send the an instruction of the message; a third message sending module, configured to send the message in the session where the first user is located according to the agent configuration information.

本发明第十方面实施例提出的消息交互装置,通过接收第一用户的客户端发送的代理配置信息和第一请求,当第二用户确认同意代理的响应时,接收第二用户输入的消息和用于发送消息的指令,根据代理配置信息将消息发送在第一用户所在的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。The message interaction device proposed in the embodiment of the tenth aspect of the present invention receives the proxy configuration information and the first request sent by the client of the first user, and receives the message and The instruction for sending a message sends the message in the session of the first user according to the agent configuration information, which can effectively improve the flexibility and applicability of the message interaction method, and realize the addition of an agent in the message interaction of instant messaging applications. Effectively improve user experience.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of drawings

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:

图1是本发明一实施例提出的消息交互方法的流程示意图;FIG. 1 is a schematic flowchart of a message interaction method proposed by an embodiment of the present invention;

图2是本发明实施例中第一用户所在会话的聊天界面示意图;Fig. 2 is a schematic diagram of the chat interface of the session where the first user is in the embodiment of the present invention;

图3是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 3 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图4是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 4 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图5是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 5 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图6是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 6 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图7是本发明实施例中聊天消息界面示意图;Fig. 7 is a schematic diagram of a chat message interface in an embodiment of the present invention;

图8是本发明实施例中代理选择界面示意图;Fig. 8 is a schematic diagram of an agent selection interface in an embodiment of the present invention;

图9是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 9 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图10是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 10 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图11是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 11 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图12是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 12 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图13是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 13 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图14是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 14 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图15是本发明另一实施例提出的消息交互方法的流程示意图;Fig. 15 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention;

图16是本发明另一实施例提出的消息交互方法的流程示意图;FIG. 16 is a schematic flowchart of a message interaction method proposed in another embodiment of the present invention;

图17是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 17 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图18是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 18 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图19是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 19 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图20是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 20 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图21是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 21 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图22是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 22 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图23是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 23 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图24是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 24 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图25是本发明另一实施例提出的消息交互装置的结构示意图;Fig. 25 is a schematic structural diagram of a message interaction device proposed in another embodiment of the present invention;

图26是本发明另一实施例提出的消息交互装置的结构示意图。Fig. 26 is a schematic structural diagram of a message interaction device according to another embodiment of the present invention.

具体实施方式detailed description

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.

本实施例以该消息交互方法被配置为消息交互装置中来举例说明。该消息交互方法可以应用在即时通讯类应用程序中,其中,应用程序可以是指运行在电子设备上的软件程序,电子设备例如为个人电脑(Personal Computer,PC),云端设备或者移动设备,移动设备例如智能手机,或者平板电脑等。This embodiment is described by taking the message interaction method configured in a message interaction device as an example. The message interaction method can be applied to instant messaging applications, where the application program can refer to a software program running on an electronic device, such as a personal computer (Personal Computer, PC), a cloud device or a mobile device. Devices such as smartphones or tablets.

图1是本发明一实施例提出的消息交互方法的流程示意图。参见图1,该消息交互方法可以包括:FIG. 1 is a schematic flowchart of a message interaction method proposed by an embodiment of the present invention. Referring to Figure 1, the message interaction method may include:

S101:接收第一用户的客户端发送的第一请求,其中,第一请求包括用于代理第一用户的第二用户的用户标识和第一用户所在的会话的标识。S101: Receive a first request sent by a client of a first user, where the first request includes a user identifier of a second user used to act as a proxy for the first user and an identifier of a session where the first user is located.

本实施例的执行主体可以为服务器。The execution subject of this embodiment may be a server.

在本发明的实施例中,第一用户为发起代理请求的用户。第一用户的客户端为安装在第一用户侧的电子设备上的即时通讯类应用程序客户端。例如,淘宝旺旺客户端。In the embodiment of the present invention, the first user is the user who initiates the proxy request. The client of the first user is an instant messaging application client installed on the electronic device at the first user side. For example, Taobao Wangwang client.

可以理解的是,用户在使用电子设备上的即时通讯类应用程序进行消息交互时,会有添加代理来代替自己与对方交互消息的需求,例如,用户需要做另一件事情而又不愿中断当前会话,或者,用户需要借助代理的专业知识来代替自己会话等场景。It is understandable that when a user interacts with an instant messaging application on an electronic device, there is a need to add an agent instead of interacting with the other party. For example, the user needs to do another thing but does not want to be interrupted. The current session, or the user needs to rely on the professional knowledge of the agent to replace his own session and other scenarios.

在本发明的实施例中,第一请求为第一用户的客户端生成的。其中,第一请求包括用于代理第一用户的第二用户的用户标识和第一用户所在的会话的标识。In the embodiment of the present invention, the first request is generated by the client of the first user. Wherein, the first request includes the user identifier of the second user acting as proxy for the first user and the identifier of the session in which the first user is located.

可选地,第一用户的客户端可以根据第一用户的指令生成第一请求,并将第一请求发送至服务器,以使服务器根据第一请求中用于代理第一用户的第二用户的用户标识将对应的第二用户加入至第一用户所在的会话中,对此不作限制。Optionally, the client of the first user may generate the first request according to the instruction of the first user, and send the first request to the server, so that the server may, according to the The user identification adds the corresponding second user to the session of the first user, which is not limited.

在本发明的实施例中,第二用户为第一用户选择的用于代理第一用户的用户,用于代理第一用户的第二用户的用户标识可以唯一标识第二用户,可以由第一用户的客户端根据第一用户的指令获取得到。In the embodiment of the present invention, the second user is the user selected by the first user to act as the proxy for the first user, and the user identifier of the second user used to represent the first user can uniquely identify the second user, and can be determined by the first user. The user's client terminal is obtained according to the instruction of the first user.

在本发明的实施例中,第一用户所在的会话为第一用户在电子设备上的即时通讯类应用程序中正在进行的会话,参见图2,图2为本发明实施例中第一用户所在的会话的聊天界面示意图,其中,图2包括代理添加按键21、第一用户的消息22,以及第一用户所在的会话的会话对象的消息23。在第一用户有添加代理来代替自己与对方交互消息的需求时,可以点击图2中的代理添加按键21,触发第一用户的客户端生成第一请求,并将第一请求发送至服务器。In the embodiment of the present invention, the session that the first user is in is an ongoing session of the first user in an instant messaging application program on the electronic device. A schematic diagram of the chat interface of the session, wherein FIG. 2 includes an agent addition button 21, a message 22 of the first user, and a message 23 of the session object of the session where the first user is. When the first user needs to add a proxy instead of himself to exchange messages with the other party, he can click the proxy addition button 21 in FIG. 2 to trigger the client of the first user to generate a first request and send the first request to the server.

可选地,参见图3,一些实施例中,在S101之后,该消息交互方法还可以包括:Optionally, referring to FIG. 3, in some embodiments, after S101, the message interaction method may further include:

S301:根据第二用户的用户标识向第二用户的客户端发送第二请求,其中,第二请求用于使第二用户确认是否同意代理。S301: Send a second request to the client of the second user according to the user identifier of the second user, where the second request is used to make the second user confirm whether to agree to proxy.

其中,第二用户为对第一用户进行代理的用户。第二用户的客户端为登录第二用户的账号的即时通讯类应用程序客户端。Wherein, the second user is a user acting as a proxy for the first user. The client of the second user is an instant messaging application client logged into the account of the second user.

在本发明的实施例中,在检测到第二用户的客户端后,可以将第二请求发送至第二用户的客户端,在检测到第二用户的客户端后,可以将第二请求发送至第二用户的客户端,并在第二用户确认同意代理时,将第二用户加入至当前会话,或者,在第二用户确认同意代理时,将第二用户的客户端发送的消息发送至第一用户的客户端,对此不作限制。In an embodiment of the present invention, after the client of the second user is detected, the second request can be sent to the client of the second user, and after the client of the second user is detected, the second request can be sent to the client of the second user, and when the second user confirms the consent of the proxy, the second user is added to the current session, or, when the second user confirms the consent of the proxy, the message sent by the second user's client is sent to The client of the first user is not limited.

S302:接收第二用户的客户端发送的第二请求的响应,其中,第二请求的响应为第二用户确认同意或不同意代理的响应,当第二请求的响应为第二用户确认同意代理的响应时,则执行根据第二用户的用户标识,确定第二用户为第一用户的代理。S302: Receive a response to the second request sent by the client of the second user, wherein the response to the second request is a response to the second user confirming whether or not to agree to the proxy, when the response to the second request is the second user confirming that the proxy When a response is received, the second user is determined to be the proxy of the first user according to the user identifier of the second user.

可以理解的是,第二请求的响应包括第二用户确认同意代理的响应,和第二用户确认不同意代理的响应,第二用户的客户端在接收到服务器发送的第二请求时,可以根据第二请求对第二用户进行提示,并接收第二用户的响应指令,根据第二用户的响应指令生成第二用户确认同意或不同意代理的响应,并将第二用户确认同意或不同意代理的响应发送至服务器,当第二请求的响应为第二用户确认同意代理的响应时,则执行根据第二用户的用户标识,确定第二用户为第一用户的代理。It can be understood that the response to the second request includes the response of the second user confirming that he agrees to the proxy, and the response of the second user confirming that he does not agree to the proxy. When the client of the second user receives the second request sent by the server, The second request prompts the second user, and receives the second user's response instruction, generates a response for the second user to confirm whether or not to agree to the proxy according to the second user's response command, and confirms that the second user agrees or disagrees with the proxy The response of the second request is sent to the server, and when the response of the second request is that the second user confirms that he agrees to the proxy, then the second user is determined to be the proxy of the first user according to the user ID of the second user.

本实施例中,通过向第二用户的客户端发送用于使第二用户确认是否同意代理的第二请求,由第二用户确定是否同意代理,在第二用户不同意代理时,第一用户可以选取其他联系人作为代理,在第二用户同意代理时,接收第二用户的客户端发送的消息,有效提升消息交互方法的灵活性和适用性。In this embodiment, by sending a second request to the client of the second user to confirm whether the second user agrees to the proxy, the second user determines whether to agree to the proxy. When the second user does not agree to the proxy, the first user Other contacts can be selected as agents, and when the second user agrees to act as an agent, the message sent by the client of the second user is received, which effectively improves the flexibility and applicability of the message interaction method.

继续参见图1,S102:根据第二用户的用户标识,确定第二用户为第一用户的代理。Continue referring to FIG. 1 , S102: According to the user identifier of the second user, determine that the second user is the proxy of the first user.

在本发明的实施例中,第二用户为第一用户选择的用于代理第一用户的用户,用于代理第一用户的第二用户的用户标识可以唯一标识第二用户,可以根据第二用户的用户标识,确定第二用户为第一用户的代理,将第二用户加入至会话的标识对应的会话中。In the embodiment of the present invention, the second user is the user selected by the first user to act as the proxy for the first user, and the user identifier of the second user used to represent the first user can uniquely identify the second user, and can be based on the second The user ID of the user determines that the second user is the proxy of the first user, and adds the second user to the session corresponding to the session ID.

S103:接收第二用户的客户端发送的消息。S103: Receive a message sent by the client of the second user.

在本发明的实施例中,第二用户的客户端发送的消息可以为会话消息,用于在会话中进行消息交互。In the embodiment of the present invention, the message sent by the client of the second user may be a session message, which is used for message interaction in the session.

在本发明的实施例中,服务器接收第一用户的客户端发送的第一请求时,会读取第一请求中的第二用户的用户标识,并根据用户标识与账号的对应关系,从数据库中读取对应的第二用户的账号,可以理解的是,在用户使用即时通讯类应用程序时,会在该应用程序中进行注册,该应用程序侧的服务器在接收到用户的注册请求后,将用户的账号、密码,以及用户标识等信息对应保存在数据库中,对此不作限制。In the embodiment of the present invention, when the server receives the first request sent by the client of the first user, it will read the user ID of the second user in the first request, and according to the corresponding relationship between the user ID and the account, retrieve the information from the database It can be understood that when a user uses an instant messaging application, he will register in the application, and the server on the application side will, after receiving the registration request from the user, The user's account number, password, and user ID and other information are correspondingly stored in the database, and there is no restriction on this.

可选地,服务器在解析到第二用户的账号时,可以检测登录第二用户的账号的即时通讯类应用程序客户端,作为第二用户的客户端。Optionally, when the server finds the second user's account, it may detect an instant messaging application client logged into the second user's account as the second user's client.

可选地,服务器还可以在接收到第一用户的客户端发送的第一请求之后,根据用户标识生成第二请求,其中,第二请求用于使第二用户确认是否同意代理,并触发S301。Optionally, after receiving the first request sent by the client of the first user, the server may generate a second request according to the user identifier, wherein the second request is used to make the second user confirm whether to agree to the proxy, and trigger S301 .

S104:将消息作为第一用户的消息发送在会话的标识对应的会话中。S104: Send the message as a message of the first user in the session corresponding to the session identifier.

在本发明的实施例中,例如可以将消息发送至第一用户的客户端,以使第一用户的客户端将消息发送在会话中。In the embodiment of the present invention, for example, the message may be sent to the client of the first user, so that the client of the first user sends the message in the session.

在本发明的实施例中,第一请求还包括用于标识第二用户是否可见的标识,其中,第二用户是否可见可以例如为在第一用户所在的会话中,第二用户的身份信息是否对第三用户可见,第三用户例如为第一用户所在的会话的会话对象。In an embodiment of the present invention, the first request further includes an identifier for identifying whether the second user is visible, wherein whether the second user is visible may be, for example, whether the second user's identity information is Visible to the third user, for example, the third user is a session object of the session where the first user is.

可选地,将消息作为第一用户的消息发送在会话的标识对应的会话中之后,包括:当标识为不可见时,在会话中不提示第一用户的消息为代理的消息;当标识为可见时,在会话中提示第一用户的消息为代理的消息。Optionally, after sending the message as the first user's message in the session corresponding to the session identifier, it includes: when the identifier is invisible, not prompting that the first user's message is a proxy message in the session; when the identifier is When visible, the message that prompts the first user in the conversation is the message of the agent.

可以理解的是,当第一用户有添加代理来代替自己与对方交互消息的需求,且需要隐藏代理的身份信息时,可以设置第二用户不可见,而当第一用户不需要隐藏代理的身份信息时,可以设置第二用户可见,对此不作限制。It is understandable that when the first user needs to add an agent to replace himself and exchange messages with the other party, and needs to hide the identity information of the agent, the second user can be set invisible, and when the first user does not need to hide the identity of the agent Information can be set to be visible to the second user, without limitation.

本实施例中,通过将第二用户客户端发送的消息作为第一用户的消息发送在第一用户所在的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending the message sent by the client of the second user as the message of the first user in the session of the first user, it is possible to add an agent in the message interaction of the instant messaging application program, effectively improving the user's Use experience.

图4是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。Fig. 4 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图4,该消息交互方法可以包括:Referring to Figure 4, the message interaction method may include:

S401:接收第一用户的客户端发送的第一请求,其中,第一请求包括用于代理第一用户的第二用户的用户标识和第一用户所在的会话的标识。S401: Receive a first request sent by a client of a first user, where the first request includes a user identifier of a second user used to act as a proxy for the first user and an identifier of a session in which the first user is located.

本实施例的S401与图1实施例中的S101相同,于此不再赘述。S401 in this embodiment is the same as S101 in the embodiment in FIG. 1 , and will not be repeated here.

值得一提的是,在本发明的实施例中,当第一请求还可以包括第N用户的用户标识时,N为大于或等于3的正整数,还可以根据第N用户的用户标识向第N用户的客户端发送第三请求,其中,第三请求用于使第N用户确认是否同意代理,以使第一用户和第N用户共同作为第一用户的代理,详细处理流程参见添加第二用户为代理的方法流程,在此不再赘述。It is worth mentioning that, in the embodiment of the present invention, when the first request can also include the user ID of the Nth user, N is a positive integer greater than or equal to 3, and the user ID of the Nth user can also be sent to the Nth user The client of user N sends a third request, wherein the third request is used to make the Nth user confirm whether to agree to the proxy, so that the first user and the Nth user can act as the proxy of the first user together. For the detailed processing flow, see Adding the second The flow of the method in which the user is an agent will not be repeated here.

S402:根据第二用户的用户标识向第二用户的客户端发送第二请求,其中,第二请求用于使第二用户确认是否同意代理。S402: Send a second request to the client of the second user according to the user identifier of the second user, where the second request is used to make the second user confirm whether to agree to proxy.

在本发明的实施例中,服务器接收第一用户的客户端发送的第一请求时,会读取第一请求中的第二用户的用户标识,并根据用户标识与账号的对应关系,从数据库中读取对应的第二用户的账号,可以理解的是,在用户使用即时通讯类应用程序时,会在该应用程序中进行注册,该应用程序侧的服务器在接收到用户的注册请求后,将用户的账号、密码,以及用户标识等信息对应保存在数据库中,对此不作限制。In the embodiment of the present invention, when the server receives the first request sent by the client of the first user, it will read the user ID of the second user in the first request, and according to the corresponding relationship between the user ID and the account, retrieve the information from the database It can be understood that when a user uses an instant messaging application, he will register in the application, and the server on the application side will, after receiving the registration request from the user, The user's account number, password, and user ID and other information are correspondingly stored in the database, and there is no restriction on this.

可选地,服务器在解析到第二用户的账号时,可以检测登录第二用户的账号的即时通讯类应用程序客户端,作为第二用户的客户端,并向第二用户的客户端发送用于使第二用户确认是否同意代理的第二请求。Optionally, when the server finds the account of the second user, it may detect the client of the instant messaging application that logs in the account of the second user as the client of the second user, and send the client of the second user to the client of the second user. To make the second user confirm whether to agree to the second request of the agent.

S403:接收第二用户的客户端发送的第二请求的响应,其中,第二请求的响应为第二用户确认同意或不同意代理的响应,当第二请求的响应为第二用户确认同意代理的响应时,则执行根据第二用户的用户标识,确定第二用户为第一用户的代理。S403: Receive a response to the second request sent by the client of the second user, wherein the response to the second request is a response to the second user confirming that he or she agrees to the proxy, when the response to the second request is the second user confirming that the proxy When a response is received, the second user is determined to be the proxy of the first user according to the user identifier of the second user.

在本发明的实施例中,在检测到第二用户的客户端后,可以将第二请求发送至第二用户的客户端,并在第二用户确认同意代理时,将第二用户加入至当前会话,或者,在第二用户确认同意代理时,将第二用户的客户端发送的消息发送至第一用户的客户端,对此不作限制。In the embodiment of the present invention, after the client of the second user is detected, a second request can be sent to the client of the second user, and when the second user confirms that he agrees to the proxy, the second user will be added to the current session, or, when the second user confirms consent to the proxy, sending a message sent by the second user's client to the first user's client, without limitation.

可以理解的是,第二请求的响应包括第二用户确认同意代理的响应,和第二用户确认不同意代理的响应,第二用户的客户端在接收到服务器发送的第二请求时,可以根据第二请求对第二用户进行提示,并接收第二用户的响应指令,根据第二用户的响应指令生成第二用户确认同意或不同意代理的响应,并将第二用户确认同意或不同意代理的响应发送至服务器,当第二请求的响应为第二用户确认同意代理的响应时,则执行根据第二用户的用户标识,确定第二用户为第一用户的代理。It can be understood that the response to the second request includes the response of the second user confirming that he agrees to the proxy, and the response of the second user confirming that he does not agree to the proxy. When the client of the second user receives the second request sent by the server, The second request prompts the second user, and receives the second user's response instruction, generates a response for the second user to confirm whether or not to agree to the proxy according to the second user's response command, and confirms that the second user agrees or disagrees with the proxy The response of the second request is sent to the server, and when the response of the second request is that the second user confirms that he agrees to the proxy, then the second user is determined to be the proxy of the first user according to the user ID of the second user.

S404:当第二请求的响应为第二用户确认不同意代理的响应时,生成提示信息,并将提示信息发送至第一用户的客户端。S404: When the response of the second request is that the second user confirms that he does not agree to the proxy, generate prompt information, and send the prompt information to the client of the first user.

在第二用户不同意代理时,可以在第一用户的客户端侧对第一用户进行提示,以使第一用户可以选取其他联系人作为代理,有效提升消息交互方法的灵活性和适用性。When the second user disagrees with the proxy, the first user can be prompted on the client side of the first user, so that the first user can select another contact as the proxy, effectively improving the flexibility and applicability of the message interaction method.

S405:当第二请求的响应为第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端。S405: When the response of the second request is a response of the second user confirming that the proxy is accepted, send the historical session record of the session to the client of the second user.

可选地,在将会话的历史会话记录发送至第二用户的客户端之后,还可以将第二用户加入至会话的标识对应的会话中,或者,将消息发送至第一用户的客户端,以使第一用户的客户端将消息发送在会话中,对此不作限制。Optionally, after the historical session record of the session is sent to the client of the second user, the second user may also be added to the session corresponding to the identifier of the session, or the message is sent to the client of the first user, To enable the client of the first user to send the message in the session, there is no limitation on this.

在本发明的实施例中,在服务器将第二用户加入至当前会话中时,可以读取当前会话中的历史记录,并将历史记录发送至第二用户的客户端,以使第二用户能够获知历史记录,便于第二用户在代言第一用户进行会话时,能够结合会话上下文发送准确的消息,保证消息的连贯性和准确性,有效提升消息交互方法的实用性。In an embodiment of the present invention, when the server adds the second user to the current session, it can read the historical records in the current session and send the historical records to the client of the second user, so that the second user can Knowing the historical records facilitates the second user to send accurate messages in combination with the context of the conversation when speaking on behalf of the first user, ensuring the consistency and accuracy of the messages, and effectively improving the practicability of the message interaction method.

S406:根据第二用户的用户标识,确定第二用户为第一用户的代理。S406: According to the user identifier of the second user, determine that the second user is the proxy of the first user.

在本发明的实施例中,第二用户为第一用户选择的用于代理第一用户的用户,用于代理第一用户的第二用户的用户标识可以唯一标识第二用户,可以根据第二用户的用户标识,确定第二用户为第一用户的代理,将第二用户加入至会话的标识对应的会话中。In the embodiment of the present invention, the second user is the user selected by the first user to act as the proxy for the first user, and the user identifier of the second user used to represent the first user can uniquely identify the second user, and can be based on the second The user ID of the user determines that the second user is the proxy of the first user, and adds the second user to the session corresponding to the session ID.

S407:当第一用户和第二用户中的一个用户进行输入时,向第一用户和第二用户中的另一个用户进行提示。S407: When one of the first user and the second user makes an input, prompt the other of the first user and the second user.

在本发明的实施例中,当第一用户在会话的聊天界面进行输入时,可以生成提示消息,提示消息例如,第一用户正在输入。并将提示消息发送至第二用户的客户端,或者,当第二用户在会话的聊天界面进行输入时,可以生成提示消息,提示消息例如,第二用户正在输入。并将提示消息发送至第一用户的客户端,以避免第二用户和第一用户输入一致的消息,占用消息交互的资源,提升消息交互的效率,并且能够节省服务器的内存消耗,提升消息交互系统性能。In the embodiment of the present invention, when the first user performs input on the chat interface of the session, a prompt message may be generated, for example, the prompt message indicates that the first user is inputting. And send a prompt message to the client of the second user, or, when the second user performs input on the chat interface of the conversation, a prompt message may be generated, for example, the prompt message indicates that the second user is inputting. And send the prompt message to the first user's client to avoid the second user and the first user inputting the same message, occupying the resources of message interaction, improving the efficiency of message interaction, saving the memory consumption of the server, and improving message interaction system performance.

S408:接收第二用户的客户端发送的消息。S408: Receive a message sent by the client of the second user.

在本发明的实施例中,第二用户的客户端发送的消息可以为会话消息,用于在会话中进行消息交互。In the embodiment of the present invention, the message sent by the client of the second user may be a session message, which is used for message interaction in the session.

S409:将消息作为第一用户的消息发送在会话的标识对应的会话中。S409: Send the message as a message of the first user in the session corresponding to the session identifier.

在本发明的实施例中,第一请求还包括用于标识第二用户是否可见的标识,其中,第二用户是否可见可以例如为在第一用户所在的会话中,第二用户的身份信息是否对第三用户可见,第三用户例如为第一用户所在的会话的会话对象。In an embodiment of the present invention, the first request further includes an identifier for identifying whether the second user is visible, wherein whether the second user is visible may be, for example, whether the second user's identity information is Visible to the third user, for example, the third user is a session object of the session where the first user is.

可选地,将消息作为第一用户的消息发送在会话的标识对应的会话中之后,包括:当标识为不可见时,在会话中不提示第一用户的消息为代理的消息;当标识为可见时,在会话中提示第一用户的消息为代理的消息。Optionally, after sending the message as the first user's message in the session corresponding to the session identifier, it includes: when the identifier is invisible, not prompting that the first user's message is a proxy message in the session; when the identifier is When visible, the message that prompts the first user in the conversation is the message of the agent.

可以理解的是,当第一用户有添加代理来代替自己与对方交互消息的需求,且需要隐藏代理的身份信息时,可以设置第二用户不可见,而当第一用户不需要隐藏代理的身份信息时,可以设置第二用户可见,对此不作限制。It is understandable that when the first user needs to add an agent to replace himself and exchange messages with the other party, and needs to hide the identity information of the agent, the second user can be set invisible, and when the first user does not need to hide the identity of the agent Information can be set to be visible to the second user, without limitation.

本实施例中,通过向第二用户的客户端发送用于使第二用户确认是否同意代理的第二请求,由第二用户确定是否同意代理,在第二用户不同意代理时,第一用户可以选取其他联系人作为代理,在第二用户同意代理时,接收第二用户的客户端发送的消息,有效提升消息交互方法的灵活性和适用性。通过在服务器将第二用户加入至当前会话中时,可以读取当前会话中的历史记录,并将历史记录发送至第二用户的客户端,以使第二用户能够获知历史记录,便于第二用户在代言第一用户进行会话时,能够结合会话上下文发送准确的消息,保证消息的连贯性和准确性,有效提升消息交互方法的实用性。通过在第一用户和第二用户中的一个进行输入时,向第一用户和第二用户中的另一个进行提示,能够避免第二用户和第一用户输入一致的消息,占用消息交互的资源,提升消息交互的效率,并且能够节省服务器的内存消耗,提升消息交互系统性能。通过将第二用户客户端发送的消息作为第一用户的消息发送在第一用户所在的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending a second request to the client of the second user to confirm whether the second user agrees to the proxy, the second user determines whether to agree to the proxy. When the second user does not agree to the proxy, the first user Other contacts can be selected as agents, and when the second user agrees to act as an agent, the message sent by the client of the second user is received, which effectively improves the flexibility and applicability of the message interaction method. When the server adds the second user to the current session, it can read the historical records in the current session and send the historical records to the second user's client, so that the second user can learn the historical records, which is convenient for the second user When the user conducts a conversation on behalf of the first user, the user can send accurate messages in combination with the conversation context, ensuring the consistency and accuracy of the messages, and effectively improving the practicability of the message interaction method. By prompting the other of the first user and the second user when one of the first user and the second user is inputting, it is possible to prevent the second user and the first user from inputting consistent messages and occupying resources for message interaction , improve the efficiency of message interaction, save the memory consumption of the server, and improve the performance of the message interaction system. By sending the message sent by the client of the second user as the message of the first user in the session of the first user, it is possible to add an agent in the message interaction of the instant messaging application program and effectively improve the user experience.

图5是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。Fig. 5 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图5,该消息交互方法可以包括:Referring to Figure 5, the message interaction method may include:

S501:生成第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。S501: Generate a first request, where the first request includes: a user identifier of a second user used to act as a proxy for the first user, and an identifier of a session where the first user is located.

本实施例的执行主体可以为第一用户的客户端。The execution subject of this embodiment may be the client of the first user.

可选地,第一用户的客户端可以根据第一用户的指令生成第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识,并将第一请求发送至服务器,以使服务器将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中。Optionally, the client of the first user may generate the first request according to the instruction of the first user, wherein the first request includes: the user identifier of the second user used to act as an agent for the first user, the ID of the session where the first user is ID, and send the first request to the server, so that the server sends the message sent by the client of the second user as the message of the first user in the session corresponding to the ID of the session.

在本发明的实施例中,用于代理第一用户的第二用户的用户标识可以唯一标识第二用户,可以由第一用户的客户端根据第一用户的指令获取得到,例如,第一用户可以在会话的界面中触发添加代理的按键,并在代理选择界面中选择需要作为代理的联系人,以触发客户端生成第一请求。In the embodiment of the present invention, the user identifier of the second user used to act as the proxy for the first user can uniquely identify the second user, and can be obtained by the client of the first user according to the instruction of the first user, for example, the first user The key to add an agent can be triggered in the interface of the conversation, and the contact that needs to be an agent can be selected in the agent selection interface, so as to trigger the client to generate the first request.

可选地,第一请求还包括用于标识第二用户是否可见的标识,第一用户的客户端可以根据第一用户的指令设置第二用户是否可见的标识。Optionally, the first request further includes an identifier for identifying whether the second user is visible, and the client of the first user may set the identifier for whether the second user is visible according to an instruction of the first user.

可选地,一些实施例中,在S501之前,还包括:Optionally, in some embodiments, before S501, further include:

S601:显示第一用户所在的会话的界面,其中,界面包括用于添加代理的按键。S601: Display an interface of the session where the first user is, where the interface includes a button for adding an agent.

参见图2,图2为本发明实施例中会话的聊天界面示意图,其中,图2包括添加代理的按键21、第一用户的消息22,以及会话对象的消息23。在第一用户有添加代理来代替自己与对方交互消息的需求时,可以点击图2中的添加代理的按键21,触发第一用户的客户端生成第一请求。Referring to FIG. 2 , FIG. 2 is a schematic diagram of a chat interface of a conversation in an embodiment of the present invention, wherein FIG. 2 includes a button 21 for adding an agent, a message 22 of the first user, and a message 23 of the conversation object. When the first user needs to add an agent to exchange messages with the other party instead of himself, he can click the button 21 of adding an agent in FIG. 2 to trigger the client of the first user to generate the first request.

S602:当按键被触发时,显示代理选择界面。S602: When the button is triggered, display an agent selection interface.

参见图7,图7为本发明实施例中聊天消息界面示意图,其中,图7包括添加代理的按键71和代理设置模块72,其中,用户可以点击添加代理的按键71来选择联系人作为代理,代理设置模块72用于使第一用户设置用于标识第二用户是否可见的标识。Referring to FIG. 7, FIG. 7 is a schematic diagram of a chat message interface in an embodiment of the present invention, wherein FIG. 7 includes a button 71 for adding an agent and an agent setting module 72, wherein the user can click the button 71 for adding an agent to select a contact as an agent, The proxy setting module 72 is used to enable the first user to set an identifier for identifying whether the second user is visible.

可选地,当标识为不可见时,将消息作为第一用户的消息发送在会话的标识对应的会话中;当标识为可见时,将消息作为第一用户代理的消息发送在会话的标识对应的会话中。Optionally, when the identifier is invisible, the message is sent as a message of the first user in the session corresponding to the identifier of the session; when the identifier is visible, the message is sent as a message of the first user agent in the session corresponding to the identifier of the session in the session.

参见图8,图8为本发明实施例中代理选择界面示意图,其中,图8包括联系人列表81和联系人选取框82。Referring to FIG. 8 , FIG. 8 is a schematic diagram of an agent selection interface in an embodiment of the present invention, wherein FIG. 8 includes a contact list 81 and a contact selection box 82 .

S603:接收第一用户在代理选择界面中选择的代理。S603: Receive an agent selected by the first user in the agent selection interface.

S502:将第一请求发送至服务器,以使服务器将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中。S502: Send the first request to the server, so that the server sends the message sent by the client of the second user as the message of the first user in the session corresponding to the session identifier.

在本发明的实施例中,第一客户端还可以接收第二用户的客户端发送的消息,并将消息发送在会话中,例如,在第二用户确认同意代理时,将第二用户的客户端发送的消息发送至第一用户的客户端。In the embodiment of the present invention, the first client can also receive the message sent by the second user's client, and send the message in the session, for example, when the second user confirms that he agrees to the proxy, the second user's client The message sent by the terminal is sent to the client terminal of the first user.

可选地,联系人列表可以为第一用户在即时通讯应用程序中预先添加的联系人,第一用户可以选取一个的联系人作为第二用户,客户端可以将第一用户选取的联系人的标识作为第二用户的用户标识,根据用户标识生成第一请求,或者,第一用户也可以选取N个联系人作为第N用户,并将N个联系人的标识作为第N用户的标识,根据第N用户的标识生成第一请求,对此不作限制。Optionally, the contact list can be contacts pre-added by the first user in the instant messaging application program, the first user can select a contact as the second user, and the client can use the contacts selected by the first user ID is used as the user ID of the second user, and the first request is generated according to the user ID, or the first user can also select N contacts as the Nth user, and use the IDs of the N contacts as the Nth user ID, according to The identification of the Nth user generates the first request, without limitation.

进一步,可选地,第一用户的客户端也可以获取第一用户所在的会话的标识,并将会话的标识作为第一请求的一部分,以将用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识发送至服务器。本实施例中,通过将第一请求发送至服务器,以使服务器将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。Further, optionally, the client of the first user may also acquire the session identifier of the first user, and use the session identifier as a part of the first request, so as to use The identifier and the identifier of the session where the first user is located are sent to the server. In this embodiment, by sending the first request to the server so that the server sends the message sent by the second user's client as the first user's message in the session corresponding to the session identifier, it can be implemented in instant messaging applications Agents are added to the message interaction of the program to effectively improve the user experience.

图9是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。Fig. 9 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图9,该消息交互方法可以包括:Referring to Figure 9, the message interaction method may include:

S901:接收代理指令,代理指令中携带有被代理的第一用户的用户标识、第一用户所在的会话标识,代理指令用于指示将第二用户作为第一用户的代理。S901: Receive a proxy instruction, the proxy instruction carries the user identifier of the first user to be proxied and the session identifier of the first user, and the proxy instruction is used to instruct the second user to be the proxy of the first user.

本实施例的执行主体可以为第二用户的客户端。The execution subject of this embodiment may be the client of the second user.

其中,第二用户为对第一用户进行代理的用户。第二用户的客户端为登录第二用户的账号的即时通讯类应用程序客户端。Wherein, the second user is a user acting as a proxy for the first user. The client of the second user is an instant messaging application client logged into the account of the second user.

在本发明的实施例中,第二用户为第一用户选择的用于代理第一用户的用户,第一用户的用户标识可以唯一标识第一用户,可以由第二用户的客户端根据代理指令获取得到。In the embodiment of the present invention, the second user is a user selected by the first user to act as a proxy for the first user, and the user identifier of the first user can uniquely identify the first user, and the client of the second user can Get it.

可选地,第二用户的客户端可以根据代理指令确认是否同意代理,当第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端,在第二用户不同意代理时,可以在第一用户的客户端侧对第一用户进行提示,以使第一用户可以选取其他联系人作为代理,有效提升消息交互方法的灵活性和适用性。Optionally, the client of the second user can confirm whether to agree to the proxy according to the proxy instruction, and when the second user confirms the response of the proxy, the historical session record of the session is sent to the client of the second user. When agreeing to proxy, the first user can be prompted on the client side of the first user, so that the first user can select another contact as a proxy, which effectively improves the flexibility and applicability of the message interaction method.

可选地,一些实施例中,参见图10,在S901之后,该消息交互方法还包括:S1001:接收服务器发送的请求,其中,请求用于使第二用户确认是否同意代理。Optionally, in some embodiments, referring to FIG. 10 , after S901, the message interaction method further includes: S1001: Receive a request sent by the server, where the request is used to make the second user confirm whether to agree to the proxy.

其中,第二用户为对第一用户进行代理的用户。第二用户的客户端为登录第二用户的账号的即时通讯类应用程序的客户端。Wherein, the second user is a user acting as a proxy for the first user. The client of the second user is a client of an instant messaging application that logs in the account of the second user.

在本发明的实施例中,在服务器检测到第二用户客户端后,可以将是否同意代理的请求发送至第二用户的客户端,第二用户的客户端可以接收服务器发送的请求。In the embodiment of the present invention, after the server detects the client of the second user, it may send a request whether to agree to the proxy to the client of the second user, and the client of the second user may receive the request sent by the server.

S1002:根据请求对第二用户进行提示,并接收第二用户的响应指令。S1002: Prompt the second user according to the request, and receive a response instruction from the second user.

可选地,可以生成提示消息,提示消息例如:第一用户邀请您代理!是否同意。由第二用户决定是否代理,第二用户可以在提示界面中输入响应指令。Optionally, a prompt message can be generated, for example: the first user invites you to act as an agent! agree or not. The second user decides whether to act as a proxy, and the second user can input a response instruction in the prompt interface.

S1003:根据第二用户的响应指令生成请求的响应,并将请求的响应发送至服务器,其中,请求的响应为第二用户确认同意或不同意代理的响应。S1003: Generate a response to the request according to the response instruction of the second user, and send the response to the request to the server, where the response to the request is a response for the second user to confirm that he or she agrees to the proxy.

S1004:接收服务器发送的会话的历史会话记录。S1004: Receive the historical session record of the session sent by the server.

在本发明的实施例中,当请求的响应为第二用户确认同意代理的响应时,将第二用户加入至会话的标识对应的会话中,服务器可以将读取到的第一用户所在的会话中的历史会话记录发送至第二用户的客户端,以使第二用户能够获知历史记录,便于第二用户在代言第一用户进行会话时,能够结合会话上下文发送准确的消息,保证消息的连贯性和准确性,有效提升消息交互方法的实用性。本实施例中,通过由第二用户确定是否同意代理,在第二用户不同意代理时,第一用户可以选取其他联系人作为代理,在第二用户同意代理时,接收第二用户的客户端发送的消息,有效提升消息交互方法的灵活性和适用性。In the embodiment of the present invention, when the response of the request is that the second user confirms that the agent agrees to the response, the second user is added to the session corresponding to the session identifier, and the server can read the session ID of the first user. Send the historical session records in the second user's client to the second user's client, so that the second user can learn the historical records, so that when the second user speaks for the first user in a session, the second user can send accurate messages in combination with the session context to ensure the consistency of the messages and accuracy, effectively improving the practicability of the message interaction method. In this embodiment, by determining whether the second user agrees to the proxy, when the second user does not agree to the proxy, the first user can select other contacts as the proxy, and when the second user agrees to the proxy, the second user's client The message sent effectively improves the flexibility and applicability of the message interaction method.

S902:接收第二用户输入的消息和用于发送消息的指令。S902: Receive a message input by a second user and an instruction for sending the message.

可选地,当第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端,以使第二用户能够获知历史记录,便于第二用户在代言第一用户进行会话时,能够结合会话上下文发送准确的消息,保证消息的连贯性和准确性,第二用户的客户端还可以接收第二用户输入的消息和用于发送消息的指令,以根据指令将消息发送至服务器,用于在会话中进行消息交互。Optionally, when the second user confirms that he or she agrees with the agent's response, the historical session record of the session is sent to the client of the second user, so that the second user can learn the historical record, so that the second user can carry out the process on behalf of the first user. During the conversation, accurate messages can be sent in combination with the conversation context to ensure the consistency and accuracy of the messages. The client of the second user can also receive the messages input by the second user and the instructions for sending the messages, so as to send the messages according to the instructions To the server for message exchange in the session.

S903:根据指令将消息发送至服务器,以使服务器将消息作为第一用户的消息发送在会话的标识对应的会话中。S903: Send the message to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the session identifier.

可选地,第二用户的客户端根据指令将消息发送至服务器,以使服务器将消息作为第一用户的消息发送在会话的标识对应的会话中。Optionally, the client of the second user sends the message to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the session identifier.

本实施例中,通过第二用户的客户端接收代理指令,接收第二用户输入的消息和用于发送消息的指令,根据指令将消息发送至服务器,以使服务器将消息作为第一用户的消息发送在会话的标识对应的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, the client of the second user receives the proxy instruction, receives the message input by the second user and the instruction for sending the message, and sends the message to the server according to the instruction, so that the server regards the message as the first user's message Sending in the session corresponding to the session identifier can effectively improve the flexibility and applicability of the message interaction method, realize adding an agent in the message interaction of the instant messaging application program, and effectively improve the user experience.

图11是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。Fig. 11 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图11,该消息交互方法可以包括:Referring to Figure 11, the message interaction method may include:

S1101:第一用户的客户端显示第一用户所在的会话的界面,其中,界面包括用于添加代理的按键。S1101: The client terminal of the first user displays an interface of the session where the first user is, where the interface includes a button for adding an agent.

本实施例以第一用户的客户端、第二用户的客户端,以及服务器之间的交互示例。This embodiment takes the interaction between the client of the first user, the client of the second user, and the server as an example.

S1102:当按键被触发时,第一用户的客户端显示代理选择界面。S1102: When the button is triggered, the client of the first user displays an agent selection interface.

S1103:第一用户的客户端接收第一用户在代理选择界面中选择的代理。S1103: The client of the first user receives the agent selected by the first user in the agent selection interface.

S1104:第一用户的客户端生成第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。S1104: The client of the first user generates a first request, where the first request includes: a user identifier of a second user used to act as a proxy for the first user, and an identifier of a session in which the first user is present.

S1105:第一用户的客户端将第一请求发送至服务器,以使服务器将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中。S1105: The client of the first user sends the first request to the server, so that the server sends the message sent by the client of the second user as the message of the first user in the session corresponding to the session identifier.

S1106:服务器接收第一用户的客户端发送的第一请求,其中,第一请求包括用于代理第一用户的第二用户的用户标识和第一用户所在的会话的标识。S1106: The server receives the first request sent by the client of the first user, where the first request includes the user identifier of the second user used to proxy the first user and the identifier of the session where the first user is.

S1107:服务器根据第二用户的用户标识向第二用户的客户端发送第二请求,其中,第二请求用于使第二用户确认是否同意代理。S1107: The server sends a second request to the client of the second user according to the user identifier of the second user, where the second request is used to make the second user confirm whether to agree to proxy.

S1108:第二用户的客户端接收服务器发送的第二请求,其中,第二请求用于使第二用户确认是否同意代理。S1108: The client of the second user receives a second request sent by the server, where the second request is used to make the second user confirm whether to agree to the proxy.

S1109:第二用户的客户端根据第二请求对第二用户进行提示,并接收第二用户的响应指令。S1109: The client terminal of the second user prompts the second user according to the second request, and receives a response instruction from the second user.

S1110:第二用户的客户端根据第二用户的响应指令生成第二用户确认同意或不同意代理的响应,并将第二用户确认同意或不同意代理的响应发送至服务器。S1110: The client terminal of the second user generates a response confirming the second user's approval or disapproval of the proxy according to the second user's response instruction, and sends the response of the second user's confirmation of approval or disapproval of the proxy to the server.

S1111:服务器在接收到第二用户确认同意代理的响应时,将第二用户加入至会话的标识对应的会话中。S1111: When the server receives a response from the second user confirming that he agrees to the proxy, add the second user to the session corresponding to the session identifier.

S1112:服务器将会话的历史会话记录发送至第二用户的客户端。S1112: The server sends the historical session record of the session to the client of the second user.

S1113:第二用户的客户端接收服务器发送的会话的历史会话记录。S1113: The client of the second user receives the historical session record of the session sent by the server.

S1114:第二用户的客户端显示会话的界面,并接收代理指令,代理指令中携带有被代理的第一用户的用户标识、第一用户所在的会话标识,代理指令用于指示将第二用户作为第一用户的代理。S1114: The client of the second user displays the interface of the session, and receives a proxy instruction, which carries the user ID of the first user to be proxied and the session ID of the first user, and the proxy instruction is used to instruct the second user to Acts as a proxy for the first user.

S1115:第二用户的客户端接收第二用户输入的消息和用于发送消息的指令。S1115: The client terminal of the second user receives the message input by the second user and the instruction for sending the message.

S1116:第二用户的客户端根据指令将消息发送至服务器。S1116: The client of the second user sends the message to the server according to the instruction.

S1117:服务器接收第二用户的客户端发送的消息,并将消息作为第一用户的消息发送在会话的标识对应的会话中。S1117: The server receives the message sent by the client of the second user, and sends the message as a message of the first user in the session corresponding to the session identifier.

S1118:当第一用户和第二用户中的一个用户进行输入时,向第一用户和第二用户中的另一个用户进行提示。S1118: When one of the first user and the second user makes an input, prompt the other of the first user and the second user.

本实施例的执行过程可以参见图1-图10所示的实施例,在此不再赘述。For the execution process of this embodiment, reference may be made to the embodiments shown in FIGS. 1-10 , and details are not repeated here.

本实施例中,通过向第二用户的客户端发送用于使第二用户确认是否同意代理的第二请求,由第二用户确定是否同意代理,在第二用户不同意代理时,第一用户可以选取其他联系人作为代理,在第二用户同意代理时,接收第二用户的客户端发送的消息,有效提升消息交互方法的灵活性和适用性。通过在服务器将第二用户加入至当前会话中时,可以读取当前会话中的历史记录,并将历史记录发送至第二用户的客户端,以使第二用户能够获知历史记录,便于第二用户在代言第一用户进行会话时,能够结合会话上下文发送准确的消息,保证消息的连贯性和准确性,有效提升消息交互方法的实用性。通过在第一用户和第二用户中的一个进行输入时,向第一用户和第二用户中的另一个进行提示,能够避免第二用户和第一用户输入一致的消息,占用消息交互的资源,提升消息交互的效率,并且能够节省服务器的内存消耗,提升消息交互系统性能。通过将第二用户客户端发送的消息作为第一用户的消息发送在第一用户所在的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending a second request to the client of the second user to confirm whether the second user agrees to the proxy, the second user determines whether to agree to the proxy. When the second user does not agree to the proxy, the first user Other contacts can be selected as agents, and when the second user agrees to act as an agent, the message sent by the client of the second user is received, which effectively improves the flexibility and applicability of the message interaction method. When the server adds the second user to the current session, it can read the historical records in the current session and send the historical records to the second user's client, so that the second user can learn the historical records, which is convenient for the second user When the user conducts a conversation on behalf of the first user, the user can send accurate messages in combination with the conversation context, ensuring the consistency and accuracy of the messages, and effectively improving the practicability of the message interaction method. By prompting the other of the first user and the second user when one of the first user and the second user is inputting, it is possible to prevent the second user and the first user from inputting consistent messages and occupying resources for message interaction , improve the efficiency of message interaction, save the memory consumption of the server, and improve the performance of the message interaction system. By sending the message sent by the client of the second user as the message of the first user in the session of the first user, it is possible to add an agent in the message interaction of the instant messaging application program and effectively improve the user experience.

图12是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。Fig. 12 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图12,该消息交互方法可以包括:Referring to Figure 12, the message interaction method may include:

S1201:根据第一用户选择的代理,生成代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。S1201: Generate proxy configuration information and a first request according to the proxy selected by the first user, where the first request includes: a user ID of a second user used to proxy the first user, and a session ID of the first user.

在本发明的实施例中,第一用户所在的会话为标识对应的会话,第二用户为第一用户选择的用于代理第一用户的用户。In the embodiment of the present invention, the session of the first user is a session corresponding to the identifier, and the second user is a user selected by the first user to represent the first user.

本实施例的执行主体可以为第一用户的客户端。The execution subject of this embodiment may be the client of the first user.

可选地,第一用户的客户端可以根据第一用户选择的代理,生成代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识,并将第一请求发送至第二用户的客户端,以将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中。Optionally, the client of the first user may generate proxy configuration information and the first request according to the proxy selected by the first user, where the first request includes: the user identifier of the second user used to proxy the first user, the second The first request is sent to the client of the second user, so that the message sent by the client of the second user is sent as the message of the first user in the session corresponding to the session identifier.

在本发明的实施例中,用于代理第一用户的第二用户的用户标识可以唯一标识第二用户,可以由第一用户的客户端根据第一用户的指令获取得到,例如,第一用户可以在会话的界面中触发添加代理的按键,并在代理选择界面中选择需要作为代理的联系人,以触发客户端生成代理配置信息和第一请求。In the embodiment of the present invention, the user identifier of the second user used to act as the proxy for the first user can uniquely identify the second user, and can be obtained by the client of the first user according to the instruction of the first user, for example, the first user The key to add an agent can be triggered in the interface of the session, and the contact that needs to be an agent can be selected in the agent selection interface, so as to trigger the client to generate the agent configuration information and the first request.

可选地,第一请求还包括用于标识第二用户是否可见的标识,第一用户的客户端可以根据第一用户的指令设置第二用户是否可见的标识。Optionally, the first request further includes an identifier for identifying whether the second user is visible, and the client of the first user may set the identifier for whether the second user is visible according to an instruction of the first user.

S1202:将代理配置信息和第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中。S1202: Send the proxy configuration information and the first request to the client of the second user, so that the client of the second user sends the message input by the second user as the message of the first user according to the proxy configuration information corresponding to the identifier of the session in the session.

在本发明的实施例中,当第二请求的响应为第二用户确认同意代理的响应时,将代理配置信息和第一请求发送至第二用户的客户端。In an embodiment of the present invention, when the response of the second request is that the second user confirms that he agrees to the proxy, the proxy configuration information and the first request are sent to the client of the second user.

可选地,联系人列表可以为第一用户在即时通讯应用程序中预先添加的联系人,第一用户可以选取一个的联系人作为第二用户,客户端可以将第一用户选取的联系人的标识作为第二用户的用户标识,根据选择的联系人和用户标识生成代理配置信息和第一请求,或者,第一用户也可以选取N个联系人作为第N用户,并将N个联系人的标识作为第N用户的标识,根据选择的N个联系人和第N用户的标识生成代理配置信息和第一请求,对此不作限制。Optionally, the contact list can be contacts pre-added by the first user in the instant messaging application program, the first user can select a contact as the second user, and the client can use the contacts selected by the first user ID is used as the user ID of the second user, and the agent configuration information and the first request are generated according to the selected contacts and user IDs, or, the first user can also select N contacts as the Nth user, and the N contacts' The identifier is used as the identifier of the Nth user, and the agent configuration information and the first request are generated according to the selected N contacts and the identifier of the Nth user, without limitation.

进一步,可选地,第一用户的客户端也可以获取第一用户所在的会话的标识,并将会话的标识作为第一请求的一部分,以将用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识和代理配置信息发送至第二用户的客户端。Further, optionally, the client of the first user may also acquire the session identifier of the first user, and use the session identifier as a part of the first request, so as to use The identifier, the identifier of the session where the first user is located, and proxy configuration information are sent to the client of the second user.

本实施例中,通过将代理配置信息和第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending the proxy configuration information and the first request to the client of the second user, the client of the second user sends the message input by the second user as the message of the first user according to the proxy configuration information. In the session corresponding to the session identifier, an agent can be added in the message interaction of the instant messaging application program, effectively improving the user experience.

图13是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。Fig. 13 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图13,该消息交互方法可以包括:Referring to Figure 13, the message interaction method may include:

S1301:显示第一用户所在的会话的界面,其中,界面包括用于添加代理的按键。S1301: Display an interface of the session where the first user is, where the interface includes a button for adding an agent.

参见图2,图2为本发明实施例中第一用户所在的会话的聊天界面示意图,其中,图2包括代理添加按键21、第一用户的消息22,以及第一用户所在的会话的会话对象的消息23。在第一用户有添加代理来代替自己与对方交互消息的需求时,可以点击图2中的代理添加按键21,触发第一用户的客户端第一用户选择的代理,生成代理配置信息和第一请求。Referring to Fig. 2, Fig. 2 is a schematic diagram of the chat interface of the session where the first user is in the embodiment of the present invention, wherein Fig. 2 includes an agent adding button 21, a message 22 of the first user, and a session object of the session where the first user is in News 23. When the first user needs to add an agent instead of interacting with the other party, he can click the agent addition button 21 in FIG. ask.

S1302:当按键被触发时,显示代理选择界面。S1302: When the button is triggered, an agent selection interface is displayed.

参见图7,图7为本发明实施例中聊天消息界面示意图,其中,图7包括添加代理的按键71和代理设置模块72,其中,用户可以点击添加代理的按键71来选择联系人作为代理,代理设置模块72用于使第一用户设置用于标识第二用户是否可见的标识。Referring to FIG. 7, FIG. 7 is a schematic diagram of a chat message interface in an embodiment of the present invention, wherein FIG. 7 includes a button 71 for adding an agent and an agent setting module 72, wherein the user can click the button 71 for adding an agent to select a contact as an agent, The proxy setting module 72 is used to enable the first user to set an identifier for identifying whether the second user is visible.

可选地,当标识为不可见时,将消息作为第一用户的消息发送在会话的标识对应的会话中;当标识为可见时,将消息作为第一用户代理的消息发送在会话的标识对应的会话中。Optionally, when the identifier is invisible, the message is sent as a message of the first user in the session corresponding to the identifier of the session; when the identifier is visible, the message is sent as a message of the first user agent in the session corresponding to the identifier of the session in the session.

S1303:接收第一用户在代理选择界面中选择的代理。S1303: Receive an agent selected by the first user in the agent selection interface.

参见图8,图8为本发明实施例中代理选择界面示意图,其中,图8包括联系人列表81和联系人选取框82。Referring to FIG. 8 , FIG. 8 is a schematic diagram of an agent selection interface in an embodiment of the present invention, wherein FIG. 8 includes a contact list 81 and a contact selection box 82 .

S1304:根据第一用户选择的代理,生成代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。S1304: Generate proxy configuration information and a first request according to the proxy selected by the first user, where the first request includes: a user ID of the second user used to proxy the first user, and a session ID of the first user.

在本发明的实施例中,第一用户所在的会话为标识对应的会话,第二用户为第一用户选择的用于代理第一用户的用户。In the embodiment of the present invention, the session of the first user is a session corresponding to the identifier, and the second user is a user selected by the first user to represent the first user.

可选地,第一用户的客户端可以根据第一用户选择的代理,生成代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识,并将第一请求发送至第二用户的客户端,以将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中。Optionally, the client of the first user may generate proxy configuration information and the first request according to the proxy selected by the first user, where the first request includes: the user identifier of the second user used to proxy the first user, the second The first request is sent to the client of the second user, so that the message sent by the client of the second user is sent as the message of the first user in the session corresponding to the session identifier.

在本发明的实施例中,用于代理第一用户的第二用户的用户标识可以唯一标识第二用户,可以由第一用户的客户端根据第一用户的指令获取得到,例如,第一用户可以在会话的界面中触发添加代理的按键,并在代理选择界面中选择需要作为代理的联系人,以触发客户端生成代理配置信息和第一请求。In the embodiment of the present invention, the user identifier of the second user used to act as the proxy for the first user can uniquely identify the second user, and can be obtained by the client of the first user according to the instruction of the first user, for example, the first user The key to add an agent can be triggered in the interface of the session, and the contact that needs to be an agent can be selected in the agent selection interface, so as to trigger the client to generate the agent configuration information and the first request.

可选地,第一请求还包括用于标识第二用户是否可见的标识,第一用户的客户端可以根据第一用户的指令设置第二用户是否可见的标识。Optionally, the first request further includes an identifier for identifying whether the second user is visible, and the client of the first user may set the identifier for whether the second user is visible according to an instruction of the first user.

S1305:根据第二用户的用户标识向第二用户的客户端发送第二请求,其中,第二请求用于使第二用户确认是否同意代理。S1305: Send a second request to the client of the second user according to the user identifier of the second user, where the second request is used to make the second user confirm whether to agree to proxy.

在本发明的实施例中,第一用户的客户端在发送第一请求时,会读取第一请求中的第二用户的用户标识,并根据用户标识向第二用户的客户端发送用于使第二用户确认是否同意代理的第二请求。In the embodiment of the present invention, when sending the first request, the client of the first user will read the user ID of the second user in the first request, and send the client of the second user according to the user ID to the client of the second user. Make the second user confirm whether to agree to the proxy's second request.

S1306:接收第二用户的客户端发送的第二请求的响应,其中,第二请求的响应为第二用户确认同意或不同意代理的响应。S1306: Receive a response to the second request sent by the client of the second user, where the response to the second request is a response in which the second user confirms that he or she agrees to the proxy.

在本发明的实施例中,在检测到第二用户的客户端后,可以将第二请求发送至第二用户的客户端,并在第二用户确认同意代理时,将第二用户加入至当前会话,或者,在第二用户确认同意代理时,将第二用户的客户端发送的消息发送至第一用户的客户端,对此不作限制。In the embodiment of the present invention, after the client of the second user is detected, a second request can be sent to the client of the second user, and when the second user confirms that he agrees to the proxy, the second user will be added to the current session, or, when the second user confirms consent to the proxy, sending a message sent by the second user's client to the first user's client, without limitation.

可以理解的是,第二请求的响应包括第二用户确认同意代理的响应,和第二用户确认不同意代理的响应,第二用户的客户端在接收到服务器发送的第二请求时,可以根据第二请求对第二用户进行提示,并接收第二用户的响应指令,根据第二用户的响应指令生成第二用户确认同意或不同意代理的响应,并将第二用户确认同意或不同意代理的响应发送至第一用户的客户端。It can be understood that the response to the second request includes the response of the second user confirming that he agrees to the proxy, and the response of the second user confirming that he does not agree to the proxy. When the client of the second user receives the second request sent by the server, The second request prompts the second user, and receives the second user's response instruction, generates a response for the second user to confirm whether or not to agree to the proxy according to the second user's response command, and confirms that the second user agrees or disagrees with the proxy A response is sent to the first user's client.

S1307:当第二请求的响应为第二用户确认不同意代理的响应时,生成提示信息,根据提示信息对第一用户进行提示。S1307: When the response of the second request is that the second user confirms that he does not agree to the proxy, generate prompt information, and prompt the first user according to the prompt information.

可选地,在第二用户不同意代理时,可以在第一用户的客户端侧对第一用户进行提示,以使第一用户可以选取其他联系人作为代理,有效提升消息交互方法的灵活性和适用性。Optionally, when the second user disagrees with the proxy, the first user can be prompted on the client side of the first user, so that the first user can select another contact as the proxy, effectively improving the flexibility of the message interaction method and applicability.

S1308:当第二请求的响应为第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端。S1308: When the response of the second request is a response of the second user confirming that the proxy is accepted, send the historical session record of the session to the client of the second user.

S1309:当第二请求的响应为第二用户确认同意代理的响应时,将代理配置信息和第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中。S1309: When the response to the second request is that the second user confirms that he agrees to the proxy, send the proxy configuration information and the first request to the second user's client, so that the second user's client sends the proxy configuration information to the second user's client. The message input by the second user is sent as the message of the first user in the session corresponding to the session identifier.

可选地,当第二请求的响应为第二用户确认同意代理的响应时,将代理配置信息和第一请求发送至第二用户的客户端,可以根据第二用户的用户标识,确定第二用户为第一用户的代理,其中,第二用户为第一用户选择的用于代理第一用户的用户,用于代理第一用户的第二用户的用户标识可以唯一标识第二用户,可以根据第二用户的用户标识,确定第二用户为第一用户的代理,将第二用户加入至会话的标识对应的会话中。Optionally, when the response of the second request is that the second user confirms that he agrees to the proxy, the proxy configuration information and the first request are sent to the client of the second user, and the second user can be determined according to the user identifier of the second user. The user is the agent of the first user, wherein the second user is the user selected by the first user to act as the agent of the first user, and the user identifier of the second user used to act as the agent of the first user can uniquely identify the second user, and can be based on The user identifier of the second user determines that the second user is the proxy of the first user, and adds the second user to the session corresponding to the session identifier.

在本发明的实施例中,第二用户的客户端输入的消息可以为会话消息,用于在会话中进行消息交互。In the embodiment of the present invention, the message input by the client of the second user may be a session message, which is used for message interaction in the session.

可选地,将第二用户的客户端输入的消息作为第一用户的消息发送在会话的标识对应的会话中之后,包括:当标识为不可见时,在会话中不提示第一用户的消息为代理的消息;当标识为可见时,在会话中提示第一用户的消息为代理的消息。Optionally, after sending the message input by the second user's client as the first user's message in the session corresponding to the session identifier, it includes: when the identifier is invisible, not prompting the first user's message in the session It is the message of the agent; when the flag is visible, the first user is prompted in the conversation that the message is the message of the agent.

可以理解的是,当第一用户有添加代理来代替自己与对方交互消息的需求,且需要隐藏代理的身份信息时,可以设置第二用户不可见,而当第一用户不需要隐藏代理的身份信息时,可以设置第二用户可见,对此不作限制。It is understandable that when the first user needs to add an agent to replace himself and exchange messages with the other party, and needs to hide the identity information of the agent, the second user can be set invisible, and when the first user does not need to hide the identity of the agent Information can be set to be visible to the second user, without limitation.

本实施例中,通过向第二用户的客户端发送用于使第二用户确认是否同意代理的第二请求,由第二用户确定是否同意代理,在第二用户不同意代理时,第一用户可以选取其他联系人作为代理,在第二用户同意代理时,接收第二用户的客户端发送的消息,有效提升消息交互方法的灵活性和适用性。通过将代理配置信息和第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending a second request to the client of the second user to confirm whether the second user agrees to the proxy, the second user determines whether to agree to the proxy. When the second user does not agree to the proxy, the first user Other contacts can be selected as agents, and when the second user agrees to act as an agent, the message sent by the client of the second user is received, which effectively improves the flexibility and applicability of the message interaction method. By sending the proxy configuration information and the first request to the client of the second user, the client of the second user sends the message input by the second user as the message of the first user according to the proxy configuration information to the session identifier corresponding to the In the session, it is possible to add an agent in the message interaction of the instant messaging application, effectively improving the user experience.

图14是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。Fig. 14 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图14,该消息交互方法可以包括:Referring to Figure 14, the message interaction method may include:

S1401:接收第一用户的客户端发送的代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。S1401: Receive proxy configuration information and a first request sent by the client of the first user, where the first request includes: a user ID of a second user used to proxy the first user, and an ID of a session where the first user is.

本实施例的执行主体可以为第二用户的客户端。The execution subject of this embodiment may be the client of the second user.

其中,第二用户为对第一用户进行代理的用户。第二用户的客户端为登录第二用户的账号的即时通讯类应用程序客户端。Wherein, the second user is a user acting as a proxy for the first user. The client of the second user is an instant messaging application client logged into the account of the second user.

在本发明的实施例中,第二用户为第一用户选择的用于代理第一用户的用户,第一用户的用户标识可以唯一标识第一用户,可以由第二用户的客户端根据代理指令获取得到。In the embodiment of the present invention, the second user is a user selected by the first user to act as a proxy for the first user, and the user identifier of the first user can uniquely identify the first user, and the client of the second user can Get it.

可选地,第二用户的客户端可以根据代理指令确认是否同意代理,当第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端,在第二用户不同意代理时,可以在第一用户的客户端侧对第一用户进行提示,以使第一用户可以选取其他联系人作为代理,有效提升消息交互方法的灵活性和适用性。Optionally, the client of the second user can confirm whether to agree to the proxy according to the proxy instruction, and when the second user confirms the response of the proxy, the historical session record of the session is sent to the client of the second user. When agreeing to proxy, the first user can be prompted on the client side of the first user, so that the first user can select another contact as a proxy, which effectively improves the flexibility and applicability of the message interaction method.

S1402:接收第二用户输入的消息和用于发送消息的指令。S1402: Receive a message input by the second user and an instruction for sending the message.

可选地,当第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端,以使第二用户能够获知历史记录,便于第二用户在代言第一用户进行会话时,能够结合会话上下文发送准确的消息,保证消息的连贯性和准确性,第二用户的客户端还可以接收第二用户输入的消息和用于发送消息的指令,以根据指令将消息发送至第一用户的客户端,用于在会话中进行消息交互。Optionally, when the second user confirms that he or she agrees with the agent's response, the historical session record of the session is sent to the client of the second user, so that the second user can learn the historical record, so that the second user can carry out the process on behalf of the first user. During the conversation, accurate messages can be sent in combination with the conversation context to ensure the consistency and accuracy of the messages. The client of the second user can also receive the messages input by the second user and the instructions for sending the messages, so as to send the messages according to the instructions To the client of the first user, for message exchange in the session.

S1403:根据代理配置信息将消息发送在第一用户所在的会话中。S1403: Send the message in the session of the first user according to the proxy configuration information.

可选地,第二用户的客户端根据代理配置信息将消息发送至第一用户的客户端,以使第一用户的客户端将消息作为第一用户的消息发送在会话的标识对应的会话中。Optionally, the second user's client sends the message to the first user's client according to the proxy configuration information, so that the first user's client sends the message as the first user's message in the session corresponding to the session identifier .

本实施例中,通过接收第一用户的客户端发送的代理配置信息和第一请求,当第二用户确认同意代理的响应时,接收第二用户输入的消息和用于发送消息的指令,根据代理配置信息将消息发送在第一用户所在的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by receiving the proxy configuration information and the first request sent by the client of the first user, when the second user confirms that he agrees with the response of the proxy, the message input by the second user and the instruction for sending the message are received, according to The agent configuration information sends the message in the session of the first user, which can effectively improve the flexibility and applicability of the message interaction method, realize adding an agent in the message interaction of the instant messaging application program, and effectively improve the user experience.

图15是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。Fig. 15 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图15,该消息交互方法可以包括:Referring to Figure 15, the message interaction method may include:

S1501:接收第一用户的客户端发送的第二请求,其中,第二请求用于使第二用户确认是否同意代理。S1501: Receive a second request sent by the client of the first user, where the second request is used to make the second user confirm whether to agree to proxy.

其中,第二用户为对第一用户进行代理的用户。第二用户的客户端为登录第二用户的账号的即时通讯类应用程序的客户端。Wherein, the second user is a user acting as a proxy for the first user. The client of the second user is a client of an instant messaging application that logs in the account of the second user.

在本发明的实施例中,在第一用户的客户端检测到第二用户客户端后,可以将是否同意代理的第二请求发送至第二用户的客户端,第二用户的客户端可以接收第一用户的客户端发送的第二请求。In an embodiment of the present invention, after the client of the first user detects the client of the second user, it can send the second request whether to agree to the proxy to the client of the second user, and the client of the second user can receive The second request sent by the client of the first user.

S1502:根据第二请求对第二用户进行提示,并接收第二用户的响应指令。S1502: Prompt the second user according to the second request, and receive a response instruction from the second user.

可选地,可以生成提示消息,提示消息例如:第一用户邀请您代理!是否同意。由第二用户决定是否代理,第二用户可以在提示界面中输入响应指令。Optionally, a prompt message can be generated, for example: the first user invites you to act as an agent! agree or not. The second user decides whether to act as a proxy, and the second user can input a response instruction in the prompt interface.

S1503:根据第二用户的响应指令生成第二请求的响应,并将第二请求的响应发送至第一用户的客户端,其中,第二请求的响应为第二用户确认同意或不同意代理的响应。S1503: Generate a response to the second request according to the response instruction of the second user, and send the response to the second request to the client of the first user, wherein the response to the second request is the second user confirming whether to agree to the proxy or not response.

在本发明的实施例中,第二请求的响应为所述第二用户确认同意或不同意代理的响应,当所述第二请求的响应为所述第二用户确认同意代理的响应时,则执行根据所述第二用户的用户标识,确定所述第二用户为所述第一用户的代理。In an embodiment of the present invention, the response to the second request is the response of the second user confirming that he or she agrees with the proxy, and when the response of the second request is the response of the second user confirming that he agrees with the proxy, then Determining the second user as the proxy of the first user according to the user identifier of the second user is performed.

S1504:在第二用户确认同意代理之后,接收第一用户的客户端发送的会话的历史会话记录。S1504: After the second user confirms that he agrees to the proxy, receive the historical session record of the session sent by the client of the first user.

在本发明的实施例中,当请求的响应为第二用户确认同意代理的响应时,将第二用户加入至会话的标识对应的会话中,第一用户的客户端将第一用户所在的会话中的历史会话记录发送至第二用户的客户端,以使第二用户能够获知历史记录,便于第二用户在代言第一用户进行会话时,能够结合会话上下文发送准确的消息,保证消息的连贯性和准确性,有效提升消息交互方法的实用性。In the embodiment of the present invention, when the response of the request is that the second user confirms that the agent agrees to the response, the second user is added to the session corresponding to the session identifier, and the client of the first user adds the session of the first user to Send the historical session records in the second user's client to the second user's client, so that the second user can learn the historical records, so that when the second user speaks for the first user in a session, the second user can send accurate messages in combination with the session context to ensure the consistency of the messages and accuracy, effectively improving the practicability of the message interaction method.

S1505:接收第一用户的客户端发送的代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。S1505: Receive proxy configuration information and a first request sent by the client of the first user, where the first request includes: a user ID of a second user used to proxy the first user, and an ID of a session where the first user is.

其中,第二用户为对第一用户进行代理的用户。第二用户的客户端为登录第二用户的账号的即时通讯类应用程序客户端。Wherein, the second user is a user acting as a proxy for the first user. The client of the second user is an instant messaging application client logged into the account of the second user.

在本发明的实施例中,第二用户为第一用户选择的用于代理第一用户的用户,第一用户的用户标识可以唯一标识第一用户,可以由第二用户的客户端根据代理指令获取得到。In the embodiment of the present invention, the second user is a user selected by the first user to act as a proxy for the first user, and the user identifier of the first user can uniquely identify the first user, and the client of the second user can Get it.

可选地,第二用户的客户端可以根据代理指令确认是否同意代理,当第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端,在第二用户不同意代理时,可以在第一用户的客户端侧对第一用户进行提示,以使第一用户可以选取其他联系人作为代理,有效提升消息交互方法的灵活性和适用性。Optionally, the client of the second user can confirm whether to agree to the proxy according to the proxy instruction, and when the second user confirms the response of the proxy, the historical session record of the session is sent to the client of the second user. When agreeing to proxy, the first user can be prompted on the client side of the first user, so that the first user can select another contact as a proxy, which effectively improves the flexibility and applicability of the message interaction method.

S1506:接收第二用户输入的消息和用于发送消息的指令。S1506: Receive a message input by the second user and an instruction for sending the message.

可选地,当第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端,以使第二用户能够获知历史记录,便于第二用户在代言第一用户进行会话时,能够结合会话上下文发送准确的消息,保证消息的连贯性和准确性,第二用户的客户端还可以接收第二用户输入的消息和用于发送消息的指令,以根据指令将消息发送至服务器,用于在会话中进行消息交互。Optionally, when the second user confirms that he or she agrees with the agent's response, the historical session record of the session is sent to the client of the second user, so that the second user can learn the historical record, so that the second user can carry out the process on behalf of the first user. During the conversation, accurate messages can be sent in combination with the conversation context to ensure the consistency and accuracy of the messages. The client of the second user can also receive the messages input by the second user and the instructions for sending the messages, so as to send the messages according to the instructions To the server for message exchange in the session.

S1507:根据代理配置信息将消息发送在第一用户所在的会话中。S1507: Send the message in the session of the first user according to the proxy configuration information.

在本发明的实施例中,第一请求还包括用于标识第二用户是否可见的标识,当标识为不可见时,在会话中不提示第一用户的消息为代理的消息;当标识为可见时,在会话中提示第一用户的消息为代理的消息。In an embodiment of the present invention, the first request further includes an identifier for identifying whether the second user is visible, and when the identifier is invisible, the message of the first user is not prompted in the conversation as an agent message; when the identifier is visible , prompting the message of the first user in the conversation is the message of the agent.

可以理解的是,当第一用户有添加代理来代替自己与对方交互消息的需求,且需要隐藏代理的身份信息时,可以设置第二用户不可见,而当第一用户不需要隐藏代理的身份信息时,可以设置第二用户可见,对此不作限制。It is understandable that when the first user needs to add an agent to replace himself and exchange messages with the other party, and needs to hide the identity information of the agent, the second user can be set invisible, and when the first user does not need to hide the identity of the agent Information can be set to be visible to the second user, without limitation.

可选地,第二用户的客户端根据代理配置信息将消息发送至第一用户的客户端,以使第一用户的客户端将消息作为第一用户的消息发送在会话的标识对应的会话中。Optionally, the second user's client sends the message to the first user's client according to the proxy configuration information, so that the first user's client sends the message as the first user's message in the session corresponding to the session identifier .

本实施例中,通过在第二用户确认同意代理之后,接收第一用户的客户端发送的会话的历史会话记录,能够便于第二用户在代言第一用户进行会话时,结合会话上下文发送准确的消息,保证消息的连贯性和准确性,有效提升消息交互方法的实用性。通过接收第二用户输入的消息和用于发送消息的指令,根据指令将消息发送至服务器,以使服务器将消息作为第一用户的消息发送在会话的标识对应的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。图16是本发明另一实施例提出的消息交互方法的流程示意图。本实施例以该消息交互方法被配置为消息交互装置中来举例说明。In this embodiment, by receiving the historical session record of the session sent by the client of the first user after the second user confirms that he agrees to the proxy, it is convenient for the second user to send accurate information in combination with the session context when the first user conducts a session on behalf of the first user. Messages ensure the consistency and accuracy of messages and effectively improve the practicability of message interaction methods. By receiving the message input by the second user and the instruction for sending the message, the message is sent to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the session identifier, which can effectively improve message interaction The flexibility and applicability of the method realize adding an agent in the message interaction of the instant messaging application program, and effectively improve the user experience. Fig. 16 is a schematic flowchart of a message interaction method proposed by another embodiment of the present invention. This embodiment is described by taking the message interaction method configured in a message interaction device as an example.

参见图16,该消息交互方法可以包括:Referring to Figure 16, the message interaction method may include:

S1601:第一用户的客户端显示第一用户所在的会话的界面,其中,界面包括用于添加代理的按键。S1601: The client terminal of the first user displays an interface of the session where the first user is, where the interface includes a button for adding an agent.

S1602:当按键被触发时,显示代理选择界面。S1602: When the button is triggered, an agent selection interface is displayed.

S1603:第一用户的客户端接收第一用户在代理选择界面中选择的代理。S1603: The client of the first user receives the agent selected by the first user in the agent selection interface.

S1604:第一用户的客户端根据第一用户选择的代理,生成代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。S1604: The client of the first user generates proxy configuration information and a first request according to the proxy selected by the first user, wherein the first request includes: the user ID of the second user used to proxy the first user, the location of the first user The ID of the session.

S1605:第一用户的客户端根据第二用户的用户标识向第二用户的客户端发送第二请求,其中,第二请求用于使第二用户确认是否同意代理。S1605: The client terminal of the first user sends a second request to the client terminal of the second user according to the user identifier of the second user, where the second request is used to make the second user confirm whether to agree to proxy.

S1606:第二用户的客户端接收第一用户的客户端发送的第二请求,其中,第二请求用于使第二用户确认是否同意代理。S1606: The client terminal of the second user receives the second request sent by the client terminal of the first user, where the second request is used to make the second user confirm whether to agree to the proxy.

S1607:第二用户的客户端根据第二请求对第二用户进行提示,并接收第二用户的响应指令。S1607: The client terminal of the second user prompts the second user according to the second request, and receives a response instruction from the second user.

S1608:第二用户的客户端根据第二用户的响应指令生成第二请求的响应,并将第二请求的响应发送至第一用户的客户端,其中,第二请求的响应为第二用户确认同意或不同意代理的响应。S1608: The client of the second user generates a response to the second request according to the response instruction of the second user, and sends the response to the second request to the client of the first user, wherein the response to the second request is the confirmation of the second user Agree or disagree with the agent's response.

S1609:第一用户的客户端接收第二用户的客户端确认同意代理的响应。S1609: The client of the first user receives a response from the client of the second user confirming that it agrees to the proxy.

S1610:第一用户的客户端将会话的历史会话记录、代理配置信息及第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中。S1610: The client of the first user sends the historical session record of the session, the proxy configuration information and the first request to the client of the second user, so that the client of the second user sends the message input by the second user according to the proxy configuration information The message sent as the first user is sent in the session corresponding to the session identifier.

S1611:第二用户的客户端接收第一用户的客户端发送的会话的历史会话记录、代理配置信息及第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。S1611: The client of the second user receives the historical session record, proxy configuration information, and the first request of the session sent by the client of the first user, wherein the first request includes: the user of the second user used to proxy the first user ID, the ID of the session that the first user is in.

S1612:第二用户的客户端接收第二用户输入的消息和用于发送消息的指令。S1612: The client terminal of the second user receives the message input by the second user and an instruction for sending the message.

S1613:第二用户的客户端根据代理配置信息将消息发送在第一用户所在的会话中。S1613: The client of the second user sends the message in the session of the first user according to the proxy configuration information.

本实施例的执行过程可以参见图12-图15所示的实施例,在此不再赘述。For the execution process of this embodiment, reference may be made to the embodiments shown in FIGS. 12-15 , and details are not repeated here.

本实施例中,通过向第二用户的客户端发送用于使第二用户确认是否同意代理的第二请求,由第二用户确定是否同意代理,在第二用户不同意代理时,第一用户可以选取其他联系人作为代理,在第二用户同意代理时,接收第二用户的客户端发送的消息,有效提升消息交互方法的灵活性和适用性。通过在第二用户确认同意代理之后,接收第一用户的客户端发送的会话的历史会话记录,能够便于第二用户在代言第一用户进行会话时,结合会话上下文发送准确的消息,保证消息的连贯性和准确性,有效提升消息交互方法的实用性。通过接收第二用户输入的消息和用于发送消息的指令,根据指令将消息发送至服务器,以使服务器将消息作为第一用户的消息发送在会话的标识对应的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending a second request to the client of the second user to confirm whether the second user agrees to the proxy, the second user determines whether to agree to the proxy. When the second user does not agree to the proxy, the first user Other contacts can be selected as agents, and when the second user agrees to act as an agent, the message sent by the client of the second user is received, which effectively improves the flexibility and applicability of the message interaction method. After the second user confirms that he agrees to the proxy, he receives the historical session record of the session sent by the first user's client, which can facilitate the second user to send accurate messages in combination with the session context when acting on behalf of the first user for a session, ensuring the authenticity of the message. Consistency and accuracy, effectively improving the practicability of the message interaction method. By receiving the message input by the second user and the instruction for sending the message, the message is sent to the server according to the instruction, so that the server sends the message as the message of the first user in the session corresponding to the session identifier, which can effectively improve message interaction The flexibility and applicability of the method realize adding an agent in the message interaction of the instant messaging application program, and effectively improve the user experience.

图17是本发明另一实施例提出的消息交互装置的结构示意图。该消息交互装置可以通过软件、硬件或者两者的结合实现。Fig. 17 is a schematic structural diagram of a message interaction device according to another embodiment of the present invention. The message interaction device can be realized by software, hardware or a combination of both.

参见图17,该消息交互装置170可以包括:第一请求接收模块1701、确定模块1702、消息接收模块1703,以及第一消息发送模块1704。Referring to FIG. 17 , the message interaction device 170 may include: a first request receiving module 1701 , a determining module 1702 , a message receiving module 1703 , and a first message sending module 1704 .

第一请求接收模块1701,用于接收第一用户的客户端发送的第一请求,其中,第一请求包括用于代理第一用户的第二用户的用户标识和第一用户所在的会话的标识。The first request receiving module 1701 is configured to receive the first request sent by the client of the first user, where the first request includes the user identifier of the second user used to act as an agent for the first user and the identifier of the session where the first user is located .

可选地,第二用户为第一用户选择的用于代理第一用户的用户。Optionally, the second user is a user selected by the first user to represent the first user.

确定模块1702,用于根据所述第二用户的用户标识,确定所述第二用户为所述第一用户的代理。A determining module 1702, configured to determine, according to the user identifier of the second user, that the second user is the proxy of the first user.

消息接收模块1703,用于接收第二用户的客户端发送的消息。A message receiving module 1703, configured to receive a message sent by the client of the second user.

第一消息发送模块1704,用于将消息作为第一用户的消息发送在会话的标识对应的会话中。The first message sending module 1704 is configured to send the message as a message of the first user in the session corresponding to the session identifier.

可选地,一些实施例中,参见图18,该消息交互装置170还可以包括:Optionally, in some embodiments, referring to FIG. 18, the message interaction device 170 may also include:

可选地,第一请求还包括用于标识所述第二用户是否可见的标识。Optionally, the first request further includes an identifier for identifying whether the second user is visible.

第一提示模块1705,用于在所述标识为不可见时,在所述会话中不提示所述第一用户的消息为代理的消息;在所述标识为可见时,在所述会话中提示所述第一用户的消息为代理的消息。The first prompting module 1705 is configured to not prompt in the conversation that the first user's message is an agent's message when the logo is invisible; to prompt in the conversation when the logo is visible The first user's message is an agent's message.

第一请求发送模块1706,用于根据所述第二用户的用户标识向所述第二用户的客户端发送第二请求,其中,所述第二请求用于使所述第二用户确认是否同意代理。A first request sending module 1706, configured to send a second request to the client of the second user according to the user identifier of the second user, wherein the second request is used to make the second user confirm whether to agree acting.

第一响应接收模块1707,用于接收所述第二用户的客户端发送的所述第二请求的响应,其中,所述第二请求的响应为所述第二用户确认同意或不同意代理的响应,当所述第二请求的响应为所述第二用户确认同意代理的响应时,则执行根据所述第二用户的用户标识,确定所述第二用户为所述第一用户的代理。The first response receiving module 1707 is configured to receive a response to the second request sent by the client of the second user, wherein the response to the second request is the second user's confirmation of agreeing or not agreeing to the proxy Response, when the response of the second request is the response of the second user confirming that he agrees to the proxy, then determine that the second user is the proxy of the first user according to the user identifier of the second user.

第一历史记录发送模块1708,用于在所述第二请求的响应为所述第二用户确认同意代理的响应时,将所述会话的历史会话记录发送至所述第二用户的客户端。The first historical record sending module 1708 is configured to send the historical session record of the session to the client of the second user when the response of the second request is the response of the second user confirming the consent of the agent.

第一提示信息发送模块1709,用于在所述第二请求的响应为所述第二用户确认不同意代理的响应时,生成提示信息,并将所述提示信息发送至所述第一用户的客户端。The first prompt information sending module 1709, configured to generate prompt information when the response of the second request is that the second user confirms that the agent does not agree with the response, and send the prompt information to the first user's client.

第二提示模块1710,用于在所述第一用户和所述第二用户中的一个用户进行输入时,向所述第一用户和所述第二用户中的另一个用户进行提示。The second prompting module 1710 is configured to prompt the other of the first user and the second user when one of the first user and the second user makes an input.

需要说明的是,前述图1-图4实施例中对消息交互方法实施例的解释说明也适用于该实施例的消息交互装置,其实现原理类似,此处不再赘述。It should be noted that the explanations of the message interaction method embodiment in the foregoing embodiments in FIGS. 1-4 are also applicable to the message interaction device in this embodiment, and its implementation principles are similar, so details are not repeated here.

本实施例中,通过将第二用户的客户端发送的消息作为第一用户的消息发送在第一用户所在的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending the message sent by the client of the second user as the message of the first user in the session where the first user is located, it is possible to add an agent in the message interaction of the instant messaging application program, effectively improving user use experience.

图19是本发明另一实施例提出的消息交互装置的结构示意图。该消息交互装置可以通过软件、硬件或者两者的结合实现。Fig. 19 is a schematic structural diagram of a message interaction device according to another embodiment of the present invention. The message interaction device can be realized by software, hardware or a combination of both.

参见图19,该消息交互装置190可以包括:第一生成模块1901和第一发送模块1902。Referring to FIG. 19 , the message interaction device 190 may include: a first generating module 1901 and a first sending module 1902 .

第一生成模块1901,用于生成第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。The first generating module 1901 is configured to generate a first request, where the first request includes: a user identifier of a second user acting as an agent for the first user, and an identifier of a session where the first user is present.

第一发送模块1902,用于将第一请求发送至服务器,以使服务器将第二用户的客户端发送的消息作为第一用户或第一用户代理的消息发送在会话的标识对应的会话中。The first sending module 1902 is configured to send the first request to the server, so that the server sends the message sent by the client of the second user as the message of the first user or the first user agent in the session corresponding to the session identifier.

可选地,一些实施例中,参见图20,该消息交互装置200可以包括:Optionally, in some embodiments, referring to FIG. 20 , the message interaction device 200 may include:

第一会话界面显示模块1903,用于显示第一用户所在的会话的界面,其中,界面包括用于添加代理的按键。The first session interface display module 1903 is configured to display the session interface of the first user, wherein the interface includes a button for adding an agent.

第一选择界面显示模块1904,用于在按键被触发时,显示代理选择界面。The first selection interface display module 1904 is configured to display an agent selection interface when the button is triggered.

第一接收模块1905,用于接收第一用户在代理选择界面中选择的代理。The first receiving module 1905 is configured to receive the agent selected by the first user in the agent selection interface.

可选地,第一请求还包括用于标识第二用户是否可见的标识。Optionally, the first request further includes an identifier for identifying whether the second user is visible.

第一设置模块1906,用于根据第一用户的指令设置第二用户是否可见的标识。The first setting module 1906 is configured to set an indication of whether the second user is visible or not according to the instruction of the first user.

第二接收模块1907,用于接收第二用户的客户端发送的消息,并将消息发送在会话中。The second receiving module 1907 is configured to receive the message sent by the client of the second user, and send the message in the session.

需要说明的是,前述图5-图6实施例中对消息交互方法实施例的解释说明也适用于该实施例的消息交互装置,其实现原理类似,此处不再赘述。It should be noted that, the explanations of the message interaction method embodiment in the above-mentioned embodiments of FIGS. 5-6 are also applicable to the message interaction device of this embodiment, and its implementation principle is similar, so it will not be repeated here.

本实施例中,通过将第一请求发送至服务器,以使服务器将第二用户的客户端发送的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending the first request to the server so that the server sends the message sent by the second user's client as the first user's message in the session corresponding to the session identifier, it can be implemented in instant messaging applications Agents are added to the message interaction of the program to effectively improve the user experience.

图21是本发明另一实施例提出的消息交互装置的结构示意图。该消息交互装置可以通过软件、硬件或者两者的结合实现。Fig. 21 is a schematic structural diagram of a message interaction device according to another embodiment of the present invention. The message interaction device can be realized by software, hardware or a combination of both.

参见图21,该消息交互装置210可以包括:代理指令接收模块2101、第一消息指令接收模块2102,以及第二消息发送模块2103。其中,Referring to FIG. 21 , the message interaction device 210 may include: a proxy instruction receiving module 2101 , a first message instruction receiving module 2102 , and a second message sending module 2103 . in,

代理指令接收模块2101,用于接收代理指令,所述代理指令中携带有被代理的第一用户的用户标识、所述第一用户所在的会话标识,所述代理指令用于指示将所述第二用户作为所述第一用户的代理。The proxy instruction receiving module 2101 is configured to receive a proxy instruction, the proxy instruction carries the user identifier of the first user to be proxied and the session identifier of the first user, and the proxy instruction is used to indicate that the second The second user acts as a proxy for the first user.

第一消息指令接收模块2102,用于接收所述第二用户输入的消息和用于发送所述消息的指令。The first message instruction receiving module 2102 is configured to receive the message input by the second user and the instruction for sending the message.

第二消息发送模块2103,用于根据所述指令将所述消息发送至服务器,以使所述服务器将所述消息作为所述第一用户的消息发送在所述会话的标识对应的会话中。The second message sending module 2103 is configured to send the message to the server according to the instruction, so that the server sends the message as a message of the first user in the session corresponding to the session identifier.

可选地,一些实施例中,参见图22,该消息交互装置210还包括:Optionally, in some embodiments, referring to FIG. 22, the message interaction device 210 further includes:

第二请求接收模块2104,用于接收服务器发送的第二请求,其中,第二请求用于使第二用户确认是否同意代理。The second request receiving module 2104 is configured to receive a second request sent by the server, wherein the second request is used to make the second user confirm whether to agree to the proxy.

第一响应指令接收模块2105,用于根据第二请求对第二用户进行提示,并接收第二用户的响应指令。The first response instruction receiving module 2105 is configured to prompt the second user according to the second request, and receive a response instruction from the second user.

第一响应生成模块2106,用于根据第二用户的响应指令生成第二用户确认同意或不同意代理的响应,并将第二用户确认同意或不同意代理的响应发送至服务器。The first response generating module 2106 is configured to generate a response of the second user confirming approval or disapproval of the proxy according to the response instruction of the second user, and send the response of the second user confirming approval or disapproval of the proxy to the server.

历史记录接收模块2107,用于接收服务器发送的会话的历史会话记录。The historical record receiving module 2107 is configured to receive the historical session record of the session sent by the server.

需要说明的是,前述图9-图11实施例中对消息交互方法实施例的解释说明也适用于该实施例的消息交互装置,其实现原理类似,此处不再赘述。It should be noted that the explanations of the message interaction method embodiment in the foregoing embodiments in FIGS. 9-11 are also applicable to the message interaction device in this embodiment, and its implementation principles are similar, so details are not repeated here.

本实施例中,通过第二用户的客户端接收代理指令,接收第二用户输入的消息和用于发送消息的指令,根据指令将消息发送至服务器,以使服务器将消息作为第一用户的消息发送在会话的标识对应的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, the client of the second user receives the proxy instruction, receives the message input by the second user and the instruction for sending the message, and sends the message to the server according to the instruction, so that the server regards the message as the first user's message Sending in the session corresponding to the session identifier can effectively improve the flexibility and applicability of the message interaction method, realize adding an agent in the message interaction of the instant messaging application program, and effectively improve the user experience.

图23是本发明另一实施例提出的消息交互装置的结构示意图。该消息交互装置可以通过软件、硬件或者两者的结合实现。Fig. 23 is a schematic structural diagram of a message interaction device according to another embodiment of the present invention. The message interaction device can be realized by software, hardware or a combination of both.

参见图23,该消息交互装置230可以包括:第二生成模块2301和第二发送模块2302。其中,Referring to FIG. 23 , the message interaction apparatus 230 may include: a second generating module 2301 and a second sending module 2302 . in,

第二生成模块2301,用于根据第一用户选择的代理,生成代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。The second generation module 2301 is configured to generate proxy configuration information and a first request according to the proxy selected by the first user, wherein the first request includes: the user identifier of the second user used to proxy the first user, the location of the first user The ID of the session.

可选地,第一用户所在的会话为标识对应的会话,第二用户为第一用户选择的用于代理第一用户的用户。Optionally, the session that the first user is in is a session corresponding to the identifier, and the second user is a user selected by the first user to represent the first user.

第二发送模块2302,用于将代理配置信息和第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中。The second sending module 2302 is configured to send the proxy configuration information and the first request to the client of the second user, so that the client of the second user uses the message input by the second user as the message of the first user according to the proxy configuration information Sent in the session corresponding to the session ID.

可选地,一些实施例中,参见图24,该消息交互装置230还包括:Optionally, in some embodiments, referring to FIG. 24, the message interaction device 230 further includes:

第二请求发送模块2303,用于根据第二用户的用户标识向第二用户的客户端发送第二请求,其中,第二请求用于使第二用户确认是否同意代理。The second request sending module 2303 is configured to send a second request to the client of the second user according to the user identifier of the second user, wherein the second request is used to make the second user confirm whether to agree to the proxy.

第二响应接收模块2304,用于接收第二用户的客户端发送的第二请求的响应,其中,第二请求的响应为第二用户确认同意或不同意代理的响应。The second response receiving module 2304 is configured to receive a response to the second request sent by the client of the second user, wherein the response to the second request is a response in which the second user confirms that he or she agrees to the proxy.

第二历史记录发送模块2305,用于在第二请求的响应为第二用户确认同意代理的响应时,将会话的历史会话记录发送至第二用户的客户端。The second historical record sending module 2305 is configured to send the historical session record of the session to the client of the second user when the response of the second request is the response of the second user confirming the consent of the agent.

第二提示信息发送模块2306,用于在第二请求的响应为第二用户确认不同意代理的响应时,生成提示信息,根据提示信息对第一用户进行提示。The second prompt information sending module 2306 is configured to generate prompt information and prompt the first user according to the prompt information when the response of the second request is that the second user confirms that he does not agree to the proxy.

第二会话界面显示模块2307,用于显示第一用户所在的会话的界面,其中,界面包括用于添加代理的按键。The second session interface display module 2307 is configured to display the session interface of the first user, wherein the interface includes a button for adding an agent.

第二选择界面显示模块2308,用于在按键被触发时,显示代理选择界面。The second selection interface display module 2308 is configured to display an agent selection interface when the button is triggered.

第三接收模块2309,用于接收第一用户在代理选择界面中选择的代理。The third receiving module 2309 is configured to receive the agent selected by the first user in the agent selection interface.

可选地,第一请求还包括用于标识第二用户是否可见的标识。Optionally, the first request further includes an identifier for identifying whether the second user is visible.

第二设置模块2310,用于根据第一用户的指令设置第二用户是否可见的标识。The second setting module 2310 is configured to set an indication of whether the second user is visible or not according to the instruction of the first user.

需要说明的是,前述图12-图13实施例中对消息交互方法实施例的解释说明也适用于该实施例的消息交互装置,其实现原理类似,此处不再赘述。It should be noted that, the explanations of the message interaction method embodiment in the above-mentioned embodiments of FIG. 12-FIG. 13 are also applicable to the message interaction device of this embodiment, and its implementation principle is similar, so it will not be repeated here.

本实施例中,通过将代理配置信息和第一请求发送至第二用户的客户端,以使第二用户的客户端根据代理配置信息将第二用户输入的消息作为第一用户的消息发送在会话的标识对应的会话中,能够实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by sending the proxy configuration information and the first request to the client of the second user, the client of the second user sends the message input by the second user as the message of the first user according to the proxy configuration information. In the session corresponding to the session identifier, an agent can be added in the message interaction of the instant messaging application program, effectively improving the user experience.

图25是本发明另一实施例提出的消息交互装置的结构示意图。该消息交互装置可以通过软件、硬件或者两者的结合实现。Fig. 25 is a schematic structural diagram of a message interaction device according to another embodiment of the present invention. The message interaction device can be realized by software, hardware or a combination of both.

参见图25,该消息交互装置250可以包括:第四接收模块2501、第二消息指令接收模块2502,以及第三消息发送模块2503。其中,Referring to FIG. 25 , the message interaction device 250 may include: a fourth receiving module 2501 , a second message instruction receiving module 2502 , and a third message sending module 2503 . in,

第四接收模块2501,用于接收第一用户的客户端发送的代理配置信息和第一请求,其中,第一请求包括:用于代理第一用户的第二用户的用户标识、第一用户所在的会话的标识。The fourth receiving module 2501 is configured to receive the proxy configuration information and the first request sent by the client of the first user, wherein the first request includes: the user identifier of the second user used to proxy the first user, the location of the first user The ID of the session.

第二消息指令接收模块2502,用于接收第二用户输入的消息和用于发送消息的指令。The second message instruction receiving module 2502 is configured to receive the message input by the second user and the instruction for sending the message.

第三消息发送模块2503,用于根据代理配置信息将消息发送在第一用户所在的会话中。The third message sending module 2503 is configured to send the message in the session of the first user according to the proxy configuration information.

可选地,一些实施例中,参见图26,该消息交互装置250还包括:Optionally, in some embodiments, referring to FIG. 26, the message interaction device 250 further includes:

第三请求接收模块2504,用于接收第一用户的客户端发送的第二请求,其中,第二请求用于使第二用户确认是否同意代理。The third request receiving module 2504 is configured to receive a second request sent by the client of the first user, wherein the second request is used to make the second user confirm whether to agree to the proxy.

第二响应指令接收模块2505,用于根据第二请求对第二用户进行提示,并接收第二用户的响应指令。The second response instruction receiving module 2505 is configured to prompt the second user according to the second request, and receive a response instruction from the second user.

第二响应生成模块2506,用于根据第二用户的响应指令生成第二请求的响应,并将第二请求的响应发送至第一用户的客户端,其中,第二请求的响应为第二用户确认同意或不同意代理的响应。The second response generation module 2506 is configured to generate a response to the second request according to the response instruction of the second user, and send the response to the second request to the client of the first user, wherein the response to the second request is the response of the second user Confirm to agree or disagree with the agent's response.

第二历史记录接收模块2507,用于在接收第一用户的客户端发送的会话的历史会话记录。The second historical record receiving module 2507 is configured to receive the historical session record of the session sent by the client of the first user.

可选地,第一请求还包括用于标识第二用户是否可见的标识。第三提示模块2508,用于在标识为不可见时,在会话中不提示第一用户的消息为代理的消息;在标识为可见时,在会话中提示第一用户的消息为代理的消息。Optionally, the first request further includes an identifier for identifying whether the second user is visible. The third prompting module 2508 is configured to not prompt the first user's message to be an agent's message in the conversation when the flag is invisible; to prompt the first user's message to be an agent's message in the conversation when the flag is visible.

需要说明的是,前述图14-图16实施例中对消息交互方法实施例的解释说明也适用于该实施例的消息交互装置,其实现原理类似,此处不再赘述。It should be noted that the explanations of the message interaction method embodiment in the foregoing embodiments in FIGS. 14-16 are also applicable to the message interaction device in this embodiment, and its implementation principles are similar, so details are not repeated here.

本实施例中,通过接收第一用户的客户端发送的代理配置信息和第一请求,当第二用户确认同意代理的响应时,接收第二用户输入的消息和用于发送消息的指令,根据代理配置信息将消息发送在第一用户所在的会话中,能够有效提升消息交互方法的灵活性和适用性,实现在即时通讯类应用程序的消息交互中添加代理,有效提升用户的使用体验。In this embodiment, by receiving the proxy configuration information and the first request sent by the client of the first user, when the second user confirms that he agrees with the response of the proxy, the message input by the second user and the instruction for sending the message are received, according to The agent configuration information sends the message in the session of the first user, which can effectively improve the flexibility and applicability of the message interaction method, realize adding an agent in the message interaction of the instant messaging application program, and effectively improve the user experience.

需要说明的是,在本发明的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本发明的描述中,除非另有说明,“多个”的含义是两个或两个以上。It should be noted that, in the description of the present invention, the terms "first", "second" and so on are only used for description purposes, and should not be understood as indicating or implying relative importance. In addition, in the description of the present invention, unless otherwise specified, "plurality" means two or more.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。Those of ordinary skill in the art can understand that all or part of the steps carried by the methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. During execution, one or a combination of the steps of the method embodiments is included.

此外,在本发明各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, each unit may exist separately physically, or two or more units may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are realized in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, and the like.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, descriptions with reference to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or feature is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

Claims (52)

1. A message interaction method, comprising the steps of:
receiving a first request sent by a client of a first user, wherein the first request comprises a user identifier of a second user for acting on the first user and an identifier of a session where the first user is located;
determining that the second user is an agent of the first user according to the user identifier of the second user;
receiving a message sent by a client of the second user;
and sending the message as the message of the first user in the session corresponding to the identification of the session.
2. The message interaction method of claim 1, wherein the first request further comprises an identifier for identifying whether the second user is visible, and after the sending the message as the message of the first user in a session corresponding to the identifier of the session, the method comprises:
when the identifier is invisible, not prompting that the message of the first user is a proxy message in the session;
and when the identification is visible, prompting the message of the first user as a proxy message in the session.
3. A message interaction method as claimed in claim 1, wherein the second user is a user selected by the first user to proxy for the first user.
4. The message interaction method of claim 1, after said receiving a first request sent by a client of a first user, further comprising:
sending a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to agree with the proxy;
and receiving a response of the second request sent by the client of the second user, wherein the response of the second request is a response of the second user confirming agreement or disagreement with the proxy, and when the response of the second request is a response of the second user confirming agreement with the proxy, determining that the second user is the proxy of the first user according to the user identifier of the second user.
5. The message interaction method as claimed in claim 4, wherein after the receiving of the response of the second request sent by the client of the second user, further comprising:
when the response of the second request is the response of the second user for confirming the agreement agent, sending the historical conversation record of the conversation to the client of the second user;
and when the response of the second request is the response that the second user confirms that the agent is not approved, generating prompt information and sending the prompt information to the client of the first user.
6. The message interaction method of claim 1, after said determining that the second user is an agent of the first user, further comprising:
when one of the first user and the second user performs input, prompting the other of the first user and the second user.
7. The message interaction method of claim 1, wherein said determining that the second user is an agent of the first user comprises:
and adding the second user into the session corresponding to the session identifier.
8. The message interaction method of claim 1, wherein sending the message as a message of the first user in a session corresponding to the identification of the session comprises:
and sending the message to the client of the first user so that the client of the first user sends the message in the session.
9. The message interaction method of claim 1, wherein when the first request further includes a subscriber identity of an nth subscriber, N being a positive integer greater than or equal to 3, further comprising:
and sending a third request to the client of the Nth user according to the user identifier of the Nth user, wherein the third request is used for enabling the Nth user to confirm whether to agree with the proxy.
10. A message interaction method, comprising the steps of:
generating a first request, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
and sending the first request to a server so that the server sends a message sent by a client of the second user as a message of the first user or the first user agent in a session corresponding to the identifier of the session.
11. The message interaction method of claim 10, prior to said generating the first request, further comprising:
displaying an interface of the conversation where the first user is located, wherein the interface comprises a key for adding an agent;
when the key is triggered, displaying an agent selection interface;
and receiving the agent selected by the first user in the agent selection interface.
12. The message interaction method of claim 10, wherein the first request further comprises an identifier for identifying whether the second user is visible, further comprising, after said receiving the agent selected by the first user in the agent selection interface:
and setting an identifier which is visible or not for the second user according to the instruction of the first user.
13. The message interaction method of claim 10, further comprising:
and receiving a message sent by the client of the second user, and sending the message in the session.
14. A message interaction method, comprising the steps of:
receiving an agent instruction, wherein the agent instruction carries a user identifier of a proxied first user and a session identifier of the first user, and the agent instruction is used for indicating that the second user is used as a proxy of the first user;
receiving a message input by the second user and an instruction for sending the message;
and sending the message to a server according to the instruction, so that the server sends the message as the message of the first user in a session corresponding to the identifier of the session.
15. The message interaction method of claim 14, prior to said receiving the message input by the second user and the instruction to send the message, further comprising:
receiving a request sent by the server, wherein the request is used for confirming whether the second user agrees with the proxy;
prompting the second user according to the request, and receiving a response instruction of the second user;
and generating a response of the request according to the response instruction of the second user, and sending the response of the request to the server, wherein the response of the request is a response of confirming agreement or disagreement of an agent by the second user.
16. The message interaction method as claimed in claim 15, wherein when the response of the request is a response of the second user confirming the agreement agent, further comprising:
and receiving the historical session record of the session sent by the server.
17. A message interaction method, comprising the steps of:
generating agent configuration information and a first request according to an agent selected by a first user, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
and sending the agent configuration information and the first request to a client of a second user, so that the client of the second user sends a message input by the second user as a message of the first user in a session corresponding to the identifier of the session according to the agent configuration information.
18. The message interaction method as claimed in claim 17, wherein the session in which the first user is located is a session corresponding to the identifier.
19. A message interaction method as claimed in claim 17, wherein the second user is a user selected by the first user to proxy for the first user.
20. The message interaction method of claim 17, after generating the agent configuration information and the first request according to the agent selected by the first user, further comprising:
sending a second request to the client of the second user according to the user identification of the second user, wherein the second request is used for enabling the second user to confirm whether to agree with the proxy;
and receiving a response of the second request sent by the client of the second user, wherein the response of the second request is a response of confirming agreement or disagreement with an agent by the second user.
21. The message interaction method of claim 20, wherein said sending the agent configuration information and the first request to a client of a second user comprises:
and when the response of the second request is the response of the second user for confirming agreement with the proxy, sending the proxy configuration information and the first request to the client of the second user.
22. The message interaction method as claimed in claim 20, wherein after said receiving a response to the second request sent by the client of the second user, further comprising:
when the response of the second request is the response of the second user for confirming the agreement agent, sending the historical conversation record of the conversation to the client of the second user;
and when the response of the second request is the response that the second user confirms that the agent is not approved, generating prompt information, and prompting the first user according to the prompt information.
23. The message interaction method of claim 17, prior to generating the agent configuration information and the first request based on the agent selected by the first user, further comprising:
displaying an interface of the conversation where the first user is located, wherein the interface comprises a key for adding an agent;
when the key is triggered, displaying an agent selection interface;
and receiving the agent selected by the first user in the agent selection interface.
24. The message interaction method of claim 23, wherein the first request further comprises an identifier for identifying whether the second user is visible, further comprising, after said receiving the agent selected by the first user in the agent selection interface:
and setting an identifier which is visible or not for the second user according to the instruction of the first user.
25. A message interaction method, comprising the steps of:
receiving agent configuration information and a first request sent by a client of a first user, wherein the first request comprises: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
receiving a message input by the second user and an instruction for sending the message;
and sending the message to the session of the first user according to the agent configuration information.
26. The message interaction method as claimed in claim 25, wherein before said receiving the agent configuration information and the first request sent by the client of the first user, further comprising:
receiving a second request sent by the client of the first user, wherein the second request is used for enabling the second user to confirm whether to agree with the proxy;
prompting the second user according to the second request, and receiving a response instruction of the second user;
and generating a response of the second request according to the response instruction of the second user, and sending the response of the second request to the client of the first user, wherein the response of the second request is a response of confirming agreement or disagreement of an agent by the second user.
27. The message interaction method of claim 25, after the second user confirms the agreement agent, further comprising:
and receiving a historical session record of the session sent by the client of the first user.
28. The message interaction method of claim 25, wherein the first request further includes an identifier for identifying whether the second user is visible, and after the sending the message as the message of the first user in a session corresponding to the identifier of the session, comprises:
when the identifier is invisible, not prompting that the message of the first user is a proxy message in the session;
and when the identification is visible, prompting the message of the first user as a proxy message in the session.
29. A message interaction apparatus, comprising:
the first request receiving module is used for receiving a first request sent by a client of a first user, wherein the first request comprises a user identifier of a second user for acting on the first user and an identifier of a session where the first user is located;
a determining module, configured to determine, according to a user identifier of the second user, that the second user is an agent of the first user;
the message receiving module is used for receiving a message sent by the client of the second user;
and the first message sending module is used for sending the message as the message of the first user in the session corresponding to the session identifier.
30. The message interaction apparatus of claim 29, wherein the first request further comprises an identifier identifying whether the second user is visible, further comprising:
a first prompting module, configured to not prompt the message of the first user as a proxy message in the session when the identifier is invisible; when the identification is visible, prompting the message of the first user as a proxy message in the session.
31. The message interaction device of claim 29, wherein the second user is a user selected by the first user to proxy for the first user.
32. The message interaction apparatus of claim 29, further comprising:
a first request sending module, configured to send a second request to a client of the second user according to a user identifier of the second user, where the second request is used for the second user to confirm whether to agree with an agent;
and a first response receiving module, configured to receive a response of the second request sent by the client of the second user, where the response of the second request is a response of the second user confirming agreement or disagreement with the proxy, and when the response of the second request is a response of the second user confirming agreement with the proxy, the second user is determined to be the proxy of the first user according to the user identifier of the second user.
33. The message interaction apparatus of claim 32, further comprising:
the first historical record sending module is used for sending the historical session record of the session to the client of the second user when the response of the second request is the response of the second user for confirming the agreement agent;
and the first prompt information sending module is used for generating prompt information when the response of the second request is the response that the second user confirms that the agent is not approved, and sending the prompt information to the client of the first user.
34. The message interaction apparatus of claim 29, further comprising:
and the second prompting module is used for prompting the other user of the first user and the second user when one user of the first user and the second user inputs.
35. A message interaction apparatus, comprising:
a first generating module, configured to generate a first request, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
and the first sending module is used for sending the first request to a server so that the server sends a message sent by a client of the second user as a message of the first user or the first user agent in a session corresponding to the identifier of the session.
36. The message interaction apparatus of claim 35, further comprising:
the first conversation interface display module is used for displaying an interface of a conversation where the first user is located, wherein the interface comprises a key for adding an agent;
the first selection interface display module is used for displaying an agent selection interface when the key is triggered;
and the first receiving module is used for receiving the agent selected by the first user in the agent selection interface.
37. The message interaction apparatus of claim 35, wherein the first request further comprises an identifier identifying whether the second user is visible, further comprising:
and the first setting module is used for setting the identifier which is visible for the second user according to the instruction of the first user.
38. The message interaction apparatus of claim 35, further comprising:
and the second receiving module is used for receiving the message sent by the client of the second user and sending the message in the session.
39. A message interaction apparatus, comprising:
an agent instruction receiving module, configured to receive an agent instruction, where the agent instruction carries a user identifier of a proxied first user and a session identifier where the first user is located, and the agent instruction is used to indicate that the second user is a proxy of the first user;
a first message instruction receiving module, configured to receive a message input by the second user and an instruction for sending the message;
and the second message sending module is used for sending the message to a server according to the instruction so that the server sends the message as the message of the first user in the session corresponding to the identifier of the session.
40. The message interaction apparatus of claim 39, further comprising:
a second request receiving module, configured to receive a request sent by the server, where the request is used to confirm whether the second user agrees to the proxy;
the first response instruction receiving module is used for prompting the second user according to the request and receiving a response instruction of the second user;
and the first response generation module is used for generating a response of the request according to the response instruction of the second user and sending the response of the request to the server, wherein the response of the request is a response of confirming agreement or disagreement of the agent by the second user.
41. The message interaction device of claim 40, further comprising:
and the first history record receiving module is used for receiving the history session record of the session sent by the server.
42. A message interaction apparatus, comprising:
a second generating module, configured to generate agent configuration information and a first request according to an agent selected by a first user, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
and the second sending module is used for sending the agent configuration information and the first request to a client of a second user so that the client of the second user sends a message input by the second user as the message of the first user in a session corresponding to the identifier of the session according to the agent configuration information.
43. The message interaction device of claim 42, wherein the session in which the first user is located is a session to which the identifier corresponds.
44. The message interaction device of claim 42, wherein the second user is a user selected by the first user to proxy for the first user.
45. The message interaction device of claim 42, further comprising:
a second request sending module, configured to send a second request to a client of the second user according to a user identifier of the second user, where the second request is used for enabling the second user to confirm whether to agree with an agent;
and a second response receiving module, configured to receive a response to the second request sent by the client of the second user, where the response to the second request is a response of the second user confirming agreement or disagreement with an agent.
46. The message interaction device of claim 45, further comprising:
a second history record sending module, configured to send the history session record of the session to the client of the second user when the response of the second request is the response of the second user to confirm agreement with the proxy;
and the second prompt information sending module is used for generating prompt information when the response of the second request is the response of the second user confirming that the agent is not approved, and prompting the first user according to the prompt information.
47. The message interaction device of claim 42, further comprising:
the second session interface display module is used for displaying an interface of the session where the first user is located, wherein the interface comprises a key for adding an agent;
the second selection interface display module is used for displaying the agent selection interface when the key is triggered;
and the third receiving module is used for receiving the agent selected by the first user in the agent selection interface.
48. The message interaction device of claim 47, wherein the first request further comprises an identifier identifying whether the second user is visible, further comprising:
and the second setting module is used for setting the identifier which is visible for the second user according to the instruction of the first user.
49. A message interaction apparatus, comprising:
a fourth receiving module, configured to receive agent configuration information and a first request sent by a client of a first user, where the first request includes: the user identification of a second user used for acting on a first user and the identification of a session in which the first user is positioned;
a second message instruction receiving module, configured to receive a message input by the second user and an instruction for sending the message;
and the third message sending module is used for sending the message to the session of the first user according to the agent configuration information.
50. The message interaction device of claim 49, further comprising:
a third request receiving module, configured to receive a second request sent by a client of the first user, where the second request is used to enable the second user to confirm whether to agree with the proxy;
a second response instruction receiving module, configured to prompt the second user according to the second request, and receive a response instruction of the second user;
and the second response generation module is used for generating a response of the second request according to the response instruction of the second user and sending the response of the second request to the client of the first user, wherein the response of the second request is a response of the second user confirming agreement or disagreement with the agent.
51. The message interaction device of claim 49, further comprising:
and the second history record receiving module is used for receiving the history session record of the session sent by the client of the first user.
52. The message interaction device of claim 49, wherein the first request further comprises an identifier for identifying whether the second user is visible, further comprising:
a third prompting module, configured to not prompt the message of the first user as an agent message in the session when the identifier is invisible; and when the identification is visible, prompting that the message of the first user is a proxy message in the session.
CN201610635302.5A 2016-08-05 2016-08-05 Method for message interaction and device Pending CN107689939A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610635302.5A CN107689939A (en) 2016-08-05 2016-08-05 Method for message interaction and device
TW106119491A TW201806406A (en) 2016-08-05 2017-06-12 Message interaction method and device
PCT/CN2017/094011 WO2018024123A1 (en) 2016-08-05 2017-07-24 Method and device for message interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610635302.5A CN107689939A (en) 2016-08-05 2016-08-05 Method for message interaction and device

Publications (1)

Publication Number Publication Date
CN107689939A true CN107689939A (en) 2018-02-13

Family

ID=61073609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610635302.5A Pending CN107689939A (en) 2016-08-05 2016-08-05 Method for message interaction and device

Country Status (3)

Country Link
CN (1) CN107689939A (en)
TW (1) TW201806406A (en)
WO (1) WO2018024123A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809820A (en) * 2018-07-20 2018-11-13 莱思特科技股份有限公司 Method for setting instant messaging agent, instant messaging device and server
CN109962841A (en) * 2019-03-15 2019-07-02 北京达佳互联信息技术有限公司 Information interacting method, device, server-side, electronic equipment and storage medium
CN110147188A (en) * 2019-05-27 2019-08-20 腾讯科技(深圳)有限公司 An information prompt method, device, equipment and storage medium
CN111447133A (en) * 2019-01-16 2020-07-24 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN115580589A (en) * 2022-10-13 2023-01-06 维沃移动通信有限公司 Message display method and device, electronic equipment and medium
WO2024093793A1 (en) * 2022-10-31 2024-05-10 维沃移动通信有限公司 Message display method and apparatus, and electronic device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642148A (en) * 2004-01-17 2005-07-20 腾讯科技(深圳)有限公司 Immediate communication treatment method
CN101090370A (en) * 2006-06-16 2007-12-19 腾讯科技(深圳)有限公司 Method and device for implementing session transition
CN101292479A (en) * 2005-09-06 2008-10-22 诺基亚西门子网络公司 Method and apparatus for diverting instant messaging sessions based on priority factors
CN101299785A (en) * 2007-04-30 2008-11-05 华为技术有限公司 Method, system and service server for processing conversation
CN101689153A (en) * 2007-06-28 2010-03-31 微软公司 Delegating instant messaging sessions
CN103929347A (en) * 2013-01-15 2014-07-16 杭州华为企业通信技术有限公司 Method, device and system for achieving IM agent service

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7170991B2 (en) * 2003-08-25 2007-01-30 Cisco Technology, Inc. Method and system for utilizing proxy designation in a call system
US20070239830A1 (en) * 2006-04-05 2007-10-11 Barnes Thomas H Method and apparatus for instant message notification and forwarding

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1642148A (en) * 2004-01-17 2005-07-20 腾讯科技(深圳)有限公司 Immediate communication treatment method
CN101292479A (en) * 2005-09-06 2008-10-22 诺基亚西门子网络公司 Method and apparatus for diverting instant messaging sessions based on priority factors
CN101090370A (en) * 2006-06-16 2007-12-19 腾讯科技(深圳)有限公司 Method and device for implementing session transition
CN101299785A (en) * 2007-04-30 2008-11-05 华为技术有限公司 Method, system and service server for processing conversation
CN101689153A (en) * 2007-06-28 2010-03-31 微软公司 Delegating instant messaging sessions
CN103929347A (en) * 2013-01-15 2014-07-16 杭州华为企业通信技术有限公司 Method, device and system for achieving IM agent service

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108809820A (en) * 2018-07-20 2018-11-13 莱思特科技股份有限公司 Method for setting instant messaging agent, instant messaging device and server
CN111447133A (en) * 2019-01-16 2020-07-24 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN111447133B (en) * 2019-01-16 2022-07-29 腾讯科技(深圳)有限公司 Message transmission method and device, storage medium and electronic device
CN109962841A (en) * 2019-03-15 2019-07-02 北京达佳互联信息技术有限公司 Information interacting method, device, server-side, electronic equipment and storage medium
CN109962841B (en) * 2019-03-15 2021-05-28 北京达佳互联信息技术有限公司 Information interaction method and device, server, electronic equipment and storage medium
CN110147188A (en) * 2019-05-27 2019-08-20 腾讯科技(深圳)有限公司 An information prompt method, device, equipment and storage medium
CN110147188B (en) * 2019-05-27 2022-03-18 腾讯科技(深圳)有限公司 Information prompting method, device, equipment and storage medium
CN115580589A (en) * 2022-10-13 2023-01-06 维沃移动通信有限公司 Message display method and device, electronic equipment and medium
CN115580589B (en) * 2022-10-13 2024-10-22 维沃移动通信有限公司 Message display method, device, electronic equipment and medium
WO2024093793A1 (en) * 2022-10-31 2024-05-10 维沃移动通信有限公司 Message display method and apparatus, and electronic device and medium

Also Published As

Publication number Publication date
WO2018024123A1 (en) 2018-02-08
TW201806406A (en) 2018-02-16

Similar Documents

Publication Publication Date Title
CN107689939A (en) Method for message interaction and device
CN103733185B (en) Multiple data type communication system
US9497143B2 (en) Method and system for providing on-air service using official account
CN108494571B (en) Method, device and system for initiating reservation conference
US11658963B2 (en) Cooperative communication validation
TWI352535B (en) Method of securing privacy in automatic answer mod
WO2015096322A1 (en) Information display method for instant communication tool, and user terminal
CN106953790B (en) Multi-person information exchange method and device
TWI569621B (en) Method, communication system, and tangible computer-readable memory device for multimodal conversation park and retrieval
CN112087363A (en) Message processing method and device, terminal and server
JP2017085567A (en) User terminal, method of transmitting and receiving message, and computer program
US20160127292A1 (en) Method and system for controlling polling in message conversations across multiple devices
EP4078937A1 (en) Method and system for reducing audio feedback
US20190037611A1 (en) Intuitive inter-device connectivity for data sharing and collaborative resource usage
WO2015161521A1 (en) Method, device and system for establishing communication
CN104579707B (en) A kind of method, relevant device and system that meeting and invitation is added
CN113746722A (en) Information processing method, apparatus, device, and storage medium
KR20150059662A (en) Method and appartus for establishing a social relationship in a social service providing system
KR101377853B1 (en) Method for user interface in group chatting
US9362773B2 (en) Method and apparatus for determination of a non-charging operation
CN105812229A (en) Terminal communication method, system and related device
KR20140061073A (en) Mobile device and method for transmitting and receiving event by using calendar protocol
WO2014029336A1 (en) Method and device for displaying messages
US9699632B2 (en) Multi-modality communication with interceptive conversion
US9906927B2 (en) Multi-modality communication initiation

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1250437

Country of ref document: HK

RJ01 Rejection of invention patent application after publication

Application publication date: 20180213

RJ01 Rejection of invention patent application after publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1250437

Country of ref document: HK