Method and apparatus for establishing chat group
First Claim
1. A method for establishing a chat group, comprising:
- obtaining, by a server, an identifier of a user of a first client terminal, an identifier of a chat group to be established and a geographic position of the first client terminal after receiving a request for establishing a chat group from the first client terminal;
establishing, by the server, a chat group entry and storing the entry on the server according to the identifier of the user of the first client terminal, the identifier of the chat group to be established and the geographic position of the first client terminal;
receiving, by the server, a request from a second client terminal to obtain information of other client terminals located around the second client terminal, wherein the request from the second client terminal includes a geographic position of the second client terminal;
in response to the request from the second client terminal, determining a distance between the geographic position of the second client terminal and the geographic position of the first client terminal;
in accordance with a determination that the distance between the geographic position of the second client terminal and the geographic position of the first client terminal is shorter than a preset value, sending an invitation message to join the chat group to the second client terminal, wherein, in response to the invitation message, the second client terminal is configured to display, to a user of the second client terminal, an indication of the chat group to be established including the identifier of the user of the first client terminal and an instruction of inputting authentication information via the second client terminal;
receiving, by the server and from the second client terminal, a response of joining the chat group, the response including authentication information provided by the user of the second client terminal, wherein the authentication information was obtained by the user of the second client terminal from the user of the first client terminal independently of the server;
performing authentication by determining whether the authentication information provided by the user of the second client terminal is identical with the identifier of the chat group to be established;
in accordance with a determination that the authentication information provided by the user of the second client terminal is identical with the identifier of the chat group to be established, allowing access of the user of the second client terminal to the chat group to be established, and sending information of the user of the second client terminal to the first client terminal; and
in response to receiving a finish request from the first client terminal, establishing, by the server, the chat group including the first client terminal and the second client terminal.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides a method and apparatus for establishing a chat group. The method performed by a server includes: obtaining an identifier of a user of a first client terminal, an identifier of a chat group to be established and a geographic position of the first terminal; beginning to establish a chat group; selecting at least one second client terminal from a predetermined geographic scope; and inviting a user of the at least one second client terminal to the chat group; receiving authentication information input by the user of the second client terminal from the second client terminal; determining whether the authentication information is correct; if the authentication information is correct, adding the user of the second client terminal into the chat group; and sending information of the second user to the first client terminal; finishing establishing the chat group when a preset finish condition is met.
23 Citations
9 Claims
-
1. A method for establishing a chat group, comprising:
-
obtaining, by a server, an identifier of a user of a first client terminal, an identifier of a chat group to be established and a geographic position of the first client terminal after receiving a request for establishing a chat group from the first client terminal; establishing, by the server, a chat group entry and storing the entry on the server according to the identifier of the user of the first client terminal, the identifier of the chat group to be established and the geographic position of the first client terminal; receiving, by the server, a request from a second client terminal to obtain information of other client terminals located around the second client terminal, wherein the request from the second client terminal includes a geographic position of the second client terminal; in response to the request from the second client terminal, determining a distance between the geographic position of the second client terminal and the geographic position of the first client terminal; in accordance with a determination that the distance between the geographic position of the second client terminal and the geographic position of the first client terminal is shorter than a preset value, sending an invitation message to join the chat group to the second client terminal, wherein, in response to the invitation message, the second client terminal is configured to display, to a user of the second client terminal, an indication of the chat group to be established including the identifier of the user of the first client terminal and an instruction of inputting authentication information via the second client terminal; receiving, by the server and from the second client terminal, a response of joining the chat group, the response including authentication information provided by the user of the second client terminal, wherein the authentication information was obtained by the user of the second client terminal from the user of the first client terminal independently of the server; performing authentication by determining whether the authentication information provided by the user of the second client terminal is identical with the identifier of the chat group to be established; in accordance with a determination that the authentication information provided by the user of the second client terminal is identical with the identifier of the chat group to be established, allowing access of the user of the second client terminal to the chat group to be established, and sending information of the user of the second client terminal to the first client terminal; and in response to receiving a finish request from the first client terminal, establishing, by the server, the chat group including the first client terminal and the second client terminal. - View Dependent Claims (2, 3, 4, 5, 9)
-
-
6. An apparatus for establishing a chat group, comprising:
- an interface and a processor, wherein the processor comprises an obtaining module, an establishing module, a selecting module, an adding module and a finishing module; and
the interface is to receive a request for establishing a chat group sent by a first client terminal, the request for establishing the chat group comprises an identifier of a user of the first client terminal, an identifier of a chat group to be established; the obtaining module is to obtain the identifier of the user of the first client terminal, the identifier of the chat group to be established and a geographic position of the first client terminal, according to the request for establishing the chat group; the establishing module is to establish the chat group entry according to the identifier of the user of the first client terminal, the identifier of the chat group to be established and the geographic position of the first client terminal; the selecting module is to receive a request from a second client terminal to obtain information of other client terminals located around the second client terminal, wherein the request from the second client terminal includes a geographic position of the second client terminal, and, in response to the request from the second client terminal, determine a distance between the geographic position of the second client terminal and the geographic position of the first client terminal; the interface is further to; send, in accordance with a determination by the selecting module that the distance between the geographic position of the second client terminal and the geographic position of the first client terminal is shorter than a preset value, an invitation message to join the chat group to the second client terminal, wherein, in response to the invitation message, the second client terminal is configured to display, to a user of the second client terminal, an indication of the chat group to be established including the identifier of the user of the first client terminal and an instruction of inputting authentication information via the second client terminal; receive, from the second client terminal, a response of joining the chat group, the response including authentication information provided by the user of the second client terminal, wherein the authentication information was obtained by the user of the second client terminal from the user of the first client terminal independently of the server; and send information of the user of the second client terminal to the first client terminal after the user of the second client terminal is allowed access into the chat group to be established; the adding module is to perform authentication for the user of the second client terminal by determining whether the authentication information provided by the user of the second client terminal is identical with the identifier of the chat group to be established and, in accordance with a determination that the authentication information provided by the user of the second client terminal is identical with the identifier of the chat group to be established, allow access of the user of the second client terminal to the chat group to be established; the finishing module is to establish, in response to receiving a finish request from the first client terminal, the chat group including the first client terminal and the second client terminal. - View Dependent Claims (7, 8)
- an interface and a processor, wherein the processor comprises an obtaining module, an establishing module, a selecting module, an adding module and a finishing module; and
Specification