CN114995926A - Message sending method, message receiving method, device, equipment and storage medium - Google Patents

Message sending method, message receiving method, device, equipment and storage medium Download PDF

Info

Publication number
CN114995926A
CN114995926A CN202110226937.0A CN202110226937A CN114995926A CN 114995926 A CN114995926 A CN 114995926A CN 202110226937 A CN202110226937 A CN 202110226937A CN 114995926 A CN114995926 A CN 114995926A
Authority
CN
China
Prior art keywords
message
user account
dynamic element
display
session
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
CN202110226937.0A
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110226937.0A priority Critical patent/CN114995926A/en
Publication of CN114995926A publication Critical patent/CN114995926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the application discloses a message sending method, a message receiving method, a device, equipment and a storage medium, and belongs to the technical field of communication. The method comprises the following steps: displaying a session message sent by a first user account on a session interface; in response to the presence of the trigger information in the session message, displaying a first dynamic element associated with the trigger information; and responding to the collision between the first dynamic element and the identification element of the user account, and sending an interactive message to a second client logged in with a second user account, wherein the user account comprises at least one of the first user account and the second user account. The method improves the man-machine interaction efficiency of the user during interaction in the instant messaging application program while ensuring the interaction effect among the user accounts.

Description

Message sending method, message receiving method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a message sending method, a message receiving method, a device, an apparatus, and a storage medium.
Background
The development of instant messaging application programs has become an indispensable communication tool in people's life.
The instant messaging application program supports sending voice short messages, videos, pictures, files, characters, expressions and the like, and users can use the instant messaging application program for chatting and working communication. Illustratively, the user edits a conversation message in the instant messaging application and sends the conversation message to the social friend. In order to promote the interaction between users, a 'beat-to-beat' function is designed, and the function enables a user account to trigger an interaction effect on a session interface when a 'beat-to-beat' operation is performed, for example, an interaction message of 'beat-to-beat' is displayed, or the interface is triggered to shake, or a terminal is triggered to shake.
Although the 'one-shot' function can well achieve the interaction effect, the interaction effect can be achieved only by clicking the user head portrait to trigger, and operation needs to be executed for each user head portrait in a multi-person interaction scene, so that the human-computer interaction efficiency is reduced.
Disclosure of Invention
The embodiment of the application provides a message sending method, a message receiving method, a device, equipment and a storage medium, which can improve the man-machine interaction efficiency of a user during interaction in an instant messaging application program while ensuring the interaction effect among user accounts. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a message sending method, which is applied to a first client, where the first client logs in a first user account, and the method includes:
displaying a session message sent by a first user account on a session interface;
in response to the presence of the trigger information in the session message, displaying a first dynamic element associated with the trigger information;
and responding to the collision between the first dynamic element and the identification element of the user account, and sending an interactive message to a second client logged in with a second user account, wherein the interactive message is a message of the interaction between the first user account and the user account, and the user account comprises at least one of the first user account and the second user account.
On the other hand, an embodiment of the present application provides a message receiving method, which is applied to a first client, where the first client logs in a first user account, and the method includes:
displaying a session message sent by a second user account on a session interface;
in response to the presence of the trigger information in the session message, displaying a first dynamic element associated with the trigger information;
displaying an interactive message sent by a second user account, wherein the interactive message is generated between the second user account and the user account when a second client logged in with the second user account collides a second dynamic element with an identification element of the user account; the second dynamic element is the same element as the first dynamic element displayed in the second client; the user account includes at least one of a first user account, a second user account, and other second user accounts.
In another aspect, an embodiment of the present application provides a message sending apparatus, where the apparatus includes:
the first message display module is used for displaying the session message sent by the first user account on the session interface;
the first special effect display module is used for responding to the existence of the trigger information in the conversation message and displaying a first dynamic element associated with the trigger information;
and the first message sending module is used for responding to collision between the first dynamic element and the identification element of the user account, and sending an interactive message to a second client which logs in a second user account, wherein the interactive message is a message of interaction between the first user account and the user account, and the user account comprises at least one of the first user account and the second user account.
In another aspect, an embodiment of the present application provides a message receiving apparatus, where the apparatus includes:
the second message display module is used for displaying the session message sent by the second user account on the session interface;
the second special effect display module is used for responding to the existence of the trigger information in the conversation message and displaying the first dynamic element related to the trigger information;
the second message display module is used for displaying an interactive message sent by a second user account, wherein the interactive message is generated between the second user account and the user account when a second client which logs in the second user account collides with a second dynamic element and an identification element of the user account; the second dynamic element is the same element displayed in the second client as the first dynamic element; the user account includes at least one of a first user account, a second user account, and other second user accounts.
In another aspect, an embodiment of the present application provides a terminal, where the terminal includes a processor and a memory, where the memory stores at least one instruction, at least one program, a code set, or an instruction set, and the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the message sending method and the message receiving method as described above.
In another aspect, an embodiment of the present application provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the computer-readable storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the message sending method and the message receiving method as described above.
In yet another aspect, embodiments of the present application provide a computer program product or a computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the terminal executes the message sending method and the message receiving method as described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
when a session interface is displayed on a client, if the client successfully sends or receives a session message, the session message is displayed on the session interface, then if trigger information exists in the session message, a dynamic element associated with the trigger information is displayed, meanwhile, on the client sending the session message, the generation and sending of an interactive message are triggered by the collision phenomenon between the dynamic element and an identification element of a user account in the display process of the dynamic element, and then one user account can finish the interaction with a plurality of user accounts by sending the session message once, so that the human-computer interaction efficiency of a user during the interaction in the client is improved while the good interaction effect between the user accounts is ensured, for example, under the scenes of needing multi-person interaction, such as playing games together by a group, dining together and the like, the user can send one session message, triggering to execute 'one-beat' operation on a plurality of user head portraits in the group chat session, and no longer needing to execute 'one-beat' operation on each user head portraits; secondly, the effect of emphasizing the conversation message and arousing the attention of the account holder is realized by adopting the interactive message display mode and combining the display of the dynamic elements, and even the content expressed by the conversation message can be directly transmitted through the display of the dynamic elements, so that the interactive efficiency of the user when the user communicates through the conversation messages such as characters, expressions and the like in the client is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic illustration of an environment for implementing an embodiment provided by an embodiment of the present application;
fig. 2 is a flowchart of a message sending method according to an embodiment of the present application;
FIG. 3 is a schematic illustration of a conversation interface provided by one embodiment of the present application;
FIG. 4 is a schematic illustration of a dynamic element display provided by one embodiment of the present application;
FIG. 5 is a diagram illustrating an interactive message display provided by one embodiment of the present application;
FIG. 6 is a schematic diagram of interface hopping provided by an embodiment of the present application;
fig. 7 is a flowchart of a message sending method according to another embodiment of the present application;
FIG. 8 is a schematic illustration of a dynamic element display provided by another embodiment of the present application;
FIG. 9 is a schematic diagram of a message bubble display provided by another embodiment of the present application;
fig. 10 is a schematic diagram of determining a special effect trigger timing according to another embodiment of the present application;
fig. 11 is a flowchart of a message receiving method according to an embodiment of the present application;
fig. 12 is a block diagram of a message sending apparatus according to an embodiment of the present application;
fig. 13 is a block diagram of a message receiving apparatus according to an embodiment of the present application;
fig. 14 is a block diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
FIG. 1 illustrates a schematic diagram of an implementation environment for an embodiment provided by an exemplary embodiment of the present application. The embodiment implementation environment can be implemented as a system with message sending and receiving functions, for example, the system can include: a first terminal 10, a second terminal 20 and a server 30.
In the embodiment of the present application, a first client is installed and operated in the first terminal 10, and a second client is installed and operated in the second terminal 20. The first terminal 10 and the second terminal 20 may be electronic devices such as a mobile phone, a tablet Computer, a wearable device, a PC (Personal Computer), and the like.
Illustratively, the first client and the second client may be clients of a target application, for example, may be clients of an instant messaging application, clients of a social class application, clients of a community class application, clients of a critique class application, and the like. The first client and the second client may be clients of the same application, for example, the first client and the second client may be clients of the same instant messaging application. The first client and the second client have a messaging function, and the message may be a conversation message, for example, a text message, a picture message, a voice message, an emoticon message, or the like; the message may also be an interactive message. In one example, a first client may send a message, and a second client may receive the message; in another example, the second client may send a message and the first client may receive the message. The first client corresponds to a first user account, the second client corresponds to a second user account, and in a possible implementation manner, the first user account and the second user account have a friend relationship, that is, the first user account is in a friend list of the second client, and the second user account is also in the friend list of the first client; in a possible implementation manner, the first user account and the second user account do not have a friend relationship, that is, the first user account is not in the friend list of the second client, and the second user account is not in the friend list of the first client.
Illustratively, the server may be a background server of the first client and the second client. The server 30 may be one server, a server cluster composed of a plurality of servers, or a cloud computing service center. The server 30 may communicate with the first terminal 10 and the second terminal 20 through a wired or wireless network, such as relaying messages transceived between the first terminal 10 and the second terminal 20.
Several embodiments of the present application will be described below.
Fig. 2 shows a flowchart of a message sending method provided by an embodiment of the present application, where the method may be applied to a terminal, and in a possible implementation manner, the method may be executed by a first client of a target application in the terminal, where a first user account is logged in the first client, and the method may include the following steps.
Step 201, displaying a session message sent by a first user account on a session interface.
The session interface is a user interface in the first client, and the user interface is an interface for presenting a session message. The session interface may be a private chat session interface between two users, or a group chat session interface between at least three users. Illustratively, the first client may be a client of an instant messaging application, or may be a client of a social application, or may also be a client of another application. The session message may also be referred to as an instant message, a conversation message, etc., which is not limited in this application.
For example, a user may first run a first client, log in a first user account in the first client, then select a target contact or a target group, and enter a session interface corresponding to the target contact or the target group. For example, a user may click on the avatar/entry of a friend in the buddy list, thereby displaying a session interface for chatting with the friend; the user may also click on a group avatar/entry in the list of group chats, thereby displaying a conversation interface for the group chats.
Illustratively, as shown in fig. 3, the conversation interface 30 may include a conversation area 31 and an input area 32, the conversation area 31 is used for showing conversation messages that the user has successfully sent and/or received, the conversation messages may include text messages, voice messages, emoticon messages, combinations of text messages and emoticon messages, and the like, and the input area 32 is used for receiving the conversation messages input by the user. Illustratively, the dialog region 31 may include, in addition to the dialog message, the account name of the interlocutor, the avatar of the user, and the like.
For example, in this embodiment, after the first user account successfully sends the session message, the terminal displays the session message on the session interface, for example, the terminal may display the session message through a message bubble.
Illustratively, the input area 32 includes an expression input panel, the expression input panel is a panel storing an expression thumbnail corresponding to an expression (including a dynamic expression and a static expression), the user may select an expression to be sent on the expression input panel, the user may also add the expression shown in the dialog area 31 to the expression input panel, the user may also create a new expression in the expression input panel, and the user may also delete the expression stored in the expression input panel.
Also included in the input area 32 is, illustratively, a text message input panel, which refers to a panel for receiving user input text messages. Exemplarily, the input area 32 includes an input switching control 321, where the input switching control 321 is a control for triggering switching between a text message input panel and an expression input panel, and in a case that the current input area includes a text message input panel, a user clicks the input switching control 321, and may switch the text message input panel to the expression input panel; in the case where an emoticon input panel is included in the current input area, the emoticon input panel may be switched to a text message input panel by the user clicking the input switching control 321. Illustratively, other controls may also be included in the input area 32, such as a voice input control 322 (voice input control refers to a control for receiving voice input by the user), a more options control 323 (more options control refers to a control that triggers the display of more options functionality), a message sending control (message sending control refers to a control for sending a conversation message), a message deleting control (message deleting control refers to a control for deleting a message that has been input by the user), and so forth.
In response to the presence of the trigger information in the session message, a first dynamic element associated with the trigger information is displayed, step 202.
The terminal determines whether the session message contains the trigger information or not, if yes, the first dynamic element associated with the trigger information is determined, and the first dynamic element associated with the trigger information is displayed on the session interface.
Optionally, each type of trigger information corresponds to a unique dynamic element, and/or each type of trigger information corresponds to at least two dynamic elements; wherein each type of trigger information comprises at least one trigger information. Illustratively, the content of each type of trigger information is the same, for example, the expression emotion of each type of trigger information is the same.
Illustratively, the terminal determines a unique dynamic element associated with the trigger information in response to the trigger information existing in the session message, that is, the first dynamic element is obtained; or, randomly determining a first dynamic element from at least two candidate dynamic elements associated with the trigger information.
Illustratively, the trigger information includes at least one of text, expression and voice. For example, the trigger information may be a specific word, or a specific expression, or an input voice including a specific word, and the input semantic refers to voice information input by a user.
Illustratively, as shown in fig. 4, when the first user account 41 successfully sends the conversation message "eat chicken", the terminal displays the conversation message on the conversation interface 30, and then dynamically displays a first dynamic element 42 associated with "eat chicken" on the conversation interface 30 in response to the keyword "eat chicken" existing in the conversation message.
Optionally, the terminal displays a trajectory line of the movement of the first dynamic element at the same time as the display of the first dynamic element. As shown in fig. 4, a trajectory line 43 of the movement of the first dynamic element 42 is also displayed on the conversation interface 30.
Optionally, the display hierarchy of the first dynamic element is at the highest level of all displayed content of the terminal screen. All the displayed contents of the terminal screen refer to all the contents displayed on the terminal screen.
In a possible implementation, the display hierarchy of the first dynamic element is located at the lowest level of all the display contents of the terminal screen, and when there is a transparent display of the display contents, the user can see the first dynamic element through the transparent display of the display contents.
Optionally, the display hierarchy of the first dynamic element is higher than the display hierarchy of the conversation interface. Illustratively, the display hierarchy of the first dynamic element is higher than the display hierarchy of all display elements on the conversation interface.
Illustratively, the display elements on the conversation interface include at least one of:
a message bubble displaying a conversation message;
the user account corresponding to the message bubble;
the message bubble is corresponding to an identification element of the user account, such as a head portrait of the user account, a nickname of the user account, a head portrait pendant of the user account, and the like;
the remark name corresponding to the message bubble, for example, the remark name corresponding to the user account.
Optionally, the display level of the first dynamic element is higher than the display level of the system status bar. Wherein the system status bar does not belong to a display element of the conversation interface. It should be noted that other setting manners of the display hierarchy of the first dynamic element may also be adopted, and are not listed in this embodiment.
Step 203, in response to the collision between the first dynamic element and the identifier element of the user account, sending an interactive message to the second client logged in with the second user account.
The interactive message is a message of interaction between a second user account and a user account, and the user account comprises at least one of a first user account and a second user account. Illustratively, if the user account includes a first user account, the interactive message includes a first interactive message of the first user account and the account itself; and if the user account comprises a second user account, the interactive message comprises a second interactive message of the first user account and the second user account.
Illustratively, the terminal responds to the collision of the first dynamic element and the identification element of the first user account, displays the first interactive message, and sends the first interactive message to a second client logged with a second user account; and the terminal responds to the collision of the first dynamic element and the identification element of the second user account, displays the second interactive message and sends the second interactive message to the second client logged with the second user account. Illustratively, the session interface includes identification elements of at least two second user accounts, and the terminal sends the interactive message to at least two clients logged in the at least two user accounts.
Optionally, the message content of the interactive message includes: a first field corresponding to the first user account, an action description field used for expressing the action executed by the first user account on the second user account, and a second field corresponding to the second user account; or, a first field corresponding to the first user account, an action description field for representing that the first user account performs an action on the account itself, and a second field corresponding to the first user account. For example, at least one of the first field, the action description field, and the second field may be a custom field previously edited by the user for the interactive message.
For example, the interactive message is a message different from a chat message, and the message content of the interactive message may be self-assembled by the client, for example, the message content of the interactive message includes: a first field, an action description field and a second field ordered in sequence. Under the condition that the interactive message comprises a first user account and a second user account, a first field is determined by inquiring in a local database according to the first user account, a second field is determined by inquiring in the local database according to the second user account, and an action description field is determined according to at least one of server setting, first user account setting and second user account setting. The local database stores the server and the custom fields pre-edited by each user account (self and each friend). For example, the action description field may be "beat one beat", "@", "stamp stamped", etc., for example, the interactive message of the assembly completion may be: boring "I" claps "user account 1" which is just playing the false sleep.
For example, the identification element of the user account may include at least one of the following: a user account, for example, if the user account is a group of numbers, the group of numbers may be displayed as an identification element; the head portrait of the user account; an account name corresponding to the user account, for example, the account name is "adata", then "adata" may be displayed as an identification element; the name of the remark of the user account, for example, the name of the remark of the friend held by the user account.
Illustratively, taking the identification element as the avatar of the user account as an example, as shown in fig. 5, when the first dynamic element 42 collides with the avatar 44 of the "user account 2", the terminal displays an interactive message "", i' beats clever "user account 2"; when the first dynamic element 42 collides with the avatar 45 of the "user account 3", an interactive message is displayed, "i' clap the head of the" user account 3 ".
Optionally, the terminal reads a target user account corresponding to the ith identification element in response to the collision between the first dynamic element and the ith identification element, where i is a positive integer; responding to the fact that the target user account does not exist in the account record table, and displaying interaction messages of the first user account and the target user account; and responding to the existence of the target user account in the account record table, and not displaying the interactive message of the first user account and the target user account. Illustratively, as shown in fig. 5, the first dynamic element 42 has two collisions with the avatar 44 of "user account 2", and only one interactive message "i'm ' beats clever" user account 2 ' "is displayed.
Meanwhile, the terminal responds to the fact that the target user account does not exist in the account record table, and the target user account is recorded in the account record table; then, responding to the account number in the account number record table being smaller than the account number threshold value, and continuously displaying the first dynamic element; and stopping displaying the first dynamic element in response to the account number in the account number record table being equal to the account number threshold.
Illustratively, as shown in fig. 5, after the first display element stops displaying, the terminal redisplays the session interface 30 before the first dynamic element is displayed.
Optionally, the terminal, in response to the collision between the first dynamic element and the ith identification element, reads a second user account corresponding to the ith identification element as a target user account, where i is a positive integer; in response to the target user account not existing in the account set, storing the target user account into the account set; and sending the interactive message to the target user account in the account set.
That is, the terminal may select the second user account as the target user account by determining whether there is a collision between the first dynamic element on the session interface of the first user account and the identifier element of the second user account, and then send the interactive element to the target user account. Illustratively, the terminal may send an interactive message to a target user account in the account set in response to the first dynamic element stopping displaying; or, the terminal may send the interaction message to the target user account in the account set in response to the account number in the account set being equal to the account number threshold. In one possible implementation manner, the random selection of the target user account may be achieved through a random collision between the first dynamic element and the second user account.
Optionally, the interactive message includes at least one of a team invitation message, a battle invitation message, a virtual article presentation message, and a sharing message.
Optionally, the interactive message may include a link associated with the trigger information; and after the terminal displays the interactive message on the session interface, responding to an interface entering instruction on the link, and displaying a user interface corresponding to the link. For example, the link may be a pickup link of a virtual item package, for example, a pickup link of a virtual item such as a red envelope, a virtual resource, a coupon, a credit, and a voucher, and the terminal may enter a pickup interface of the virtual item through the link; or, the link may be a link for participating in group invitation, for example, a group link for ordering food together, participating in group battles in a virtual battle game, participating in chorus or singing, and the like, and the terminal may enter a group interface through the link; or, the sharing link of the information may be, for example, a sharing link of news, movie sharing, book reading sharing, and the like. For example, the link may include a jump link from the first client to a third client, wherein the first client and the third client are clients of different applications. Illustratively, as shown in fig. 6, the interactive message includes a group link of "eat chicken game", a group battle link 81 is displayed on the session interface 80, and the terminal jumps from the first client to a group interface 82 on the game client in response to a single click operation on the group battle link 81.
Illustratively, the above-described account set may be stored in an account record table. For example, the target user account may be a first user account or a second user account.
Illustratively, the account record table is a temporary account record table set in the terminal when the first client is operated. And after the first dynamic element stops displaying each time, the terminal clears the user account recorded in the account record table. Illustratively, if at least two first dynamic elements in a mobile state exist on the session interface, the terminal may set a temporary account record table corresponding to each first dynamic element one to one when each first dynamic element is triggered and displayed; alternatively, the terminal may store the user account and the first dynamic element in a temporary account record table.
To sum up, in the message sending method provided by this embodiment, when the session interface is displayed on the client, if the client successfully sends the session message, the session message is displayed on the session interface, then if the session message has the trigger information, the dynamic element associated with the trigger information is displayed, and meanwhile, on the client sending the session message, in the process of displaying the dynamic element, the generation and sending of the interactive message are also triggered by the collision phenomenon between the dynamic element and the identification element of the user account, so that one user account can complete the interaction with multiple user accounts by sending the session message once, while ensuring a good interaction effect between the user accounts, the human-computer interaction efficiency of the user during the interaction in the client is improved, for example, in a scene that a group plays games, eats a meal together and needs multi-user interaction, the user can send one session message, triggering to execute 'one-beat' operation on a plurality of user head portraits in the group chat session, and no longer needing to execute 'one-beat' operation on each user head portraits; secondly, the interactive message is displayed in combination with the dynamic element display, so that the effects of emphasizing the conversation message and arousing the attention of an account holder are achieved, even the content expressed by the conversation message can be directly transmitted through the dynamic element display, and the interactive efficiency of the user in the client-side when the user communicates through the conversation message such as characters, expressions and the like is improved.
For the display of the first dynamic element, the terminal first determines a moving path of the first dynamic element, and then displays the first dynamic element according to the moving path, for example, as shown in fig. 7, step 202 shown in fig. 2 can be implemented by step 2021 and step 2022, as follows:
step 2021, in response to the specified trigger information existing in the session message, determining a moving path of the first dynamic element on the session interface, where the moving path is used to guide the first dynamic element to collide with the identifier elements of at least n user accounts in sequence.
Wherein n is a positive integer. Illustratively, the terminal determines the layout of the display elements on the session interface, and generates the moving path of the first dynamic element on the session interface according to the layout of the display elements. For example, the terminal determines a trajectory form of the movement trajectory based on the layout of the display elements, and generates the movement path according to the determined trajectory form. Illustratively, the trajectory configuration may include at least one of a curved line, a straight line, an arc line, and a polygonal line.
The display element comprises a session message, and optionally, the terminal determines n session messages on a session interface; responding to the fact that the n conversation messages are displayed on the same side of the conversation interface, and determining that the moving path is a path in a first track form; responding to the fact that at least two conversation messages exist in the n conversation messages and are displayed on different sides of a conversation interface, and determining that the moving path is a path in a second track form; wherein the second track formation is a different track formation than the first track formation.
For example, as shown in fig. 5, the terminal determines that the session message 46 of "user account 1" is located on the left side of the session interface 30, the session message 47 of "user account 2" and the session message 48 of "user account 3" are located on the right side of the session interface 30, the four session messages are distributed on two sides (i.e., non-same side) of the session interface 30, and the first dynamic element 42 is dynamically displayed according to the moving path 43 in the form of a polyline as a track. As shown in fig. 8, the terminal determines that the session message 51 of the "user account a", the session message 52 of the "user account b", and the session message 53 of the "user account c" are all located on the left side of the session interface 50, and the four session messages are distributed on the same side of the session interface 50, and are dynamically displayed on the first dynamic element 54 according to the moving path 55 in the form of a straight line as a track.
Step 2022, display the first dynamic element in the moving state according to the moving path.
For example, the first dynamic element may include a dynamic emoticon, the dynamic emoticon may be an animation composed of a plurality of frames of images, and the dynamic emoticon may be a file Format of a Graphics Interchange Format (GIF). Optionally, the animated expression may include two parts, namely a dynamic body diagram and an animated element, the dynamic body diagram is a body part of the dynamic expression, such as appearance images of various things, the animated element may be understood as an element in the dynamic expression that embodies an animated special effect, the animated element may substantially embody the animated special effect of the entire dynamic expression, and the animated element may serve as an auxiliary element to better represent the dynamic expression. For example, dynamic expressions may include bullet shots, archery, sword defense, squirt gun water spray, lightning, magic broom, and the like; taking bullet shooting as an example, the dynamic body map may be a bullet, and accordingly, the animation element may be an animated special effect on a bullet shooting trajectory following display, such as the following display of the trajectory line 43 in fig. 5.
In summary, the message sending method provided in this embodiment enriches the display effect of the dynamic elements by setting different moving paths, and improves the interest of the user in the interaction through the client.
In some embodiments, the terminal displays a message bubble of the session message on the session interface, and then the first dynamic element may also collide with the message bubble during the dynamic display according to the moving path, and then the terminal displays an interactive animation in which the first dynamic element interacts with the message bubble in response to the first dynamic element colliding with the message bubble on the session interface.
Optionally, the interactive animation comprises at least one of:
interactive animations for changing the color of a message bubble, such as changing the message bubble border from one color to another, or cycling through multiple colors of message bubble borders;
interactive animation for changing the shape of a message bubble, e.g., the shape of a message bubble changes from a rounded rectangle to an ellipse;
interactive animations for changing message bubble size, e.g., message bubble size is becoming larger or smaller;
hiding a first display element of the message bubble and displaying an interactive animation of a second display element of the message bubble, wherein the first display element is a display element when the message bubble is displayed by adopting a polymerization structure, and the second display element is a display element when the message bubble is displayed by adopting a separation structure;
a special effect animation for changing a display position of the second display element.
For example, regarding a message bubble of an aggregation structure as one first division (div) element, and regarding a div region of the first div element as a boundary, at least two second div elements are set as message bubbles of a separation structure, where the size of each second div element is smaller than that of the first div element, and the attribute value of each second div element is different, for example, the attribute value may include values of left, top, options, and transform attributes of the div element. The hiding of the first display element of the message bubble and the displaying of the second display element of the message bubble, that is, hiding the first div element and displaying at least two second div elements, may further cause the second div element to move by values of left, top, opacity, transform attributes of the second div element, including a change in a display position of the second div element.
Illustratively, as shown in fig. 9, when the first dynamic element 42 collides with the message bubble, the terminal hides the complete message bubble and displays the split display elements of the message bubble, such as a split bubble element 61 and a text element 62, and a burst effect can be formed in the form of animation.
In summary, the message sending method provided by this embodiment enriches the display effect of the dynamic element through the animation display of the first dynamic element, and improves the interest of the user in the communication and interaction through the client.
For example, as shown in fig. 10, the distance between adjacent message bubbles in the session interface is k, the ordinate Y0 of the upper boundary of the message bubble 71 is known, the ordinate of the lower boundary of the message bubble 72 is determined to be Y0+ k, the first dynamic element moves to the position with the ordinate Y0+ k, and the terminal determines that the first dynamic element collides with the message bubble 72; and taking the ordinate of the middle position of the identification element in the session message as a collision node, determining that the ordinate of the middle position of the identification element 73 is Y1, moving the first dynamic element to the position with the ordinate of Y1, and determining that the first dynamic element collides with the identification element 73 by the terminal.
In some embodiments, the session message may further include a virtual good package; the terminal may display a first dynamic element associated with the virtual good package in response to the conversation message including the virtual good package; and responding to the collision between the first dynamic element and the identification element of the user account, and sending an interactive message to a second client logged with a second user account, wherein the interactive message is used for prompting the second user account to pick up the virtual article package.
For example, the first dynamic element may be a dynamic element associated with the virtual package, for example, the first dynamic element may be a dynamic element corresponding to a red package; or, the first dynamic element may also be a dynamic element associated with remark information on the virtual item package, for example, a red package is provided with a blessing word or a blessing expression, and the first dynamic element may be a dynamic element corresponding to the blessing word or the blessing expression.
Illustratively, the terminal may further select a second user account as the target user account through collision between the first dynamic element and the identification element, and send a session message carrying the virtual package to the second client logged in with the target user account, and an interaction message between the first user account and the target user account. For example, the terminal sends a 'beat one beat' message to the second client while sending the session message carrying the virtual commodity package to the second client, so as to prompt the holder of the second user account to pick up the red package.
For example, the terminal may set the number h of virtual commodity packages when editing the session message, where h is a positive integer; then, in response to the collision between the first dynamic element and the identifier of the second user account, storing the second user account as a target user account in an account record table; and responding to the account number in the account number record table being equal to h, and sending the virtual commodity package to the second client terminal logged with the target user account number.
For example, the interactive message may be sent to the clients corresponding to all user accounts in the chat group corresponding to the session interface.
In summary, the message sending method provided in this embodiment selects the sending object of the virtual commodity package through the collision between the first dynamic element and the identification element of the user account, so as to enrich the sending manner of the red packet and increase the interest of sending the red packet.
Fig. 11 shows a flowchart of a message receiving method according to an embodiment of the present application, where the method may be applied in a terminal, and in a possible implementation manner, the method may be executed by a first client of a target application in the terminal, where a first user account is logged in the first client, and the method may include the following steps.
Step 301, displaying a session message sent by the second user account on the session interface.
Illustratively, the terminal displays the session message on the session interface after receiving the session message sent by the second user account. The detailed description of the display of the session message can refer to step 201, and will not be described herein.
Step 302, in response to the existence of the trigger information in the session message, displaying a first dynamic element associated with the trigger information, and displaying an interactive message sent by the second user account.
The interactive message is generated by a second client logged in with a second user account when a second dynamic element collides with an identification element of the user account, the second dynamic element is an element which is displayed in the second client and is the same as the first dynamic element, and the user account comprises at least one of the first user account, the second user account and other second user accounts.
Illustratively, the interactive message includes at least one of: the interactive messages of the second user account and the account number, the interactive messages of the second user account and the first user account, and the interactive messages of the second user account and other second user accounts.
Illustratively, the message content of the interactive message includes: a first field corresponding to the first user account, an action description field used for expressing the action executed by the second user account on the first user account, and a second field corresponding to the second user account; or, a first field corresponding to the second user account, an action description field for representing the action executed by the second user account on the account, and a second field corresponding to the second user account; or, the first field corresponding to the other second user accounts, the action description field for representing the second user account to execute the action on the other second user accounts, and the second field corresponding to the second user account.
In some embodiments, the interactive message may be self-assembled by the client. Illustratively, the terminal receives an interaction instruction of a user account sent by a second user account, wherein the interaction instruction carries two interactive user accounts; and generating and displaying the interactive messages of the two user accounts.
Illustratively, the interactive message may include at least one of a team invitation message, a battle invitation message, a virtual article gifting message, and a sharing message.
Illustratively, the interactive message includes a link associated with the trigger information; the terminal displays the link on a session interface; and responding to the interface entering instruction on the link, and displaying the user interface corresponding to the link.
Optionally, the terminal determines a moving path of the first dynamic element on the session interface, where the moving path is used to guide the first dynamic element to collide with the identifier elements of at least n user accounts in sequence; displaying the first dynamic element in the moving state according to the moving path; wherein n is a positive integer. Illustratively, the terminal determines n session messages on a session interface; responding to the fact that the n conversation messages are displayed on the same side of the conversation interface, and determining that the moving path is a path in a first track form; and determining that the moving path is a path in a second track form in response to the fact that at least two conversation messages exist in the n conversation messages and are displayed on different sides of the conversation interface.
Optionally, the terminal displays a trajectory line of the movement of the first dynamic element at the same time as the display of the first dynamic element.
Optionally, in response to the first dynamic element colliding with the message bubble on the conversation interface, an interactive animation is displayed in which the first dynamic element interacts with the message bubble. Illustratively, the interactive animation includes at least one of:
an interactive animation for changing a color of a message bubble;
an interactive animation for changing a shape of the message bubble;
an interactive animation for changing a message bubble size;
hiding a first display element of the message bubble and displaying an interactive animation of a second display element of the message bubble, wherein the first display element is a display element when the message bubble is displayed by adopting a polymerization structure, and the second display element is a display element when the message bubble is displayed by adopting a separation structure;
a special effect animation for changing a display position of the second display element.
Optionally, the display hierarchy of the first dynamic element is located at the highest layer of all display contents of the terminal screen; or the display level of the first dynamic element is higher than that of the session interface; alternatively, the display hierarchy of the first dynamic element is higher than the display hierarchy of the display elements on the conversation interface. Illustratively, the display elements on the conversation interface include at least one of:
a message bubble displaying a conversation message; the user account corresponding to the message bubble; the message bubble corresponds to an identification element of the user account; and the remark name corresponding to the message bubble.
Optionally, the terminal reads a target user account corresponding to the ith first identifier element in response to the collision between the first dynamic element and the ith first identifier element; responding to the account record table without the target user account, and recording the target user account into the account record table; responding to the account number in the account number record table being smaller than the account number threshold value, and continuing to display the first dynamic element; in response to the number of accounts being equal to the number of accounts threshold, ceasing to display the first dynamic element.
Optionally, for displaying the interactive message, the terminal receives the interactive message sent by the second user account, where the interactive message is generated when the second dynamic element collides with the ith second identifier element; responding to the collision between the first dynamic element and the ith first identification element, and displaying an interactive message of the second user account and the target user account; the ith first identification element and the ith second identification element are the same identification element displayed on the session interfaces of different terminals, and i is a positive integer.
Optionally, the terminal, in response to the presence of the trigger information in the session message, randomly determines a first dynamic element from at least two candidate dynamic elements associated with the trigger information; displaying a first dynamic element associated with the trigger information.
In one possible implementation manner, the session message includes a virtual package, and accordingly, the interactive message is used for prompting the second user account to retrieve the virtual package; the terminal responds to a pickup instruction on a pickup interface of the virtual commodity package and displays a first dynamic element associated with the virtual commodity package; and responding to the stopping of the display of the first dynamic element, and displaying the picked interface of the virtual commodity package. For example, the pickup prompt message may be a "beat-to-beat" message.
To sum up, in the message receiving method provided in this embodiment, when a session interface is displayed on a client, if the client receives a session message, the session message is displayed on the session interface, and then if a trigger message exists in the session message, a dynamic element associated with the trigger message is displayed, and at the same time, on the client that sends the session message, in the display process of the dynamic element, generation and sending of an interactive message are also triggered by a collision phenomenon between the dynamic element and an identification element of a user account, so that one user account can complete interaction with multiple user accounts by sending the session message once, while ensuring a good interaction effect between the user accounts, human-computer interaction efficiency of a user during interaction in the client is improved, for example, in a scene that a group plays games, eats a meal together and requires multi-user interaction, the user can send one session message, triggering the operation of 'shooting one beat' on a plurality of user head portraits in the group chat session, and avoiding the operation of 'shooting one beat' on each user head portraits; secondly, the effect of emphasizing the conversation message and arousing the attention of the account holder is realized by adopting the interactive message display mode and combining the display of the dynamic elements, and even the content expressed by the conversation message can be directly transmitted through the display of the dynamic elements, so that the interactive efficiency of the user when the user communicates through the conversation messages such as characters, expressions and the like in the client is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 12 is a block diagram illustrating a message sending apparatus according to an embodiment of the present application. The device has the functions of realizing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The device may be a terminal or may be provided in a terminal. The apparatus may include:
a first message display module 401, configured to display a session message sent by a first user account on a session interface;
a first special effect display module 402, configured to, in response to the presence of the trigger information in the session message, display a first dynamic element associated with the trigger information;
the first message sending module 403 is configured to send, in response to a collision between the first dynamic element and the identifier element of the user account, an interactive message to a second client that logs in a second user account, where the user account includes at least one of the first user account and the second user account.
In some embodiments, the first special effects display module 402 is configured to:
determining a moving path of the first dynamic element on the session interface, wherein the moving path is used for guiding the first dynamic element to collide with the identification elements of at least n user accounts in sequence;
displaying the first dynamic element in the moving state according to the moving path; wherein n is a positive integer.
In some embodiments, the first special effects display module 402 is configured to:
determining n session messages on a session interface;
responding to the fact that the n conversation messages are displayed on the same side of the conversation interface, and determining that the moving path is a path in a first track form;
and determining that the moving path is the path of the second track form in response to the fact that at least two conversation messages exist in the n conversation messages and are displayed on different sides of the conversation interface.
In some embodiments, the first special effects display module 402 is configured to:
and displaying the track line of the movement of the first dynamic element at the same time of displaying the first dynamic element.
In some embodiments, the first special effects display module 402 is to:
and responding to the collision of the first dynamic element with the message bubble on the conversation interface, and displaying the interactive animation of the first dynamic element interacting with the message bubble.
In some embodiments, the interactive animation comprises at least one of:
an interactive animation for changing a color of a message bubble;
an interactive animation for changing a shape of the message bubble;
an interactive animation for changing a message bubble size;
hiding a first display element of the message bubble and displaying an interactive animation of a second display element of the message bubble, wherein the first display element is a display element when the message bubble is displayed by adopting a polymerization structure, and the second display element is a display element when the message bubble is displayed by adopting a separation structure;
a special effect animation for changing a display position of the second display element.
In some embodiments, the display hierarchy of the first dynamic element is at the highest level of all display content of the terminal screen;
or the display level of the first dynamic element is higher than that of the session interface;
alternatively, the display hierarchy of the first dynamic element is higher than the display hierarchy of the display elements on the conversation interface.
In some embodiments, the display elements on the conversation interface include at least one of:
a message bubble displaying a conversation message;
the user account corresponding to the message bubble;
the message bubble corresponds to an identification element of the user account;
and the remark name corresponding to the message bubble.
In some embodiments, the first message sending module 403 is configured to:
in response to the collision between the first dynamic element and the ith identification element, reading a target user account corresponding to the ith identification element, wherein i is a positive integer;
and responding to the fact that the target user account does not exist in the account record table, and displaying the interactive message of the first user account and the target user account.
In some embodiments, the first special effect display module 402 is configured to record a target user account into the account record table in response to no target user account exists in the account record table;
responding to the account number in the account number recording table smaller than the account number threshold value, and continuing to display the first dynamic element; in response to the number of accounts being equal to the number of accounts threshold, ceasing to display the first dynamic element.
In some embodiments, the first message sending module 403 is configured to:
responding to collision between the first dynamic element and the ith identification element, reading a second user account corresponding to the ith identification element as a target user account, wherein i is a positive integer;
responding to the fact that the target user account does not exist in the account set, and recording the target user account into the account set;
sending an interactive message to a target user account in the account set; the interactive message comprises at least one of a team invitation message, a battle invitation message, a virtual article presentation message and a sharing message.
In some embodiments, the first message display module 401 is configured to:
displaying an interactive message on the session interface, wherein the interactive message comprises a link associated with the trigger information;
and responding to an interface entering instruction on the link, and displaying a user interface corresponding to the link.
In some embodiments, the first special effects display module 402 is to:
responding to the existence of trigger information in the session message, and randomly determining a first dynamic element from at least two candidate dynamic elements associated with the trigger information;
displaying a first dynamic element associated with the trigger information.
In some embodiments, the message content of the interactive message comprises:
a first field corresponding to the first user account, an action description field used for representing the action executed by the first user account on the second user account, and a second field corresponding to the second user account;
or, a first field corresponding to the first user account, an action description field for representing that the first user account performs an action on the account itself, and a second field corresponding to the first user account.
In some embodiments of the present invention, the,
a first special effects display module 402 for displaying a first dynamic element associated with a virtual good package in response to the conversation message including the virtual good package;
the first message sending module 403 is configured to send, in response to a collision between the first dynamic element and the identifier element of the user account, an interactive message to the second client, where the interactive message is used to prompt the second user account to retrieve the virtual package.
To sum up, in the message sending apparatus provided in this embodiment, when the session interface is displayed on the client, if the client successfully sends the session message, the session message is displayed on the session interface, and then if the session message has the trigger information, the dynamic element associated with the trigger information is displayed, and meanwhile, on the client sending the session message, in the process of displaying the dynamic element, the generation and sending of the interactive message are also triggered by the collision phenomenon between the dynamic element and the identification element of the user account, so that one user account can complete the interaction with multiple user accounts by sending the session message once, while ensuring a good interaction effect between the user accounts, the human-computer interaction efficiency of the user during the interaction in the client is improved, for example, in a scene requiring multi-user interaction such as a group playing a game, having a meal together, the user can send one session message, triggering to execute 'one-beat' operation on a plurality of user head portraits in the group chat session, and no longer needing to execute 'one-beat' operation on each user head portraits; secondly, the effect of emphasizing the conversation message and arousing the attention of the account holder is realized by adopting the interactive message display mode and combining the display of the dynamic elements, and even the content expressed by the conversation message can be directly transmitted through the display of the dynamic elements, so that the interactive efficiency of the user when the user communicates through the conversation messages such as characters, expressions and the like in the client is improved.
Fig. 13 is a block diagram illustrating a message receiving apparatus according to an embodiment of the present application. The device has the functions of implementing the method examples, and the functions can be realized by hardware or by hardware executing corresponding software. The device may be a terminal or may be provided in a terminal. The apparatus may include:
a second message display module 501, configured to display a session message sent by a second user account on a session interface;
a second special effect display module 502, configured to, in response to the presence of the trigger information in the session message, display a first dynamic element associated with the trigger information;
a second message display module 501, configured to display an interactive message sent by a second user account, where the interactive message is a message generated by a second client that logs in the second user account and interacts with the user account when a second dynamic element collides with an identifier element of the user account; the second dynamic element is the same element as the first dynamic element displayed in the second client; the user account includes at least one of a first user account, a second user account, and other second user accounts.
In some embodiments, the second special effects display module 502 is configured to:
determining a moving path of the first dynamic element on the session interface, wherein the moving path is used for guiding the first dynamic element to collide with the identification elements of at least n user accounts in sequence;
displaying the first dynamic element in the moving state according to the moving path; wherein n is a positive integer.
In some embodiments, the second special effects display module 502 is configured to:
determining n session messages on a session interface;
responding to the fact that the n conversation messages are displayed on the same side of the conversation interface, and determining that the moving path is a path in a first track form;
and determining that the moving path is the path in the second track form in response to the fact that at least two conversation messages exist in the n conversation messages and are displayed on different sides of the conversation interface.
In some embodiments, the second special effects display module 502 is to:
and displaying the track line of the movement of the first dynamic element at the same time of displaying the first dynamic element.
In some embodiments, the second special effects display module 502 is configured to:
and responding to the collision of the first dynamic element with the message bubble on the conversation interface, and displaying the interactive animation of the first dynamic element interacting with the message bubble.
In some embodiments, the interactive animation comprises at least one of:
an interactive animation for changing a color of a message bubble;
an interactive animation for changing a shape of the message bubble;
an interactive animation for changing a message bubble size;
hiding a first display element of the message bubble and displaying an interactive animation of a second display element of the message bubble, wherein the first display element is a display element when the message bubble is displayed by adopting a polymerization structure, and the second display element is a display element when the message bubble is displayed by adopting a separation structure;
a special effect animation for changing a display position of the second display element.
In some embodiments, the display hierarchy of the first dynamic element is at the highest level of all display content of the terminal screen;
or the display level of the first dynamic element is higher than that of the session interface;
or, the display hierarchy of the first dynamic element is higher than the display hierarchy of the display elements on the conversation interface.
In some embodiments, the display elements on the conversation interface include at least one of:
a message bubble displaying a conversation message;
the user account corresponding to the message bubble;
the message bubble corresponds to an identification element of the user account;
and the remark name corresponding to the message bubble.
In some embodiments, the second special effects display module 502 is configured to:
in response to the collision between the first dynamic element and the ith first identification element, reading a target user account corresponding to the ith first identification element, wherein i is a positive integer;
responding to the account record table without the target user account, and recording the target user account into the account record table;
responding to the account number in the account number record table being smaller than the account number threshold value, and continuing to display the first dynamic element; in response to the number of accounts being equal to the number of accounts threshold, ceasing to display the first dynamic element.
In some embodiments, the second message display module 501 is configured to:
receiving an interactive message sent by a second user account, wherein the interactive message is generated when a second dynamic element collides with an ith second identification element;
responding to collision between the first dynamic element and the ith first identification element, and displaying an interactive message of the second user account and the target user account;
the ith first identification element and the ith second identification element are the same identification elements displayed on the session interfaces of different terminals.
In some embodiments, the interactive message comprises at least one of a team invitation message, a fight invitation message, a virtual good gifting message, a sharing message.
In some embodiments, the interactive message includes a link associated with the trigger information; a second message display module 501, configured to:
displaying the link on a session interface; and responding to the interface entering instruction on the link, and displaying the user interface corresponding to the link.
In some embodiments, the second special effects display module 502 is configured to:
responding to the existence of trigger information in the session message, and randomly determining a first dynamic element from at least two candidate dynamic elements associated with the trigger information;
displaying a first dynamic element associated with the trigger information.
In some embodiments, the message content of the interactive message comprises:
a first field corresponding to the first user account, an action description field used for expressing the action executed by the second user account on the first user account, and a second field corresponding to the second user account;
or, a first field corresponding to the second user account, an action description field for representing the action executed by the second user account on the account, and a second field corresponding to the second user account;
or, the first field corresponding to the other second user accounts, the action description field for representing the second user account to execute the action on the other second user accounts, and the second field corresponding to the second user account.
In some embodiments, the session message comprises a virtual good package, and the interactive message is used for prompting the second user account to pick up the virtual good package;
a second special effect display module 502, configured to display, in response to a pickup instruction on a pickup interface of the virtual commodity package, a first dynamic element associated with the virtual commodity package; and responding to the stopping of the display of the first dynamic element, and displaying the picked interface of the item package.
To sum up, in the message receiving apparatus provided in this embodiment, when the session interface is displayed on the client, if the client receives the session message, the session message is displayed on the session interface, and then if the session message has the trigger information, the dynamic element associated with the trigger information is displayed, and meanwhile, on the client that sends the session message, during the display process of the dynamic element, the generation and sending of the interactive message are also triggered by the collision phenomenon between the dynamic element and the identification element of the user account, and then one user account can complete the interaction with multiple user accounts by sending the session message once, so that while a good interaction effect between the user accounts is ensured, the human-computer interaction efficiency of the user during the interaction in the client is improved, for example, in a scene that a group plays games, eats a meal together and needs multi-user interaction, the user can send one session message, triggering to execute 'one-beat' operation on a plurality of user head portraits in the group chat session, and no longer needing to execute 'one-beat' operation on each user head portraits; secondly, the effect of emphasizing the conversation message and arousing the attention of the account holder is realized by adopting the interactive message display mode and combining the display of the dynamic elements, and even the content expressed by the conversation message can be directly transmitted through the display of the dynamic elements, so that the interactive efficiency of the user when the user communicates through the conversation messages such as characters, expressions and the like in the client is improved.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the content structure of the device may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 14 shows a block diagram of a terminal 600 according to an embodiment of the present application. The terminal 600 may be a mobile phone, a tablet computer, a smart television, a multimedia playing device, a PC, etc. The terminal 600 may be the first terminal 10 or the second terminal 20 described in the embodiment of fig. 1.
In general, the terminal 600 includes: a processor 601 and a memory 602.
The processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor 601 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field Programmable Gate Array), and a PLA (Programmable Logic Array). The processor 601 may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 601 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content required to be displayed on the display screen. In some embodiments, processor 601 may also include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices.
In some embodiments, the terminal 600 may further optionally include: a peripheral interface 603 and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by buses or signal lines. Various peripheral devices may be connected to the peripheral interface 603 via a bus, signal line, or circuit board. Specifically, the peripheral device may include: at least one of a display screen 604, an audio circuit 605, a communication interface 606, and a power supply 607.
Those skilled in the art will appreciate that the configuration shown in fig. 14 is not intended to be limiting of terminal 600 and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
In an exemplary embodiment, a terminal is also provided, which includes a processor and a memory, where at least one instruction, at least one program, code set, or instruction set is stored in the memory, and the at least one instruction, at least one program, code set, or instruction set is configured to be executed by one or more processors to implement the above-mentioned message receiving method and message sending method.
In an exemplary embodiment, a computer readable storage medium is further provided, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and when executed by a processor of a terminal, the at least one instruction, the at least one program, the code set, or the set of instructions implements the above-mentioned message receiving method and message sending method.
Alternatively, the computer-readable storage medium may be a ROM (Read-Only Memory), a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product or computer program is also provided, the computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the terminal executes the message receiving method and the message sending method.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B, which may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. In addition, the step numbers described herein only exemplarily show one possible execution sequence among the steps, and in some other embodiments, the steps may also be executed out of the numbering sequence, for example, two steps with different numbers are executed simultaneously, or two steps with different numbers are executed in a reverse order to the order shown in the figure, which is not limited by the embodiment of the present application.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the application and should not be taken as limiting the application, and any modifications, equivalents, improvements and the like that are made within the spirit and principle of the application should be included in the protection scope of the application.

Claims (20)

1. A message sending method is applied to a first client, the first client logs in a first user account, and the method comprises the following steps:
displaying a session message sent by the first user account on a session interface;
in response to the presence of trigger information in the session message, displaying a first dynamic element associated with the trigger information;
and responding to the collision between the first dynamic element and an identification element of a user account, and sending an interactive message to a second client logged in with a second user account, wherein the interactive message is a message of the interaction between the first user account and the user account, and the user account comprises at least one of the first user account and the second user account.
2. The method of claim 1, wherein displaying the first dynamic element associated with the trigger information comprises:
determining a moving path of the first dynamic element on the session interface, wherein the moving path is used for guiding the first dynamic element to collide with the identification elements of at least n user accounts in sequence;
displaying the first dynamic element in a moving state according to the moving path; wherein n is a positive integer.
3. The method of claim 2, wherein determining a path of movement of the first dynamic element on the conversational interface comprises:
determining n conversation messages on the conversation interface;
responding to the n session messages displayed on the same side of the session interface, and determining that the moving path is a path in a first track form;
and determining that the moving path is a path of a second track form in response to the fact that at least two session messages exist in the n session messages and are displayed on different sides of the session interface.
4. The method of claim 1, further comprising:
displaying a trajectory line of movement of the first dynamic element while the first dynamic element is displayed.
5. The method of any of claims 1 to 4, further comprising:
and responding to the collision of the first dynamic element and the message bubble on the conversation interface, and displaying the interactive animation of the first dynamic element interacting with the message bubble.
6. The method of claim 5, wherein the interactive animation comprises at least one of:
an interactive animation for changing the color of the message bubble;
an interactive animation for changing the shape of the message bubble;
an interactive animation for changing the message bubble size;
hiding a first display element of the message bubble and displaying an interactive animation of a second display element of the message bubble, wherein the first display element is a display element when the message bubble is displayed in a polymerization structure, and the second display element is a display element when the message bubble is displayed in a separation structure;
a special effect animation for changing a display position of the second display element.
7. The method according to any one of claims 1 to 4,
the display hierarchy of the first dynamic element is positioned at the highest layer of all display contents of the terminal screen;
or the like, or a combination thereof,
the display level of the first dynamic element is higher than the display level of the session interface;
or the like, or, alternatively,
the display hierarchy of the first dynamic element is higher than the display hierarchy of display elements on the conversation interface.
8. The method of claim 7, wherein the display elements on the conversation interface include at least one of:
displaying a message bubble of the conversation message;
the user account corresponding to the message bubble;
the message bubble corresponds to an identification element of the user account;
and the remark name corresponding to the message bubble.
9. The method of any of claims 1 to 4, further comprising:
responding to the collision between the first dynamic element and the ith identification element, and reading a target user account corresponding to the ith identification element, wherein i is a positive integer;
and responding to the fact that the target user account does not exist in the account record table, and displaying the interactive message of the first user account and the target user account.
10. The method of claim 9, further comprising:
responding to the account record table without the target user account, and recording the target user account into the account record table;
responding to the account number in the account record table smaller than an account number threshold value, and continuing to display the first dynamic element; in response to the number of accounts being equal to the number of accounts threshold, ceasing to display the first dynamic element.
11. The method according to any one of claims 1 to 4, wherein the sending the interactive message to the second client logged in with the second user account in response to the collision between the first dynamic element and the identification element of the user account comprises:
responding to collision between the first dynamic element and the ith identification element, reading a second user account corresponding to the ith identification element as a target user account, wherein i is a positive integer;
in response to the target user account not existing in the account set, recording the target user account into the account set;
sending the interactive message to the target user account in the account set;
the interactive message comprises at least one of a team invitation message, a fight invitation message, a virtual article presentation message and a sharing message.
12. The method of claim 11, further comprising:
displaying the interactive message on the session interface, wherein the interactive message comprises a link associated with the trigger information;
and responding to an interface entering instruction on the link, and displaying a user interface corresponding to the link.
13. The method of any of claims 1 to 4, wherein the displaying a first dynamic element associated with the trigger information in response to the presence of the trigger information in the session message comprises:
in response to the trigger information existing in the session message, randomly determining the first dynamic element from at least two candidate dynamic elements associated with the trigger information;
displaying the first dynamic element associated with the trigger information.
14. The method according to any of claims 1 to 4, wherein the message content of the interactive message comprises:
a first field corresponding to the first user account is used for representing an action description field of the first user account for executing an action on the second user account, and a second field corresponding to the second user account;
alternatively, the first and second electrodes may be,
the first field corresponding to the first user account is used for representing an action description field of the first user account for executing actions on the account, and the second field corresponding to the first user account.
15. The method of any of claims 1 to 4, further comprising:
in response to the conversation message comprising a virtual good package, displaying a first dynamic element associated with the virtual good package;
and responding to the collision between the first dynamic element and the identification element of the user account, and sending the interactive message to the second client, wherein the interactive message is used for prompting the second user account to pick up the virtual article package.
16. A message receiving method is applied to a first client, wherein the first client logs in a first user account, and the method comprises the following steps:
displaying a session message sent by a second user account on a session interface;
in response to the presence of trigger information in the session message, displaying a first dynamic element associated with the trigger information;
displaying an interactive message sent by the second user account, wherein the interactive message is generated by a second client logged in with the second user account when a second dynamic element collides with an identification element of the user account; the second dynamic element is the same element displayed in the second client as the first dynamic element; the user account includes at least one of the first user account, the second user account, and other second user accounts.
17. A message transmission apparatus, characterized in that the apparatus comprises:
the first message display module is used for displaying the session message sent by the first user account on a session interface;
the first special effect display module is used for responding to the existence of trigger information in the conversation message and displaying a first dynamic element related to the trigger information;
the first message sending module is configured to send an interactive message to a second client that logs in a second user account in response to a collision between the first dynamic element and an identifier element of the user account, where the interactive message is a message of interaction between the first user account and the user account, and the user account includes at least one of the first user account and the second user account.
18. A message receiving apparatus, the apparatus comprising:
the second message display module is used for displaying the session message sent by the second user account on the session interface;
the second special effect display module is used for responding to the existence of trigger information in the conversation message and displaying a first dynamic element related to the trigger information;
the second message display module is configured to display an interactive message sent by the second user account, where the interactive message is a message generated by a second client that logs in the second user account and interacts with the user account when a second dynamic element collides with an identifier element of the user account; the second dynamic element is the same element displayed in the second client as the first dynamic element; the user account number comprises at least one of the first user account number, the second user account number and other second user account numbers.
19. A terminal, characterized in that the terminal comprises a processor and a memory, in which at least one instruction, at least one program, set of codes, or set of instructions is stored, which is loaded and executed by the processor to implement the message sending method according to any one of claims 1 to 15, and the message receiving method according to claim 16.
20. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the message sending method according to any one of claims 1 to 15 and the message receiving method according to claim 16.
CN202110226937.0A 2021-03-01 2021-03-01 Message sending method, message receiving method, device, equipment and storage medium Pending CN114995926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110226937.0A CN114995926A (en) 2021-03-01 2021-03-01 Message sending method, message receiving method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110226937.0A CN114995926A (en) 2021-03-01 2021-03-01 Message sending method, message receiving method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114995926A true CN114995926A (en) 2022-09-02

Family

ID=83018038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110226937.0A Pending CN114995926A (en) 2021-03-01 2021-03-01 Message sending method, message receiving method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114995926A (en)

Similar Documents

Publication Publication Date Title
CN110134484B (en) Message icon display method and device, terminal and storage medium
US10818094B2 (en) System and method to integrate content in real time into a dynamic real-time 3-dimensional scene
Ducheneaut et al. The social side of gaming: a study of interaction patterns in a massively multiplayer online game
CN109885367B (en) Interactive chat implementation method, device, terminal and storage medium
WO2022017071A1 (en) Communication method and apparatus based on avatar interaction interface, and computer device
US20160231878A1 (en) Communication system, communication terminal, storage medium, and display method
WO2023279917A1 (en) On-screen comment displaying method and apparatus, on-screen comment transmitting method and apparatus, computer device, computer readable storage medium, and computer program product
CN112347395A (en) Special effect display method and device, electronic equipment and computer storage medium
CN111643903B (en) Control method and device of cloud game, electronic equipment and storage medium
CN111464430A (en) Dynamic expression display method, dynamic expression creation method and device
CN114095744A (en) Video live broadcast method and device, electronic equipment and readable storage medium
CN110488973A (en) A kind of virtual interactive message leaving system and method
WO2022001552A1 (en) Message sending method and apparatus, message receiving method and apparatus, device, and medium
WO2023142425A1 (en) Social interaction method and apparatus, and device, storage medium and program product
CN114995926A (en) Message sending method, message receiving method, device, equipment and storage medium
CN114995927A (en) Information display processing method, device, terminal and storage medium
CN113633974A (en) Method, device, terminal and storage medium for displaying real-time game-checking information of user
CN114338573A (en) Interactive data processing method and device and computer readable storage medium
CN114764361A (en) Expression special effect display method, device, terminal and storage medium
CN110855554B (en) Content aggregation method and device, computer equipment and storage medium
WO2023142415A1 (en) Social interaction method and apparatus, and device, storage medium and program product
WO2023138321A1 (en) Method and apparatus for interaction in instant messaging, and computer device and storage medium
CN114430506B (en) Virtual action processing method and device, storage medium and electronic equipment
WO2024055811A1 (en) Message display method and apparatus, device, medium, and program product
US20230362333A1 (en) Data processing method and apparatus, device, and readable 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40073927

Country of ref document: HK