Acquisition method and device of account online state, terminal equipment and storage medium

By obtaining and extracting the status data of the Telegram account, the online and offline status of the account can be obtained without entering the account password, which solves the problem of cumbersome operations in the existing technology and improves the user experience and efficiency.

CN118784707APending Publication Date: 2024-10-15SHENZHEN MAITIAN GUARDIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411086022.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, users need to enter the account password to obtain the online and offline status of a Telegram account, which is cumbersome and requires rebinding when the code expires, affecting the user experience.

Method used

By obtaining the target account input by the user, the corresponding account status data information is obtained, and the online status data of the target account is extracted from it to generate the status information of the target account. The online and offline status information can be obtained without entering the account password.

Benefits of technology

It greatly reduces the operation process of obtaining friends' status, improves the efficiency of finding friends' online status, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784707A_ABST
    Figure CN118784707A_ABST
Patent Text Reader

Abstract

The invention is applicable to the technical field of information processing, and provides an account online state acquisition method, which comprises the following steps: acquiring a target account input by a user; acquiring corresponding account state data information according to the target account; extracting online state data of the target account from the account state data information; and generating state information of the target account according to the online state data. According to the embodiment of the invention, the corresponding account state data information can be obtained according to the target account, and the online state data of the target account can be extracted from the account state data information, so that the online and offline state information of the target account can be obtained without inputting an account password, the operation process of obtaining the friend state is greatly reduced, and the user experience is improved. The efficiency of searching the online state of the friend is improved, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of information processing technology, and in particular relates to a method, apparatus, terminal device and storage medium for obtaining an online status of an account. Background Art

[0002] Telegram is a popular messaging application that can display the online and offline status of users. Currently, users need to enter their account and password to log in to the corresponding website or application to view the online and offline status of the target account. The operation is relatively cumbersome, and when the code expires, users need to re-bind to log in to Telegram, which affects the user experience. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, terminal device and storage medium for obtaining the online status of an account, which can solve the problem in the related art that a user needs to log in to the Telegram program account and password to search for the status of a friend.

[0004] In a first aspect, an embodiment of the present application provides a method for obtaining an online status of an account, comprising:

[0005] Get the target account entered by the user;

[0006] Obtain the corresponding account status data information according to the target account;

[0007] Extracting online status data of the target account from the account status data information;

[0008] Generate status information of the target account according to the online status data.

[0009] In a second aspect, an embodiment of the present application provides a device for obtaining an online status of an account, including:

[0010] The first acquisition module acquires the target account input by the user;

[0011] The second acquisition module is used for the target account to acquire the corresponding account status data information;

[0012] An extraction module, used to extract the online status data of the target account from the account status data information;

[0013] The generation module is used to generate status information of the target account according to the online status data.

[0014] In a third aspect, an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for obtaining the online status of the above-mentioned account when executing the computer program.

[0015] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the method for obtaining the online status of the above-mentioned account are implemented.

[0016] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a terminal device, enables the terminal device to execute the above-mentioned method for obtaining the online status of an account.

[0017] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain the target account input by the user; obtain the corresponding account status data information according to the target account; extract the online status data of the target account from the account status data information; and generate the status information of the target account according to the online status data. In the embodiments of the present application, the corresponding account status data information can be obtained according to the target account, and the online status data of the target account can be extracted therefrom, so that the online and offline status information of the target account can be obtained without entering the account number and password, which greatly reduces the operation process of obtaining the friend status, improves the efficiency of finding the online status of friends, and enhances the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 This is a schematic diagram of an implementation flow of a method for obtaining an online status of an account provided in an embodiment of the present application;

[0020] Figure 2 It is a structural diagram of a device for obtaining an online status of an account provided in an embodiment of the present application;

[0021] Figure 3 It is a schematic diagram of the structure of the terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are protected by the present application.

[0023] It should be noted that the terms "include", "comprises" and "have" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, terminal, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the claims, specification and drawings of the present application, relational terms such as "first" and "second" are merely used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such real-time relationship or order between these entities / operations / objects.

[0024] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0025] Telegram is a popular messaging application that can display the online and offline status of users. Currently, users need to enter their account and password to log in to the corresponding website or application to view the online and offline status of the target account. The operation is relatively cumbersome, and when the code expires, users need to re-bind to log in to Telegram, which affects the user experience.

[0026] In view of this, in the embodiment of the present application, the corresponding account status data information can be obtained according to the target account, and the online status data of the target account can be extracted therefrom, thereby realizing that the online and offline status information of the target account can be obtained without entering the account password, greatly reducing the operation process of obtaining the friend status, improving the efficiency of finding the friend's online status, and enhancing the user experience.

[0027] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

[0028] Figure 1 The present invention provides a schematic diagram of the implementation process of a method for obtaining the online status of an account, which can be applied to a terminal device, such as a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, etc.

[0029] Specifically, the above method for acquiring the online status of an account may include the following steps S101 to S105.

[0030] Step S101, obtaining the target account input by the user.

[0031] The target account may be the Telegram account information to be queried. It is understandable that the account information is one of a mobile phone number, a user name, a nickname, and a user ID.

[0032] In an embodiment of the present application, a user may input a target account to be queried, such as a mobile phone number of a target user, in an interactive interface of a terminal device. The terminal device may read the target account input by the user in the interactive interface.

[0033] Step S102, obtaining corresponding account status data information according to the target account.

[0034] The account status data information may be a getInfo data body, and the getInfo data body may be the data content requested through an API call, specifically, a request structure or data packet for obtaining account status data.

[0035] In an implementation manner of the present application, the terminal device may obtain the account status data information corresponding to the target account through an API (application programming interface).

[0036] Step S103: extracting the online status data of the target account from the account status data information.

[0037] Among them, the online status data of the target account includes online status, online time, offline time and other data.

[0038] In an implementation manner of the present application, the terminal device may extract the online status data of the target account from the account status data information.

[0039] Step S104: Generate status information of the target account according to the online status data.

[0040] The target account status information may be used to represent the online and offline status of the target account, and its content may include Telegram account information and online status data, and may specifically be text information, table information or other information.

[0041] In the implementation mode of the present application, after obtaining the online status data, the terminal device can generate a corresponding piece of information according to the content of the online status data, for example, corresponding text information or table information can be generated. After generating the status information of the target account, the terminal device can display the status information on the display interface to inform the user of the online status of the target account.

[0042] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain the target account input by the user; obtain the corresponding account status data information according to the target account; extract the online status data of the target account from the account status data information; and generate the status information of the target account according to the online status data. In the embodiments of the present application, the corresponding account status data information can be obtained according to the target account, and the online status data of the target account can be extracted therefrom, so that the online and offline status information of the target account can be obtained without entering the account number and password, which greatly reduces the operation process of obtaining the friend status, improves the efficiency of finding the online status of friends, and enhances the user experience.

[0043] In some specific implementations of the present application, after the step of generating the status information of the target account according to the online status data, the method may further include step S401 and step S402:

[0044] Step S401: associate and update the target account and online status data into a preset status table.

[0045] The preset status table is provided with a detection target account column and an online status data column; the preset status table can store 0 online status data, 1 online status data or countless online status data.

[0046] The preset status table finally obtained may include all target accounts and their corresponding online status data records. Through the preset status table, users can use it to record and track the online status information of the target accounts.

[0047] In an implementation manner of the present application, after obtaining the target account and online status data, the terminal device can associate and update the target account and online status data to a preset status table, and when the online status data is associated and updated to the preset status table, a new row can be added to the end of the preset status table without overwriting the pre-order stored data in the preset status table.

[0048] Step S402: when it is detected that the user repeatedly inputs the target account, the status information of the target account is obtained from the updated status table.

[0049] In an embodiment of the present application, when the user inputs the target account, the terminal device can detect whether the status information of the target account is stored in the status table. If the status information stored in the target account is not detected, the status information of the target account is obtained through the above steps S101 to S104, and the target account status information is updated and added to the preset status table.

[0050] If the state information stored in the target account is detected, the state information table of the target account can be obtained from the preset state table.

[0051] In the implementation of the present application, the user can enter the target account to be queried in the interactive interface of the terminal device, for example, the mobile phone number of the target user. The terminal device can read the target account entered by the user in the interactive interface. If the user enters the target account for the first time, the operation of obtaining and adding the online status data of the target account to the preset status table is performed. If the user repeatedly enters the target account, the status information table of the target account can be obtained from the preset status table to respond to the user's online status query request.

[0052] In steps S401 to 402, by associating the target account and the online status data and updating them to the preset status table, the stored account status information can be quickly retrieved without re-executing the complete account status acquisition process each time. In addition, the response speed and stability of the system are improved. Since the status table is preset and can be updated in real time, real-time tracking and updating of the account status can be supported.

[0053] In some specific implementations of the present application, the preset status table is stored in the cloud.

[0054] Among them, cloud storage refers to storing data on a remote server, which can provide access services via the Internet.

[0055] In the implementation of the present application, developers can log in to the Telegram application in advance with their account and password, and obtain the online status information of a large number of accounts in real time within the application, and then update the online status information to a preset status table in real time, and then store the preset status table in the cloud. When the user enters the target account, the corresponding account status data information can be obtained from the preset status table stored in the cloud according to the target account.

[0056] In addition, in the prior art, when a user wants to query the online status of multiple target accounts in the Telegram application, the user needs to enter the target account to view the corresponding status information, and only one target account can be entered at a time, so the user needs to repeat the above steps multiple times to query the online status of multiple target accounts. In this application, the user logs in to the Telegram application in advance with the account password, and obtains the online status information of a large number of accounts in real time in the application, and then updates the online status information to the preset status table in real time. The user can enter multiple target accounts at the same time, and query multiple target account information at the same time through the preset status table, which can greatly reduce the operation process of obtaining the friend status, improve the efficiency of finding the friend's online status, and thus improve the user experience.

[0057] In some specific implementations of the present application, the above-mentioned obtaining corresponding account status data information according to the target account may include step S501 and step S502:

[0058] Step S501: Log into the target software according to preset verification information.

[0059] Among them, the preset verification information includes Telegram account and password, and the target software is Telegram.

[0060] In an implementation manner of the present application, the terminal device logs in to Telegram according to preset verification information, establishes a connection with the Telegram API through the Telethon library, uses SessionToken for identity authentication and authorization, and enters the Telegram account and password.

[0061] Among them, Telethon library is a third-party library of Python used to interact with Telegram API; Telegram API is a set of interfaces and tools provided by Telegram Messenger; SessionToken is the identifier or token of the user session.

[0062] Step S502: According to the API interface protocol authorized by the target software, the target software is requested in real time for the account status data information of the target account.

[0063] In an implementation manner of the present application, the terminal device can call the MTProto TelegramAPI protocol authorized by the target software, obtain the getInfo data body through the PHP interface to obtain the account status data information, search the User field in the account status data information, and obtain the status field associated with the User field to obtain the online status data of the target account. The status field is a dynamic field.

[0064] Among them, the MTProto Telegram API protocol is the protocol used to communicate with the target software. MTProto is the encrypted communication protocol used by Telegram. The Telegram API is the interface for interacting with the Telegram service. The getInfo data body is the data content requested through the API call, specifically the request structure or data packet for obtaining account status data. User field: In the returned account status data information, the User field is one of the components and is usually used to represent account or user information. The status field is a subfield under the User field and is used to represent the online status data of the target account.

[0065] In an implementation manner of the present application, the terminal device can use the addContact function to add contact information, call the checkNumberStatus service to verify whether the contact information is valid, obtain the contact online status information through the getEntity service, determine whether the contact is online through the getChatlsOnline service, and obtain the last login time of the offline contact through the getLastSeen service.

[0066] In some specific implementations of the present application, before obtaining the corresponding account status data information according to the target account, steps S601 to S603 are also included:

[0067] Step S601: call the target software, search for the target account, and obtain search results.

[0068] Step S602: If the search result is empty, the target account is determined to be an invalid account.

[0069] Step S603: If the search result is not empty, the target account is determined to be a valid account, and the corresponding account status data information is obtained according to the target account.

[0070] In the implementation mode of the present application, the user can enter the Telegram target account information into the Telegram friend search box. If the entered account is a valid account, Telegram will display the search results of the account, which may include the account's nickname, avatar, profile, etc. If the entered account is an invalid account, a prompt "The account does not exist" or "The user cannot be found" will appear.

[0071] Through steps S601 to S603, searching for the target account and determining its validity, and then obtaining the corresponding account status data information, can significantly improve account verification efficiency, reduce invalid operations, and ensure data accuracy.

[0072] Figure 2 A schematic diagram of the structure of a device for obtaining an online status of an account provided in an embodiment of the present application is shown. The device 2 for obtaining the online status of an account may be configured on a terminal device. Specifically, the device 2 for obtaining the online status of an account may include:

[0073] The first acquisition module 201 is used to acquire a target account input by a user.

[0074] The second acquisition module 202 is used to acquire corresponding account status data information according to the target account.

[0075] The extraction module 203 is used to extract the online status data of the target account from the account status data information.

[0076] The generating module 204 is used to generate the status information of the target account according to the online status data.

[0077] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application obtain the target account input by the user; obtain the corresponding account status data information according to the target account; extract the online status data of the target account from the account status data information; and generate the status information of the target account according to the online status data. In the embodiments of the present application, the corresponding account status data information can be obtained according to the target account, and the online status data of the target account can be extracted therefrom, so that the online and offline status information of the target account can be obtained without entering the account number and password, which greatly reduces the operation process of obtaining the friend status, improves the efficiency of finding the online status of friends, and enhances the user experience.

[0078] In some implementations of the present application, the above-mentioned account online status acquisition device 2 further includes an updating module for:

[0079] The target account and online status data are associated and updated to the preset status table.

[0080] When it is detected that the user repeatedly enters the target account, the state information of the target account is obtained from the updated state table.

[0081] In some implementations of the present application, the preset status table is stored in the cloud.

[0082] In some implementations of the present application, the second acquisition module 202 is further specifically configured to:

[0083] Log in to the target software according to the preset verification information.

[0084] According to the API interface protocol authorized by the target software, the account status data information of the target account is requested to the target software in real time.

[0085] In some implementations of the present application, the second acquisition module 202 is further specifically configured to:

[0086] Call the MTProto Telegram API protocol authorized by the target software, obtain the getInfo data body from the target software, and obtain the account status data information.

[0087] In some implementations of the present application, the extraction module 203 is further specifically used for:

[0088] Search for the User field in the account status data information.

[0089] Get the status field associated with the User field to obtain the online status data of the target account. The status field is a dynamic field.

[0090] In some implementations of the present application, the above-mentioned account online status acquisition device 2 further includes a search module for:

[0091] Call the target software, search for the target account, and get the search results.

[0092] If the search result is empty, the target account is determined to be an invalid account.

[0093] If the search result is not empty, the target account is determined to be a valid account, and the corresponding account status data information is obtained according to the target account.

[0094] like Figure 3 FIG. 3 is a schematic diagram of a terminal device provided in an embodiment of the present application. The terminal device 3 may include: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and executable on the processor 301, such as a program for generating an account online status. When the processor 301 executes the computer program 303, the steps in the above-mentioned generation method for obtaining the online status of each friend are implemented, such as Figure 1 Alternatively, when the processor 301 executes the computer program 303, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 2 The first acquisition module 201, the second acquisition module 202, the extraction module 203, and the generation module 204 are shown.

[0095] The computer program may be divided into one or more modules / units, which are stored in the memory 302 and executed by the processor 301 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the terminal device.

[0096] The terminal device may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will appreciate that Figure 3 It is only an example of a terminal device and does not constitute a limitation of the terminal device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access equipment, buses, etc.

[0097] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0098] The memory 302 may be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory 302 may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal device. Further, the memory 302 may also include both an internal storage unit of the terminal device and an external storage device. The memory 302 is used to store the computer program and other programs and data required by the terminal device. The memory 302 may also be used to temporarily store data that has been output or is to be output.

[0099] It should be noted that, for the convenience and brevity of description, the structure of the above-mentioned terminal device can also refer to the specific description of the structure in the method embodiment, which will not be repeated here.

[0100] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0101] The embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method for generating the online status of a friend can be implemented.

[0102] The embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method for generating the online status of friends when executing the computer program product.

[0103] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0104] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0105] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0106] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0107] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0108] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0109] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for obtaining an account online status, characterized in that: include: Get the target account entered by the user; Acquire corresponding account status data information according to the target account; Extracting the online status data of the target account from the account status data information; The status information of the target account is generated according to the online status data.

2. The method for obtaining the online status of an account according to claim 1, characterized in that: After the step of generating the status information of the target account according to the online status data, the method further includes: Associating and updating the target account and the online status data into a preset status table; When it is detected that the user repeatedly inputs the target account, the status information of the target account is obtained from the updated status table.

3. The method for obtaining the online status of an account according to claim 2, characterized in that: The preset status table is stored in the cloud.

4. The method for obtaining the online status of an account according to claim 1, characterized in that: The step of acquiring corresponding account status data information according to the target account includes: Log in to the target software according to the preset verification information; According to the API interface protocol authorized by the target software, the account status data information of the target account is requested from the target software in real time.

5. The method for obtaining the online status of an account according to claim 4, characterized in that: The step of requesting the target software in real time for the user status data information of the target account according to the API interface protocol authorized by the target software comprises: The MTProto Telegram API protocol authorized by the target software is called to obtain a getInfo data body from the target software to obtain account status data information.

6. The method for obtaining the online status of an account according to claim 1, characterized in that: The step of extracting the online status data of the target account from the account status data information includes: Searching for the User field in the account status data information; The status field associated with the User field is obtained to obtain the online status data of the target account, where the status field is a dynamic field.

7. The method for obtaining the online status of an account according to claim 1, characterized in that: Before acquiring the corresponding account status data information according to the target account, the method further includes: Calling the target software, searching the target account, and obtaining search results; If the search result is empty, the target account is determined to be an invalid account; If the search result is not empty, the target account is determined to be a valid account, and the corresponding account status data information is obtained according to the target account.

8. A device for obtaining an online status of an account, characterized in that: include: A first acquisition module, used to acquire a target account input by a user; A second acquisition module, used to acquire corresponding account status data information according to the target account; An extraction module, used to extract the online status data of the target account from the account status data information; A generating module is used to generate the status information of the target account according to the online status data.

9. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for obtaining the online status of an account as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for obtaining the online status of an account as claimed in any one of claims 1 to 7 are implemented.