The present disclosure relates to the field of microblog on the Internet, and in particular to a method and device for sending a microblog message.
A microblog message may be sent to a list of to-be-received messages of a microblog user ID generally by attaching the user ID to a symbol @ in the microblog message. Such an action is called mentioning. The so-called mentioning, similar to a CC (carbon-copy) function in a mail, is generally used to CC a microblog message directly into a list of “messages mentioning me” in the microblog of a designated friend, such that the designated friend may explicitly receive a reminder, and directly see the microblog message in the list of “messages mentioning me”. In addition, there is another operation that enrolls a number of people in a group similar to an Instant Messaging (IM) group, which group is administrated and uniquely identified through a group number. Such a group is called a microgroup in a microblog.
As shown in
In view of this, the main objective of the present disclosure is to provide a method and device for sending a microblog message, it is possible to mention a number of people in a microgroup in the microblog.
To achieve the objective, a technical solution of the present disclosure is implemented as follows.
The present disclosure provides a method for sending a microblog message, including:
when a new microblog message is received, a microgroup ID mentioned in the microblog message is acquired; and
when a user sending the microblog message has been enrolled in a microgroup corresponding to the microgroup ID, the microblog message is sent to all member users in the microgroup.
In the method, the step that a microgroup ID mentioned in the microblog message is acquired may be:
a microblog type or microblog name mentioned in the microblog message is extracted, and the microgroup ID corresponding to the microblog type or microblog name is acquired according to the microblog type or microblog name.
In the method, the step that a microblog type or microblog name mentioned in the microblog message is extracted may be:
the new microblog message is searched for a fixed symbol, and content attached to the fixed symbol are taken as the microblog type or microblog name.
The method may further include:
when there are identical microgroup types or identical microgroup names, a number of microgroup IDs corresponding to the identical microgroup types or identical microgroup names are acquired;
it is determined whether there is at least one common microgroup ID in microgroup IDs of all microgroups the user sending the microblog message is enrolled in and in the acquired microgroup IDs; and
if there is at least one common microgroup ID, then it is determined that the microgroup corresponding to the common microgroup ID is the microgroup mentioned in the microblog message; and if there is none, then the user sending the microblog message is promoted that there is an error in sending the message.
The method may further include: before the microblog message is sent to all member users in the microgroup, it is determined whether the user sending the microblog message has been enrolled in the microgroup corresponding to the microgroup ID; and
when it is determined that the user sending the microblog message has not been enrolled in the microgroup corresponding to the microgroup ID, the user is promoted that the microblog message fails to be sent;
when it is determined that the user sending the microblog message has been enrolled in the microgroup corresponding to the microgroup ID, the microblog message is sent to all member users in the microgroup.
In the method, the step that the microblog message is sent to all member users in the microgroup may be:
it is determined, in all member users of the microgroup, whether there is at least one member user who follows the user sending the microblog message; and
if there is, then the microblog message is sent to the remaining member user/users in the microgroup other than the member user who follows the user sending the microblog message; and if there is none, then the microblog message is sent to all member users in the microgroup.
The present disclosure further provides a device for sending a microblog message, including an acquiring module, a determining module, and a sending module,
wherein the acquiring module is configured to, when a new microblog message is received, acquire a microgroup ID mentioned in the microblog message;
wherein the determining module is configured to determine whether a user sending the microblog message has been enrolled in a microgroup corresponding to the microgroup ID;
wherein the sending module is configured to, when the determining module determines that the user sending the microblog message has been enrolled in the microgroup corresponding to the microgroup ID, send the microblog message to all member users in the microgroup.
The device may further include:
a prompting module configured to, when the determining module determines that the user sending the microblog message has not been enrolled in the microgroup corresponding to the microgroup ID, prompt the user that the microblog message fails to be sent.
In the method,
the acquiring module may be configured to acquire the microgroup ID mentioned in the microblog message by extracting a microblog type or microblog name mentioned in the microblog message and acquiring the microgroup ID corresponding to the microblog type or microblog name according to the microblog type or microblog name; and
the acquiring module may be configured to extract the microblog type or microblog name mentioned in the microblog message by searching the new microblog message for a fixed symbol and taking content attached to the fixed symbol as the microblog type or microblog name.
In the method, the sending module may be configured to send the microblog message to all member users in the microgroup by
determining, in all member users of the microgroup, whether there is at least one member user who follows the user sending the microblog message; and
if there is, then pushing the microblog message to the remaining member user/users in the microgroup other than the member user who follows the user sending the microblog message; and if there is none, then pushing the microblog message to all member users in the microgroup.
With the method and device for sending a microblog message provided by the present disclosure, when a new microblog message is received, a microgroup ID mentioned in the microblog message is acquired; and when a user sending the microblog message has been enrolled in a microgroup corresponding to the microgroup ID, the microblog message is sent to all member users in the microgroup. Therefore, with the present disclosure, it is possible to mention, in the field of microblog, a number of people contained in a microgroup by mentioning a microgroup, and thus to send the microblog message to a number of users contained in the microgroup by mentioning the microgroup. The operation in the present disclosure is simple and easy, and words included in the microblog message can be saved, such that the microblog message can be sent to more users simultaneously.
According to various embodiments of the present disclosure, when a new microblog message is received, a microgroup identification (ID) mentioned in the microblog message is acquired; and when a user sending the microblog message has already been enrolled in a microgroup corresponding to the microgroup ID, the microblog message is sent to all member users in the microgroup.
The present disclosure is further elaborated below with reference to the drawings and embodiments.
An embodiment of the present disclosure provides a method for sending a microblog message.
step 201, when a new microblog message is received, a microgroup ID mentioned in the microblog message is acquired.
Specifically, when a new microblog message is received, a microblog type or microblog name mentioned in the microblog message is extracted, and then the microgroup ID corresponding to the microblog type or the microblog name according to the microblog type or microblog name is acquired.
In the embodiments of the present disclosure, the new microblog message may be searched for a fixed symbol, such as @*, #, #*, and the like. The content attached to the fixed symbol is the microblog type or microblog name. To this end, a rule may be preset to define a few fixed symbols which are easy to be input on various microblog clients, easy to be memorized, compatible with an existing customary way of mentioning, easy to be distinguished and understood, and the like. For example, “@*” may serve as a prefix for mentioning a microgroup. @ has already been commonly used in the microblog as a way of mentioning. “@*” may be input directly on a microblog terminal. “@*” itself is kind of a wildcard, namely, it stands for a batch of similar things. Therefore, a natural understanding of use of @* is to mention a microgroup. As shown in
If there are identical microgroup types or identical microgroup names, a number of microgroup IDs corresponding to the microgroup types or microgroup names may be acquired. In the embodiments of the present disclosure, it may be determined whether there is at least one common microgroup ID in microgroup IDs of all microgroups the user sending the microblog message is enrolled in and in the acquired microgroup IDs. If there is at least one common microgroup ID, then it is determined that the microgroup corresponding to the common microgroup ID is the microgroup mentioned by the microblog message. If there is none, then the user sending the microblog message may be prompted that there is an error in sending the message.
step 202, it is determined whether a user sending the microblog message is enrolled in the microgroup. If the user is enrolled as a member, the microblog message is sent to all member users in the microgroup. If the user is not enrolled as a member, the user is promoted that the microblog message fails to be sent.
Specifically, only a member user in the microgroup can mention the whole microgroup. Therefore when the microblog message is received, it is required to determine whether the user sending the microblog message is enrolled in the microgroup corresponding to the acquired microgroup ID, that is, to determine whether the user is a member user of the microgroup.
if the user is a member user of the microgroup, it is required to further determine, in all member users in the microgroup, whether there is at least one member user who follows the user sending the microblog message. If there is, then the microblog message may not be pushed to member users who follow the user sending the microblog message, so as to avoid receiving the microblog message repeatedly by the member users and occupying network resources, since the user sending the microblog message is already followed of these member users. All these member users can receive each microblog message sent by the user, and do not need to receive the microblog message once again as a member user of the microgroup. Therefore the microblog message is pushed to the remaining member user/users in the microgroup. If there is, in all member users in the microgroup, no member user following the user sending the microblog message, then the microblog message is pushed to all member users in the microgroup. As thus, a member user of the microgroup may receive a reminder for arrival of a new message on a microblog interface and on a page card interface of the microgroup, or may interact directly with the sender of the microblog message on the microblog message.
If the user is not a member user of the microgroup, then the user may be prompted that he/she cannot send the microblog message and the microblog message fails to be sent, or may be further asked to confirm whether he/she is enrolled in the microgroup.
To implement the method, an embodiment of the present disclosure further provides a device for sending a microblog message.
The acquiring module 41 is configured to, when a new microblog message is received, acquire a microgroup ID mentioned in the microblog message.
The determining module 42 is configured to determine whether a user sending the microblog message has been enrolled in a microgroup corresponding to the microgroup ID.
The sending module 43 is configured to, when the determining module 42 determines that the user sending the microblog message has been enrolled in the microgroup corresponding to the microgroup ID, send the microblog message to all member users in the microgroup.
Preferably, the device may further include:
a prompting module 44 configured to, when the determining module 42 determines that the user sending the microblog message is has not been enrolled in the microgroup corresponding to the microgroup ID, prompt the user that the microblog message fails to be sent.
In some examples, the acquiring module 41 is configured to acquire the microgroup ID mentioned in the microblog message by extracting a microblog type or microblog name mentioned in the microblog message and acquiring the microgroup ID corresponding to the microblog type or microblog name according to the microblog type or microblog name.
In some examples, the acquiring module 41 is configured to extract the microblog type or microblog name mentioned in the microblog message by searching the new microblog message for a fixed symbol and taking content attached to the fixed symbol as the microblog type or microblog name.
The sending module 43 may be configured to send the microblog message to all member users in the microgroup by
determining, in all member users of the microgroup, whether there is at least one member user who follows the user sending the microblog message; and
if there is, then pushing the microblog message to the remaining member user/users in the microgroup other than the member user who follows the user sending the microblog message; and if there is none, then pushing the microblog message to all member users in the microgroup.
What described are merely preferred embodiments of the disclosure, and are not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement, and the like made within the principle of the present disclosure should be included in the scope of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210051607.3 | Mar 2012 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2013/072083 | 3/1/2013 | WO | 00 |