CN113114557B - Message sending method and device, electronic equipment and storage medium - Google Patents

Message sending method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113114557B
CN113114557B CN202110350927.8A CN202110350927A CN113114557B CN 113114557 B CN113114557 B CN 113114557B CN 202110350927 A CN202110350927 A CN 202110350927A CN 113114557 B CN113114557 B CN 113114557B
Authority
CN
China
Prior art keywords
message
target
configuration information
sending
instant messaging
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.)
Active
Application number
CN202110350927.8A
Other languages
Chinese (zh)
Other versions
CN113114557A (en
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202110350927.8A priority Critical patent/CN113114557B/en
Publication of CN113114557A publication Critical patent/CN113114557A/en
Application granted granted Critical
Publication of CN113114557B publication Critical patent/CN113114557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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]

Abstract

The present disclosure relates to a message sending method, a device, an electronic device and a storage medium, and relates to the field of instant messaging application, wherein the method comprises the following steps: the method comprises the steps that under the condition that a user logs in an instant messaging tool, configuration information when the user logs in the instant messaging tool is obtained, wherein the configuration information comprises a target receiving party of a message; acquiring a target message to be forwarded based on the instant messaging tool; and identifying the target receiver from the configuration information, and sending the target message to the target receiver. According to the scheme, the target receiver of the message is obtained from the configuration information, and the obtained message to be forwarded is sent to the target receiver, so that the message is automatically forwarded, and the receiver of the message to be received does not need to be manually searched by a user, so that the wrong sending and the missing sending of the message can be effectively avoided, the forwarding accuracy of the instant messaging message is improved, and the message forwarding efficiency can be improved.

Description

Message sending method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of instant messaging applications, and in particular, to a message sending method, an apparatus, an electronic device, and a storage medium.
Background
In daily work, the inside of an enterprise is often communicated by using an instant messaging tool. For example, for some enterprises designing sales business, after sales data statistics is required to be performed by data personnel, the statistical data is sent to a superior leader through an instant messaging tool, and then the superior leader sends data with different meanings to corresponding groups, so that managers of companies can perform data analysis and decision making.
In the related technology, after data personnel count data, the data are written into a data table, other personnel inquire the data table through related interfaces to obtain the data, the accuracy of the data is verified by integrating historical data, and correct data are sent to an instant messaging message group. However, in practical applications, one piece of data may need to be sent to multiple message groups, and problems of missending and missed sending are likely to occur by adopting the existing data sending mode.
Disclosure of Invention
The present disclosure provides a message sending method, an apparatus, an electronic device and a storage medium, which at least solve the problem in the related art that when a number of groups to be sent are large, messages are easily mistakenly sent and missed to be sent, because data are manually sent to a message group of an instant messaging tool. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, a message sending method is provided, including: the method comprises the steps that under the condition that a user logs in an instant messaging tool, configuration information when the user logs in the instant messaging tool is obtained, wherein the configuration information comprises a target receiving party of a message; acquiring a target message to be forwarded based on the instant messaging tool; and identifying the target receiver from the configuration information, and sending the target message to the target receiver.
In a possible implementation manner of this embodiment of the present disclosure, the sending the target message to the target recipient includes: and sending the target message to the target receiver under the condition that the target message meets a sending condition, wherein the sending condition is that the quantity value contained in the target message meets a preset rule of a quantity type corresponding to the quantity value.
In a possible implementation manner of this embodiment of the present disclosure, the sending the message to the target receiving party further includes: and sending the target message to the message forwarding party, and forwarding the target message to the target receiving party through the message forwarding party.
In a possible implementation manner of the embodiment of the present disclosure, the method further includes: and sending alarm information to the message forwarding party under the condition that the target message does not meet the sending condition.
In a possible implementation manner of this embodiment of the present disclosure, the forwarding, by the message forwarder, the target message to the target recipient includes: acquiring a first value of a first designated field from the configuration information; and under the condition that the first value is determined to be the target value, forwarding the target message to the target receiver through the message forwarding party.
In a possible implementation manner of this embodiment of the present disclosure, the forwarding, by the message forwarder, the target message to the target recipient includes: acquiring a second value of a second specified field from the configuration information, wherein the second value is used for indicating a forwarding condition which needs to be met when the target message is forwarded; acquiring the first n characters in the target message according to the number n of the characters contained in the second value; and under the condition that the first n characters are consistent with the second value, forwarding the target message to the target receiver through the message forwarding party.
In a possible implementation manner of the embodiment of the present disclosure, the configuration information further includes a time interval for acquiring data and a message template, and the acquiring a target message to be forwarded based on the instant messaging tool includes: determining the time interval from the configuration information, and acquiring webpage data from a specified webpage of the instant messaging tool according to the time interval; determining the message template from the configuration information; and searching target data matched with the attribute identifier from the webpage data according to the attribute identifier contained in the message template, and filling the target data into the message template to generate the target message to be forwarded.
In a possible implementation manner of the embodiment of the present disclosure, before the obtaining the configuration information when the user logs in the instant messaging tool, the method further includes: and setting and storing the configuration information in response to the setting operation of the configuration information of the instant messaging tool by the user.
According to a second aspect of the embodiments of the present disclosure, there is provided a message transmitting apparatus including: the system comprises a configuration information acquisition module, a configuration information acquisition module and a message sending module, wherein the configuration information acquisition module is configured to execute the step of acquiring configuration information when a user logs in an instant messaging tool under the state that the user logs in the instant messaging tool, and the configuration information comprises a target receiving party of a message; the target message acquisition module is configured to execute the acquisition of a target message to be forwarded based on the instant messaging tool; an identification module configured to perform identifying the intended recipient from the configuration information; a sending module configured to perform sending the targeted message to the targeted recipient.
In a possible implementation manner of the embodiment of the present disclosure, the sending module is specifically configured to execute: and under the condition that the target message meets the sending condition, sending the target message to the target receiver, wherein the sending condition is that the quantity value contained in the target message meets a preset rule of a quantity type corresponding to the quantity value.
In a possible implementation manner of this embodiment of the present disclosure, the configuration information further includes a message forwarding party, and the sending module is specifically configured to execute: and sending the target message to the message forwarding party, and forwarding the target message to the target receiving party through the message forwarding party.
In a possible implementation manner of the embodiment of the present disclosure, the sending module is further configured to perform: and sending alarm information to the message forwarder under the condition that the target message does not meet the sending condition.
In a possible implementation manner of the embodiment of the present disclosure, the sending module is specifically configured to execute: acquiring a first value of a first designated field from the configuration information; and under the condition that the first value is determined to be the target value, forwarding the target message to the target receiver through the message forwarding party.
In a possible implementation manner of the embodiment of the present disclosure, the sending module is specifically configured to execute: acquiring a second value of a second designated field from the configuration information, wherein the second value is used for indicating a forwarding condition which needs to be met when the target message is forwarded; acquiring the first n characters in the target message according to the number n of the characters contained in the second value; and under the condition that the first n characters are consistent with the second value, forwarding the target message to the target receiver through the message forwarding party.
In a possible implementation manner of the embodiment of the present disclosure, the configuration information further includes a time interval for acquiring data and a message template, and the target message acquisition module is specifically configured to perform: determining the time interval from the configuration information, and acquiring webpage data from a specified webpage of the instant messaging tool according to the time interval; determining the message template from the configuration information; and searching target data matched with the attribute identifier from the webpage data according to the attribute identifier contained in the message template, and filling the target data into the message template to generate the target message to be forwarded.
In a possible implementation manner of the embodiment of the present disclosure, the apparatus further includes: the storage module is configured to execute setting operation of the configuration information of the instant messaging tool in response to the user, and set and store the configuration information.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the message sending method according to the first aspect.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the message sending method according to the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program or computer instructions which, when executed by a processor, implement the message sending method according to the first aspect as described above.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method comprises the steps of acquiring configuration information when a user logs in an instant messaging tool under the state that the user logs in the instant messaging tool, wherein the configuration information comprises a target receiver of a message, acquiring the target message to be forwarded based on the instant messaging tool, identifying the target receiver from the configuration information, and sending the target message to be forwarded to the target receiver.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flow chart illustrating a method of messaging according to an example embodiment.
Fig. 2 is a flow chart illustrating a method of messaging according to another exemplary embodiment.
Fig. 3 is a flow chart illustrating a method of messaging according to yet another exemplary embodiment.
Fig. 4 is a block diagram illustrating a messaging device according to an example embodiment.
Fig. 5 is a block diagram illustrating a message transmission apparatus according to another exemplary embodiment.
FIG. 6 is a block diagram illustrating an electronic device for messaging in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The embodiment of the disclosure aims to provide a plug-in of an instant messaging tool, wherein a login entrance of the instant messaging tool is arranged on the plug-in, after a user logs in the instant messaging tool through the plug-in, a page jumps to a message interface of the instant messaging tool, at the moment, the plug-in also acquires information such as an instant messaging user account number and a group name of the currently logged-in user, and the user can automatically, efficiently and accurately forward messages by configuring information such as a message receiver and message forwarding conditions, wherein the instant messaging tool supports a webpage version login function.
Fig. 1 is a flowchart illustrating a message sending method according to an exemplary embodiment, where the message sending method is used in an electronic device as shown in fig. 1, and includes the following steps:
in step S11, in a state where the user logs in the instant messenger, configuration information when the user logs in the instant messenger is acquired, and the configuration information includes a target recipient of the message.
It should be noted that the main execution body of the message sending method disclosed by the present disclosure is an electronic device, and the electronic device may be, for example, a smart phone, a tablet computer, a notebook computer, a wearable device, and the like. The message sending method according to the embodiment of the present disclosure may be executed by the message sending apparatus according to the embodiment of the present disclosure, and the message sending apparatus according to the embodiment of the present disclosure may be configured on the aforementioned plug-in, and the plug-in may be configured in any electronic device to execute the message sending method according to the embodiment of the present disclosure.
The configuration information can be configured by the user according to the forwarding requirement of the message after logging in the instant messaging tool, the configuration information at least comprises a target receiving party of the message, and the configuration information can be stored in a local storage space or a server corresponding to the instant messaging tool.
It should be noted that, in the embodiment of the present disclosure, when configuration information of a user logging in an instant messaging tool is obtained, if the user newly sets the configuration information after logging in the instant messaging tool this time, the configuration information newly set this time is obtained; if the user does not set new configuration information, the configuration information that was set most recently is acquired.
In step S12, a target message to be forwarded is acquired based on the instant messenger.
In the embodiment of the disclosure, a user can log in an instant messaging tool through a plug-in, and in a user login state, a message sending device obtains a target message to be forwarded. The target message to be forwarded may be a message sent by another user or a message group in the instant messaging tool, or a message generated after data is fetched from a specified webpage.
In step S13, the intended recipient is identified from the configuration information and the intended message is sent to the intended recipient.
In the embodiment of the disclosure, when the target message to be forwarded is obtained, the target receiver can be identified from the configuration information, and then the message to be forwarded is sent to the target receiver.
According to the message sending method provided by the embodiment of the disclosure, the configuration information when the user logs in the instant messaging tool is acquired in the state that the user logs in the instant messaging tool, the configuration information comprises the target receiver of the message, the target message to be forwarded is acquired based on the instant messaging tool, the target receiver is identified from the configuration information, and the target message to be forwarded is further sent to the target receiver.
In a possible implementation manner of the embodiment of the present disclosure, before forwarding a message to be forwarded to a target recipient, it may be checked whether a target message to be forwarded satisfies a sending condition, and when the target message satisfies the sending condition, the target message is sent to the target recipient, where the sending condition is that a quantity value included in the target message satisfies a preset rule of a quantity type corresponding to the quantity value.
For example, the preset rule may be a time variation rule in which the quantity value varies with time, such as gradually increasing with time and gradually decreasing with time.
Taking the target message to be forwarded as the statistical inventory condition of the electric appliances produced by a certain company as an example, assuming that the company stops producing new electric appliances, and the current task is to clear up inventory, the statistical inventory should be less and less along with the lapse of time, if the comparison between the inventory in the last message and the inventory in the current message shows that the inventory number in the current message is greater than the inventory number in the last message, it can be determined that the quantity value (inventory) contained in the current message does not accord with the time change rule (gradual decrease) of the quantity type (inventory) corresponding to the quantity value, and the current message is not forwarded to the target receiver; if the comparison between the inventory in the previous message and the inventory in the current message shows that the inventory quantity in the current message is less than the inventory quantity in the previous message, the quantity value contained in the current message can be judged to accord with the time variation rule of the quantity type corresponding to the quantity value, and the current message is forwarded to the target receiver.
Taking the target message to be forwarded as the sales of the statistical shopping mall as an example, it can be understood that the sales increases with time, and the sending condition of the target message to be forwarded presents an increasing trend for the quantity value (sales) contained in the target message. If the quantity value contained in the current message to be forwarded is smaller than the quantity value contained in the previous message, the current message is not in accordance with the sending condition, if the quantity value contained in the current message to be forwarded is larger than the quantity value contained in the previous message, the current message is in accordance with the sending condition, and the current message to be forwarded is sent to the target receiver.
In the embodiment of the disclosure, the target message is sent to the target receiver only when the target message meets the sending condition by setting the sending condition, so that the automatic verification of the message is realized, the verification efficiency is improved, the workload of a user is reduced, the sending condition can be set according to the quantity type corresponding to the quantity value contained in the message, and the flexibility is strong.
Further, in a possible implementation manner of the embodiment of the present disclosure, the configuration information further includes a message forwarding party, and when the target message meets the sending condition, the message forwarding party may send the message to the target message forwarding party first, and forward the target message to the target receiving party through the message forwarding party. The message forwarding party may be a data engineer, a group leader, or the like, or may also be a group including the data engineer and the group leader, and the target receiving party may be a decision maker or a group including the decision maker. The message is received by the message forwarding party and forwarded to the target receiving party, so that different receiving parties can receive the message, the accuracy of the message received by the target receiving party can be ensured, different receiving parties are isolated, and the mixed sending and wrong sending conditions of the message can be effectively prevented.
In a possible implementation manner of the embodiment of the present disclosure, the configuration information may include a switch whether to forward the message, where the switch may be set by assigning a first designated field in the configuration information, and when forwarding the target message to the target recipient or forwarding the target message to the target recipient through the message forwarder, a first value of the first designated field may be first obtained from the configuration information, and when it is determined that the first value is a target value, the target message is forwarded to the target recipient through the message forwarder, where the target value is used to indicate that the target message needs to be forwarded. For example, the value of the first specified field may be true (target value) and false, and when the value of the first specified field is configured as true, the target message is forwarded to the target recipient.
Further, in a possible implementation manner of the embodiment of the present disclosure, a prefix condition that a target message to be forwarded needs to satisfy may also be set in the configuration information, and the target message that satisfies the prefix condition is forwarded only, so when the target message is forwarded to a target recipient, it may be determined first whether the target message satisfies the condition that needs to be satisfied when the message is forwarded, which is described in detail below with reference to fig. 2.
Fig. 2 is a flowchart illustrating a message sending method according to another exemplary embodiment, where, as shown in fig. 2, on the basis of the foregoing embodiment, forwarding a target message to a target recipient by a message forwarder may include the following steps:
in step S21, a second value of the second specified field is obtained from the configuration information, where the second value is used to indicate a forwarding condition that needs to be met when the target message is forwarded.
For example, the second value may be a string of character strings, which is used to indicate that the prefix condition that needs to be satisfied when the target message to be forwarded is forwarded, and when the prefix of the target message to be forwarded is consistent with the second value of the second specified field, it indicates that the target message to be forwarded satisfies the condition to be forwarded. That is, only the target message beginning with the second value will be forwarded.
In step S22, the first n characters in the target message are obtained according to the number n of characters included in the second value.
In step S23, the message forwarder forwards the target message to the target recipient in case that the first n characters are consistent with the second value.
In this embodiment of the present disclosure, after the second value of the second specified field is obtained from the configuration information, the same number of characters may be obtained from the first character in the target message to be forwarded according to the number n of characters included in the second value, that is, the first n characters of the target message to be forwarded are obtained, then, whether the obtained first n characters are consistent with the characters included in the second value or not is compared, and the target message to be forwarded is forwarded to the target receiving party by the message forwarding party under the condition that the first n characters are consistent with the second value.
For example, assuming that the second value is "sales data", the message beginning with "sales data" will be forwarded to the intended recipient, and other messages will not be forwarded.
According to the message sending method, the second value of the second specified field is obtained from the configuration information, the second value is used for indicating the forwarding condition which needs to be met when the target message is forwarded, the first n characters in the target message are obtained according to the number n of the characters contained in the second value, and the target message is forwarded to the target receiver through the message forwarding party under the condition that the first n characters are consistent with the second value, so that the forwarding of the specific message is realized, the forwarding condition which needs to be met when the message is forwarded is set through configuring the second value of the second specified field, and the automatic screening of the forwarded message is realized, and the flexibility is strong.
In a possible implementation manner of the embodiment of the present disclosure, when the target message to be forwarded does not satisfy the sending condition, for example, the sales amount in the current message is less than the sales amount included in the previous message, the message forwarding party may be sent alarm information to prompt that the data of the message forwarding party has a problem and needs to be manually checked.
Fig. 3 is a flowchart illustrating a message transmission method according to still another exemplary embodiment, as shown in fig. 3, which may include the steps of:
in step S31, in a state where the user logs in to the instant messenger, configuration information when the user logs in to the instant messenger is acquired.
In the embodiment of the disclosure, the configuration information is set and stored in response to the setting operation of the user on the configuration information of the instant messaging tool.
The configuration information can be set by the user according to the sending requirement of the message after the user logs in the instant messaging tool, and the configuration information set by the user is stored in the local memory to be acquired when needed. The configuration information may include, but is not limited to, an intended recipient, a message sender, conditions to be met by message forwarding, and the like.
As an example, the configuration information may be set as follows:
Figure BDA0003002351310000081
the meaning of each field in the configuration information is explained as follows:
Figure BDA0003002351310000091
in step S32, a target message to be forwarded is acquired based on the instant messenger.
The target message to be forwarded may be a message sent by another user or a message group in the instant messaging tool, or a message generated after data is captured from a specified webpage.
In a possible implementation manner of the embodiment of the present disclosure, the configuration information may further include a time interval for acquiring data and a message template, and when a target message to be forwarded is acquired, the time interval may be determined from the configuration information, and the web page data is acquired from a specified web page of the instant messaging tool according to the time interval, where the specified web page may be preset by a developer of the plug-in, for example, the specified web page may be a customized web page served by the plug-in, and data included in a message that the client wishes to acquire may be acquired from the customized web page. Then, determining a message template from the configuration information, further searching target data matched with the attribute identifier from the webpage data according to the attribute identifier contained in the message template, and filling the target data into the message template to generate a target message to be forwarded.
Wherein the attribute identifier may indicate the type of data acquired, such as time, sales, inventory, and the like.
For example, in the example of configuration information described above, the attribute identification includes time, TBSQJS, sjfjs, TBSQHKS, and LJBF. And for time, screening out time data from the captured webpage data, replacing the time in the message target with the time data, and processing other attribute identifications in the same way to obtain the target message to be forwarded.
In step S33, in the case where the target message satisfies the transmission condition, the target message is transmitted to the message forwarder.
The sending condition is that the quantity value contained in the target message accords with the time variation rule of the quantity type corresponding to the quantity value. The sending condition can be configured in the plug-in, and whether the time change rule of the quantity type is met or not is judged by comparing the quantity values of the current message and the historical message.
In step S34, when the target message does not satisfy the transmission condition, the alarm information is transmitted to the message forwarder.
In the embodiment of the present disclosure, after the target message to be forwarded is obtained, it is further checked whether the target message meets a sending condition, where the sending condition is that a quantity value included in the target message meets a time variation rule of a quantity type corresponding to the quantity value, for example, a sales amount should increase with time variation, and an inventory amount should decrease with time variation. Under the condition that the target message meets the sending condition, the target message is sent to a message forwarding party firstly; and sending alarm information to the message forwarding party under the condition that the target message does not meet the sending condition. In the above configuration information example, the value of the from field is the message forwarder.
In step S35, a first value of the first designated field is obtained from the configuration information.
In the above example of the configuration information, the first specified field is a trans field, and a corresponding first value is true or false.
In step S36, it is determined whether the first value is a target value.
In step S37, a second value of the second specified field is obtained from the configuration information, where the second value is used to indicate a forwarding condition that needs to be met when the target message is forwarded.
In the above example of the configuration information, the second specified field is a wordprofix field, and the corresponding value thereof is a string of character strings, which is used to indicate a prefix condition of the target message, that is, the beginning character string of the target message needs to be consistent with the value of the field.
In step S38, the first n characters in the target message are obtained according to the number n of characters included in the second value.
In step S39, it is determined whether the first n characters match the second value.
In step S310, the target message is forwarded to the target recipient by the message forwarder.
In the embodiment of the present disclosure, when the first value of the first specified field is the target value, a second value of the second specified field is further obtained from the configuration information, the first n characters in the target message are obtained according to the number n of characters included in the second value, whether the first n characters are consistent with the second value is determined, and the target message is forwarded to the target receiving party through the message forwarding party when the first n characters are consistent with the second value.
For example, in the above example of the configuration information, if the second value of the second specified field is "sales data", it is determined whether the target message to be forwarded starts with "sales data", if so, the target message is sent, otherwise, step S311 is executed, and the current sending process is ended.
In step S311, the present transmission flow ends.
In this embodiment of the present disclosure, when the first value is not the target value, or the first n characters of the target message are inconsistent with the second value, the sending process is ended.
According to the message sending method, the message template is configured in the configuration information, the time interval of data acquisition is adopted, the webpage data are captured from the specified webpage according to the time interval, the target data matched with the attribute identification are searched from the webpage data according to the attribute identification contained in the message template, and the target data are filled into the message template to generate the target message to be forwarded, so that the automatic generation of the message to be forwarded is realized, a user does not need to manually inquire the data and edit the message, and the workload of the user is saved; the message meeting the sending condition is sent to the message forwarding party firstly, and the message forwarding party sends the message meeting the message forwarded condition to the target receiving party, so that the automatic verification of the message is realized, the accuracy of the message received by the target receiving party is ensured, different decision maker groups can be isolated, and the mixed sending and the wrong sending of the message are effectively prevented.
Fig. 4 is a block diagram illustrating a messaging device in accordance with an example embodiment. Referring to fig. 4, the message transmitting apparatus 40 includes a configuration information acquiring module 41, a target message acquiring module 42, a recognizing module 43, and a transmitting module 44.
The configuration information obtaining module 41 is configured to obtain configuration information when a user logs in an instant messaging tool in a state that the user logs in the instant messaging tool, where the configuration information includes a target recipient of a message.
The target message obtaining module 42 is configured to perform obtaining the target message to be forwarded based on the instant messaging tool.
The identifying module 43 is configured to perform identifying the intended recipient from the configuration information.
The sending module 44 is configured to perform sending the targeted message to the targeted recipient.
In a possible implementation manner of the embodiment of the present disclosure, the sending module 44 is specifically configured to send the target message to the target recipient when the target message meets a sending condition, where the sending condition is that a quantity value included in the target message meets a preset rule of a quantity type corresponding to the quantity value.
In a possible implementation manner of the embodiment of the present disclosure, the configuration information further includes a message forwarding party, and the sending module 44 is specifically configured to execute sending the target message to the message forwarding party, and forward the target message to the target receiving party through the message forwarding party.
In a possible implementation manner of the embodiment of the present disclosure, the sending module 44 is further configured to send alarm information to the message forwarder if the target message does not satisfy the sending condition.
In a possible implementation manner of the embodiment of the present disclosure, the sending module 44 is specifically configured to execute obtaining a first value of a first specified field from the configuration information; and under the condition that the first value is determined to be the target value, forwarding the target message to the target receiver through the message forwarding party.
In a possible implementation manner of the embodiment of the present disclosure, the sending module 44 is specifically configured to execute obtaining a second value of a second specified field from the configuration information, where the second value is used to indicate a forwarding condition that needs to be met when the target message is forwarded; acquiring the first n characters in the target message according to the number n of the characters contained in the second value; and under the condition that the first n characters are consistent with the second value, forwarding the target message to the target receiver through the message forwarding party.
In a possible implementation manner of the embodiment of the present disclosure, the configuration information further includes a time interval and a message template for acquiring data, and the target message acquiring module 42 is specifically configured to determine the time interval from the configuration information, and acquire web page data from a specified web page of the instant messaging tool according to the time interval; determining the message template from the configuration information; and searching target data matched with the attribute identifier from the webpage data according to the attribute identifier contained in the message template, and filling the target data into the message template to generate the target message to be forwarded.
In a possible implementation manner of the embodiment of the present disclosure, as shown in fig. 5, on the basis of the embodiment shown in fig. 4, the message sending apparatus 40 further includes:
and the storage module 45 is configured to execute a setting operation of the configuration information of the instant messaging tool in response to the user, and set and store the configuration information.
It should be noted that, regarding the message sending apparatus in the foregoing embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment related to the message sending method, and a detailed description will not be made here.
According to the message sending device in the embodiment of the disclosure, the configuration information when the user logs in the instant messaging tool is acquired in the state that the user logs in the instant messaging tool, the configuration information comprises the target receiver of the message, the target message to be forwarded is acquired based on the instant messaging tool, the target receiver is identified from the configuration information, and the target message to be forwarded is sent to the target receiver.
Fig. 6 is a block diagram illustrating an electronic device 600 for message transmission in accordance with an exemplary embodiment.
As shown in fig. 6, the electronic device 600 includes:
a memory 610 and a processor 620, and a bus 630 connecting different components (including the memory 610 and the processor 620), wherein the memory 610 stores a computer program, and when the processor 620 executes the program, the message sending method according to the embodiment of the disclosure is implemented.
Bus 630 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 600 typically includes a variety of electronic device readable media that can be any available media that can be accessed by electronic device 600 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 610 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 640 and/or cache memory 650. The electronic device 600 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 660 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard disk drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 630 by one or more data media interfaces. Memory 610 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 680 having a set (at least one) of program modules 670 may be stored, for example, in memory 610, such program modules 670 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 670 generally perform the functions and/or methods of the embodiments described in this disclosure.
The electronic device 600 may also communicate with one or more external devices 690 (e.g., keyboard, pointing device, display 691, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interfaces 692. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via the network adapter 693. As shown in FIG. 6, the network adapter 693 communicates with the other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 620 executes various functional applications and data processing by executing programs stored in the memory 610.
It should be noted that, for the implementation process and the technical principle of the electronic device of this embodiment, reference is made to the foregoing explanation of the message sending method of the embodiment of the present disclosure, and details are not described here again.
The electronic device provided by the embodiment of the disclosure can execute the message sending method according to the foregoing embodiment, and the method includes acquiring configuration information when a user logs in an instant messaging tool in a state that the user logs in the instant messaging tool, where the configuration information includes a target recipient of a message, acquiring a target message to be forwarded based on the instant messaging tool, identifying the target recipient from the configuration information, and sending the target message to be forwarded to the target recipient.
To achieve the above embodiments, the present disclosure also proposes a storage medium, where instructions are executed by a processor of an electronic device to enable the electronic device to execute the message sending method according to the foregoing embodiments.
In order to implement the foregoing embodiments, the present disclosure also provides a computer program product, which includes a computer program that, when executed by a processor of an electronic device, enables the electronic device to execute the message sending method according to the foregoing embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (16)

1. A method for sending a message, comprising:
the method comprises the steps that under the condition that a user logs in an instant messaging tool, configuration information when the user logs in the instant messaging tool is obtained, wherein the configuration information comprises a target receiving party of a message, and the user logs in the instant messaging tool through a plug-in;
acquiring a target message to be forwarded based on the instant messaging tool, wherein the target message to be forwarded comprises messages sent by other users or message groups in the instant messaging tool and messages generated after data is captured from a specified webpage;
identifying the target receiver from the configuration information, and sending the target message to the target receiver;
before the obtaining of the configuration information of the user logging in the instant messaging tool, the method further includes:
and setting and storing the configuration information in response to the setting operation of the user on the configuration information of the instant messaging tool.
2. The method of claim 1, wherein said sending the targeted message to the targeted recipient comprises:
and sending the target message to the target receiver under the condition that the target message meets a sending condition, wherein the sending condition is that the quantity value contained in the target message meets a preset rule of a quantity type corresponding to the quantity value.
3. The method of claim 2, wherein the configuration information further includes a message forwarder, and the sending the target message to the target recipient includes:
and sending the target message to the message forwarding party, and forwarding the target message to the target receiving party through the message forwarding party.
4. The method of claim 3, further comprising:
and sending alarm information to the message forwarder under the condition that the target message does not meet the sending condition.
5. The method of claim 3, wherein said forwarding the target message to the target recipient by the message forwarder comprises:
acquiring a first value of a first designated field from the configuration information;
and forwarding the target message to the target receiver through the message forwarder under the condition that the first value is determined to be the target value.
6. The method of claim 3 or 5, wherein said forwarding the target message to the target recipient by the message forwarder comprises:
acquiring a second value of a second specified field from the configuration information, wherein the second value is used for indicating a forwarding condition which needs to be met when the target message is forwarded;
acquiring the first n characters in the target message according to the number n of the characters contained in the second value;
and under the condition that the first n characters are consistent with the second value, forwarding the target message to the target receiver through the message forwarding party.
7. The method of claim 1, wherein the configuration information further includes a time interval for acquiring data and a message template, and the acquiring the target message to be forwarded based on the instant messaging tool includes:
determining the time interval from the configuration information, and acquiring webpage data from a specified webpage of the instant messaging tool according to the time interval;
determining the message template from the configuration information;
and searching target data matched with the attribute identifier from the webpage data according to the attribute identifier contained in the message template, and filling the target data into the message template to generate the target message to be forwarded.
8. A message transmission apparatus, comprising:
the system comprises a configuration information acquisition module, a configuration information acquisition module and a configuration information acquisition module, wherein the configuration information acquisition module is configured to acquire configuration information when a user logs in an instant messaging tool in a state that the user logs in the instant messaging tool, the configuration information comprises a target receiving party of a message, and the user logs in the instant messaging tool through a plug-in;
the target message acquisition module is configured to execute the acquisition of a target message to be forwarded based on the instant messaging tool, wherein the target message to be forwarded comprises messages sent by other users or in a message group in the instant messaging tool and messages generated after data is captured from a specified webpage;
an identification module configured to perform identifying the intended recipient from the configuration information;
a sending module configured to perform sending the targeted message to the targeted recipient;
the storage module is configured to execute setting operation of the configuration information of the instant messaging tool in response to the user, and set and store the configuration information.
9. The apparatus of claim 8, wherein the sending module is specifically configured to perform:
and under the condition that the target message meets the sending condition, sending the target message to the target receiver, wherein the sending condition is that the quantity value contained in the target message meets a preset rule of a quantity type corresponding to the quantity value.
10. The apparatus of claim 9, wherein the configuration information further comprises a message forwarder, and the sending module is specifically configured to perform:
and sending the target message to the message forwarding party, and forwarding the target message to the target receiving party through the message forwarding party.
11. The apparatus of claim 10, wherein the transmitting module is further configured to perform:
and sending alarm information to the message forwarder under the condition that the target message does not meet the sending condition.
12. The apparatus of claim 10, wherein the sending module is specifically configured to perform:
acquiring a first value of a first designated field from the configuration information;
and under the condition that the first value is determined to be the target value, forwarding the target message to the target receiver through the message forwarding party.
13. The apparatus according to claim 10 or 12, wherein the sending module is specifically configured to perform:
acquiring a second value of a second specified field from the configuration information, wherein the second value is used for indicating a forwarding condition which needs to be met when the target message is forwarded;
acquiring the first n characters in the target message according to the number n of the characters contained in the second value;
and under the condition that the first n characters are consistent with the second value, forwarding the target message to the target receiver through the message forwarding party.
14. The apparatus of claim 8, wherein the configuration information further includes a time interval for acquiring data and a message template, and the target message acquisition module is specifically configured to perform:
determining the time interval from the configuration information, and acquiring webpage data from a specified webpage of the instant messaging tool according to the time interval;
determining the message template from the configuration information;
and searching target data matched with the attribute identifier from the webpage data according to the attribute identifier contained in the message template, and filling the target data into the message template to generate the target message to be forwarded.
15. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the message sending method according to any one of claims 1 to 7.
16. A computer-readable storage medium, whose instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-7.
CN202110350927.8A 2021-03-31 2021-03-31 Message sending method and device, electronic equipment and storage medium Active CN113114557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110350927.8A CN113114557B (en) 2021-03-31 2021-03-31 Message sending method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110350927.8A CN113114557B (en) 2021-03-31 2021-03-31 Message sending method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113114557A CN113114557A (en) 2021-07-13
CN113114557B true CN113114557B (en) 2023-03-21

Family

ID=76713201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110350927.8A Active CN113114557B (en) 2021-03-31 2021-03-31 Message sending method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113114557B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114861110A (en) * 2022-05-25 2022-08-05 北京字节跳动网络技术有限公司 Method, device, equipment and storage medium for work forwarding

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039671A (en) * 2018-07-09 2018-12-18 Oppo(重庆)智能科技有限公司 Group message display methods, device, terminal and storage medium
WO2019232825A1 (en) * 2018-06-06 2019-12-12 平安科技(深圳)有限公司 Information customization transmission method, device, computer device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100179995A1 (en) * 2009-01-12 2010-07-15 Yahoo! Inc. Instant message forwarding to selectable accounts
CN106254206A (en) * 2015-06-11 2016-12-21 阿里巴巴集团控股有限公司 A kind of information processing method and equipment
CN107124353B (en) * 2017-05-27 2020-10-27 珠海市魅族科技有限公司 Message processing method and device, computer device and storage medium
CN107749874B (en) * 2017-10-10 2024-03-15 上海嘉楠捷思信息技术有限公司 Message processing method and system
CN109639782B (en) * 2018-11-30 2021-10-01 中体彩科技发展有限公司 Message sending platform and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019232825A1 (en) * 2018-06-06 2019-12-12 平安科技(深圳)有限公司 Information customization transmission method, device, computer device and storage medium
CN109039671A (en) * 2018-07-09 2018-12-18 Oppo(重庆)智能科技有限公司 Group message display methods, device, terminal and storage medium

Also Published As

Publication number Publication date
CN113114557A (en) 2021-07-13

Similar Documents

Publication Publication Date Title
CN110113247B (en) Rich media information receiving and sending system, sending and displaying method and terminal equipment
CN113364853B (en) Business service system, business request method and gateway equipment
CN103593419A (en) Method, device, server and system for inquiring data
CN113391979A (en) Processing method, equipment and system for monitoring data display and storage medium
CN111881385A (en) Push content generation method, device, equipment and readable storage medium
CN110647827A (en) Comment information processing method and device, electronic equipment and storage medium
US20160366077A1 (en) E-mail processing
CN110120908B (en) Group message processing method and device and server
CN114338793A (en) Message pushing method and device, electronic equipment and readable storage medium
CN113114557B (en) Message sending method and device, electronic equipment and storage medium
WO2014000493A1 (en) Method and apparatus for routing a message
CN114244896A (en) Message pushing method and device, electronic equipment and storage medium
CN111194540A (en) Communication control device and method for multi-topic conversation, and computer processing equipment
CN109213955B (en) Data processing method and related equipment
CN107453977A (en) The method and server of a kind of session management
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN112052347A (en) Image storage method and device and electronic equipment
CN105099872A (en) Email handling method, device and system
CN112291420A (en) Message display method and terminal equipment
CN112887803B (en) Session processing method, device, storage medium and electronic equipment
CN114449031B (en) Information acquisition method, device, equipment and storage medium
CN116545977B (en) RPA operation interaction method based on enterprise micro customization
CN113765773B (en) Method and device for processing communication record
CN110224921B (en) Method, device, medium and electronic equipment for sending mail containing recruitment information
CN114500438B (en) File sharing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant