mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-28 19:23:11 +01:00
256 lines
31 KiB
HTML
256 lines
31 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>Telegram Ads</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||
<meta name="format-detection" content="telephone=no" />
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||
<meta name="MobileOptimized" content="176" />
|
||
<meta name="HandheldFriendly" content="True" /><meta property="og:title" content="Telegram Ad Platform Terms of Service">
|
||
<meta property="og:description" content="1. TERMS AND DEFINITIONS
|
||
1.1. Account – a personalized record of the Advertiser within the Telegram Ad Platform with…">
|
||
|
||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||
<link rel="icon" type="image/png" sizes="16x16" href="/img/favicon-16x16.png">
|
||
<link rel="alternate icon" href="/img/favicon.ico" type="image/x-icon" />
|
||
<script>document.cookie="stel_dt="+encodeURIComponent((new Date).getTimezoneOffset())+";path=/;max-age=31536000;samesite=None;secure"</script>
|
||
|
||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700" rel="stylesheet" type="text/css">
|
||
<link href="/css/bootstrap.min.css?3" rel="stylesheet">
|
||
<link href="/css/bootstrap-extra.css?2" rel="stylesheet">
|
||
<link href="/css/telegram.css?232" rel="stylesheet">
|
||
<link href="/css/widget-frame.css?62" rel="stylesheet">
|
||
<link href="/css/promote.css?59" rel="stylesheet">
|
||
<link href="/css/jquery-ui.min.css?1" rel="stylesheet">
|
||
<link href="/css/tchart.min.css?10" rel="stylesheet">
|
||
|
||
</head>
|
||
<body class="emoji_image no-transition">
|
||
|
||
<div id="aj_progress" class="progress-bar"></div>
|
||
|
||
<div id="aj_content"><div class="pr-container pr-docs-container">
|
||
<div class="pr-header">
|
||
<div class="pr-header-auth">
|
||
<div class="pr-header-auth-item"><a class="header-auth-link login-link" href="/auth">Log In</a></div>
|
||
</div>
|
||
<ol class="pr-breadcrumb"><li class="pr-logo compact"><a href="/"><i class="pr-icon"></i><span class="pr-logo-title">Telegram Ads</span></a></li><li class="pr-breadcrumb-item">Telegram Ad Platform Terms of Service</li></ol>
|
||
</div>
|
||
<section class="pr-content"><div id="dev_page_content_wrap" class=" ">
|
||
<div class="dev_page_bread_crumbs"></div>
|
||
<h1 id="dev_page_title">Telegram Ad Platform Terms of Service</h1>
|
||
|
||
<div id="dev_page_content"><h3><a class="anchor" name="1-terms-and-definitions" href="#1-terms-and-definitions"><i class="anchor-icon"></i></a>1. TERMS AND DEFINITIONS</h3>
|
||
<p>1.1. <strong>Account</strong> – a personalized record of the Advertiser within the Telegram Ad Platform with unique access details, containing the information on the Services, Statistics, Advertiser’s information, Ads and their status, Balance, operating tools and features.</p>
|
||
<p>1.2. <strong>Ad</strong> – an advertisement created using the Telegram Ad Platform that specifies where, how, when and which Advertising Materials are to be displayed, including the type and format of the Advertising Materials, their placement (particular channels, groups, games), CPM, Maximum Budget.</p>
|
||
<p>1.3. <strong>Advertiser</strong> – the person or entity who has entered into the Agreement with the Company.</p>
|
||
<p>1.4. <strong>Advertising Materials</strong> – any graphic/media file and/or any and all accompanying information supplied by the Advertiser to the Company to be displayed for advertising purposes in Publication Spaces. The Advertiser retains all rights, whether owned by the Advertiser or by a third party, and/or licensed or otherwise used by the Advertiser, in relation to any Advertising Materials and grants to the Company a worldwide, non-sublicensable, non-exclusive, royalty-free license to use, serve, copy, reproduce, distribute and display the Advertising Materials, in any known, agreed or hereafter developed manner.</p>
|
||
<p>1.5. <strong>Agreement</strong> – the present Terms of Service along with the Advertising Agreement reached between the Company and the Advertiser.</p>
|
||
<p>1.6. <strong>Auction</strong> – the automated system that uses certain algorithms to determine the best offered CPM in relation to an Ad for the provision of the Services. </p>
|
||
<p>1.7. <strong>Balance</strong> – the amount of money which is available on the Account and can be spent on the Services.</p>
|
||
<p>1.8. <strong>Confidential Information</strong> – all information of a Party including, without limitation, information and/or personal data provided by a Party, its related corporations, affiliates, employees, agents, representatives, advisors, or consultants, whether disclosed or communicated verbally, in writing or in any other tangible form, and whether relating to a Party’s business, operations, processes, plans, requirements, inventions, product or service information, pricing, know-how, design rights, trade secrets, software, systems, market opportunities, customers and business affairs.</p>
|
||
<p>1.9. <strong>CPM</strong> – Cost-Per-Mille, the price for one thousand Impressions of an Ad.</p>
|
||
<p>1.10. <strong>Company</strong> – the legal entity which belongs to Telegram group of companies and has a right to enter the Agreement with the Advertiser for the Services.</p>
|
||
<p>1.11. <strong>Data Protection Laws</strong> – the following legislations to the extent applicable from time to time: (a) national laws implementing the Directive on Privacy and Electronic Communications (2002/58/EC) (as amended by Directive 2009/136); (b) the General Data Protection Regulation (2016/679) (the <strong>GDPR</strong>) and the UK GDPR and any national law supplementing the GDPR or UK GDPR (such as, in the UK, the Data Protection Act 2018), and (c) any other data protection or privacy laws, regulations, or regulatory requirements, guidance and codes of practice applicable to the processing of personal data (as amended and/or replaced from time to time).</p>
|
||
<p>1.12. <strong>Impression</strong> – each occurrence of a display of an Ad to a user in a Publication Space, as evidenced by Statistics.</p>
|
||
<p>1.13. <strong>Improper Advertising</strong> – any act or omission which violates the Consumer Protection from Unfair Trading Regulations 2008 or any other applicable laws or regulations relating to advertising or marketing standards.</p>
|
||
<p>1.14. <strong>Intellectual Property Rights</strong> – trademarks, service marks, rights in trade names, business names, logos or get-up, goodwill and the right to sue for passing off, patents, supplementary protection certificates, rights in inventions, registered and unregistered design rights, copyrights (including rights in software), database rights, image rights and rights to personality, rights in domain names and URLs and social media presence accounts, and all other similar rights in any part of the world (including in confidential information, trade secrets and know-how) and whether registered or not, including, where such rights are obtained or enhanced by registration, any registration of such rights and applications and rights to apply for such registrations.</p>
|
||
<p>1.15. <strong>Maximum Budget</strong> – the maximum amount of funds, confirmed by the Advertiser, that can be deducted from the Balance for displaying a particular Ad in a Publication Space. Reaching the Maximum Budget shall result in the Ad being put on hold.</p>
|
||
<p>1.16. <strong>Publication Space</strong> – a digital space for Advertising Materials made available by the Company including, without limitation, in Telegram channels, Telegram groups and Telegram games.</p>
|
||
<p>1.17. <strong>Reporting Period</strong> – calendar month. The first Reporting Period commences on the date of signing of the Agreement and lasts up to the last day of the relevant calendar month (as an example, June 10 – June 30), the last Reporting Period commences on the first day of the relevant calendar month and lasts up to the date of the Agreement’s termination (as an example, June 01 – June 15).</p>
|
||
<p>1.18. <strong>Services</strong> – the display of the Advertising Materials in the context of a particular Ad, in the relevant Publication Space. </p>
|
||
<p>1.19. <strong>Statistics</strong> – a detailed report on the Advertiser’s Ads, which specifies the scope of the Services provided. It includes the Advertising Materials data, the cost of the Services in the Reporting Period and other data generated by the Company upon the results of automated checks.</p>
|
||
<p>1.20. <strong>Telegram App</strong> – a cloud-based mobile and desktop messaging app with a focus on security and speed, including but not limited to mobile apps for iPhone/iPad/Android/Windows phone, desktop apps for PC/Mac/Linux/macOS/Web-browser, Telegram web and all other interfaces and/or versions which exist or will be created in future.</p>
|
||
<p>1.21. <strong>Telegram Ad Platform</strong> – the software solution which provides the Advertiser with the opportunity to create Ads that participate in Auctions for Publication Spaces, control and terminate their Ads, and access the relevant Statistics within the Account.</p>
|
||
<p>1.22. <strong>Telegram Ad Policies and Guidelines</strong> – Telegram Ad Policies and Guidelines as available at: <a href="https://promote.telegram.org/guidelines"><a href="https://promote.telegram.org/guidelines">https://promote.telegram.org/guidelines</a></a>.</p>
|
||
<p>1.23. <strong>Telegram Privacy Policy</strong> – Telegram Privacy Policy as available at: <a href="https://telegram.org/privacy"><a href="https://telegram.org/privacy">https://telegram.org/privacy</a></a>.</p>
|
||
<p>1.24. <strong>Telegram Terms of Service</strong> – Telegram Terms of Service as available at: <a href="https://telegram.org/tos"><a href="https://telegram.org/tos">https://telegram.org/tos</a></a>.</p>
|
||
<p>1.25. <strong>Terms of Service</strong> – Telegram Ad Platform Terms of Service as available at: <a href="https://promote.telegram.org/tos"><a href="https://promote.telegram.org/tos">https://promote.telegram.org/tos</a></a>.</p>
|
||
<h3><a class="anchor" name="2-requirements-for-advertising-materials" href="#2-requirements-for-advertising-materials"><i class="anchor-icon"></i></a>2. REQUIREMENTS FOR ADVERTISING MATERIALS</h3>
|
||
<p><strong>2.1.</strong> Advertising Materials shall be in compliance with all applicable laws, rules and regulations, present Terms of Service, Telegram Terms of Service, Telegram Privacy Policy, Apple App Store terms and rules as may be applicable, and Google Play terms and rules as may be applicable.</p>
|
||
<p><strong>2.2.</strong> Advertising Materials shall be in compliance with Telegram Ad Policies and Guidelines. Advertising Materials must not relate to the topics as indicated at <a href="https://promote.telegram.org/guidelines#5-prohibited-content">Ad Policies and Guidelines/Prohibited Content</a>.</p>
|
||
<p><strong>2.3.</strong> The Company reserves the right to update <a href="https://promote.telegram.org/guidelines">Telegram Ad Policies and Guidelines</a> and the list of topics at clause 2.2 from time to time. </p>
|
||
<h3><a class="anchor" name="3-rights-and-obligations" href="#3-rights-and-obligations"><i class="anchor-icon"></i></a>3. RIGHTS AND OBLIGATIONS</h3>
|
||
<h4><a class="anchor" name="3-1-the-company-shall" href="#3-1-the-company-shall"><i class="anchor-icon"></i></a>3.1. The Company shall:</h4>
|
||
<p><strong>(a)</strong> pursuant to and in accordance with the Advertiser’s instructions submitted via the Telegram Ad Platform in relation to a particular Ad, provide the Services whenever the Advertiser’s CPM bid wins the Auction for a particular Publication Space, for as long as the Ad’s Maximum Budget and the Advertiser’s Balance allow.</p>
|
||
<h4><a class="anchor" name="3-2-the-company-may-at-its-sole-discretion" href="#3-2-the-company-may-at-its-sole-discretion"><i class="anchor-icon"></i></a>3.2. The Company may, at its sole discretion:</h4>
|
||
<p><strong>(a)</strong> conduct an audit of the Advertising Materials to verify their compliance with all applicable laws, rules and regulations, present Terms of Service, Telegram Ad Policies and Guidelines, Telegram Terms of Service, Telegram Privacy Policy, Apple App Store terms and rules as may be applicable, and Google Play terms and rules as may be applicable. The Company shall not be bound by any time frames in conducting an audit under this clause 3.2(a);</p>
|
||
<p><strong>(b)</strong> terminate or suspend the Services without any liability in the event that the Advertising Materials, as may be evidenced by the results of any audit undertaken by the Company under clause 3.2(a) above, are in conflict with any applicable laws, rules and regulations, present Terms of Services, Telegram Ad Policies and Guidelines, Telegram Terms of Service, Telegram Privacy Policy, Apple App Store terms and rules as may be applicable, and Google Play terms and rules as may be applicable, and inter alia, contain any elements of Improper Advertising, and/or explicitly violate the generally accepted moral and ethical standards, and/or are inconsistent with the Company’s values and principles, including the Company’s stance on fundamental human rights, freedom of speech and data privacy;</p>
|
||
<p><strong>(c)</strong> request any supporting documentation regarding Advertising Materials, including, without limitation, the relevant licenses/permits/certificates for licensed goods/services, agreements with Advertiser’s customers for distribution of goods/services which contain Intellectual Property Rights, and suspend provision of Services until and unless such information is provided to the satisfaction of the Company;</p>
|
||
<p><strong>(d)</strong> request any supporting documentation on Advertiser’s legal status, including, but not limited to, its constitutional documents, tax numbers, residency and related details, powers and rights of representatives, and suspend provision of Services until and unless such information is provided to satisfaction of the Company;</p>
|
||
<p><strong>(e)</strong> transfer any information concerning Advertiser and the Advertising Materials which is required to be disclosed by any regulatory authority, any auditor of the Parties, by judicial or administrative process or otherwise by applicable law or regulation; </p>
|
||
<p><strong>(f)</strong> change the parameters of the Services in the Telegram Ad Platform and, in particular, change the list of available Publication Spaces and minimum CPM; and</p>
|
||
<p><strong>(g)</strong> make changes to these Terms of Service at any time by uploading an updated version of the Terms of Service to its website, which can be accessed here: <a href="https://promote.telegram.org/tos"><a href="https://promote.telegram.org/tos">https://promote.telegram.org/tos</a></a>.</p>
|
||
<h4><a class="anchor" name="3-3-the-advertiser-shall" href="#3-3-the-advertiser-shall"><i class="anchor-icon"></i></a>3.3. The Advertiser shall:</h4>
|
||
<p><strong>(a)</strong> be fully responsible for the compliance of the placed Advertising Materials with all applicable laws, rules and regulations, present Terms of Services, Telegram Ad Policies and Guidelines, Telegram Terms of Service, Telegram Privacy Policy, Apple App Store terms and rules as may be applicable, and Google Play terms and rules as may be applicable;</p>
|
||
<p><strong>(b)</strong> promptly provide the Company with any information, documents and other materials that the Company may request from time to time in accordance with clauses 3.2(c) to 3.2(e) above;</p>
|
||
<p><strong>(c)</strong> promptly inform the Company of all changes impacting the Company under this Agreement, including but not limited to the Advertiser’s business, contact details, bank details and authorized persons; </p>
|
||
<p><strong>(d)</strong> mark the Advertising Materials, if so required by applicable law, with an indication of the age category of persons for whom it is addressed and any other indications. The Advertiser is solely responsible for correct labelling of the Advertising Materials; and</p>
|
||
<p><strong>(e)</strong> not permit any third party to put forward a bid at an Auction using its Account.</p>
|
||
<h4><a class="anchor" name="3-4-the-advertiser-may" href="#3-4-the-advertiser-may"><i class="anchor-icon"></i></a>3.4. The Advertiser may:</h4>
|
||
<p><strong>(a)</strong> place requests for the Services by creating Ads on the Telegram Ad Platform;</p>
|
||
<p><strong>(b)</strong> use the Telegram Ad Platform interfaces to interact with their Ads, e.g. launch Ads and put them on hold, submit changes to the CPM and Maximum Budget of Ads, etc. Without prejudice to clause 3.2(a), changes will be usually applied after fifteen (15) minutes, but no later than in sixty (60) minutes after the request is registered by the Telegram Ad Platform; and</p>
|
||
<p><strong>(c)</strong> be informed of the Statistics.</p>
|
||
<h3><a class="anchor" name="4-liability" href="#4-liability"><i class="anchor-icon"></i></a>4. LIABILITY</h3>
|
||
<p><strong>4.1.</strong> In case of non-compliance or inadequate performance by the Parties of their respective obligations under this Agreement, the Parties will incur liability as provided for under applicable law; except that the Company shall not be liable for failure to fulfill or the improper fulfillment of the Agreement caused by breakdown of telecommunication and energy networks, effects of malicious software or fraudulent acts by the third parties.</p>
|
||
<p><strong>4.2.</strong> The Company undertakes all possible effort to provide the best Services it can. Notwithstanding clause 4.1 above, however, these Services are provided "as is” and “as available” and the Company makes no guarantees that the Services always will be error-free, or that they will function without delays and disruptions. The Company disclaims all warranties, whether express or implied, including the implied warranties of merchantability, fitness for a particular purpose, title, and non-infringement.</p>
|
||
<p><strong>4.3.</strong> Without prejudice to the generality of clause 4.1 above, the Advertiser shall be liable for security of the access details to the Account and shall compensate the Company for any losses related to such use by the persons not authorized to act on behalf of the Advertiser. For the avoidance of doubt, where the Advertiser is in violation of its obligations under this Agreement, the Advertiser shall reimburse the Company for any and all losses incurred as a result of such violation.</p>
|
||
<p><strong>4.4.</strong> The Company's total aggregate liability under this Agreement whether in contract, tort (including negligence), under a warranty, undertaking or representation under statute or otherwise, for any losses or damages suffered or incurred by the Advertiser shall not exceed the total amount of the Advertiser's Balance spent in the previous calendar year.</p>
|
||
<p><strong>4.5.</strong> The Company shall not be liable under or in connection with this Agreement whether in contract, tort (including negligence), under a warranty, undertaking or representation under statute or otherwise, for any indirect or consequential losses, any loss of business, business opportunities or goodwill, or any loss of revenue, savings or profits, whether actual or prospective or for any punitive damages, howsoever arising, whether such losses or damage were foreseeable or in the contemplation of the Advertiser or the Company.</p>
|
||
<p><strong>4.6.</strong> Nothing in this Agreement shall limit or exclude any liability for (i) death or personal injury resulting from negligence, (ii) fraud, fraudulent misrepresentation or willful default, or (iii) for any other liability to the extent it cannot be lawfully excluded or limited.</p>
|
||
<h3><a class="anchor" name="5-warranties-and-indemnification" href="#5-warranties-and-indemnification"><i class="anchor-icon"></i></a>5. WARRANTIES AND INDEMNIFICATION</h3>
|
||
<p><strong>5.1.</strong> <strong>Warranties</strong> – Each Party warrants to the other that:</p>
|
||
<p><strong>(a)</strong> to the best of its knowledge, nothing in this Agreement violates any applicable law, including Data Protection Laws; </p>
|
||
<p><strong>(b)</strong> it has the necessary financial resources to perform its obligations under this Agreement;</p>
|
||
<p><strong>(c)</strong> it has the requisite legal right, power and authority to execute, deliver, and to perform its obligations under this Agreement;</p>
|
||
<p><strong>(d)</strong> this Agreement constitutes its binding obligations in accordance with its terms; and</p>
|
||
<p><strong>(e)</strong> nothing contained in this Agreement will result in a breach of any provision of its constitutional documents or result in a breach of any agreement, license or other instrument, order, judgment or decree of any court or governmental body to which it is bound.</p>
|
||
<p><strong>5.2.</strong> <strong>Indemnity</strong> – The Advertiser hereby indemnifies, defends and holds harmless on an after tax basis the Company and each of the companies in the Company’s group and its and their directors, employees, officers, contractors, agents and any other related parties (each an <strong>Indemnified Person</strong>) from and against:</p>
|
||
<p><strong>(a)</strong> all or any claims, actions, proceedings, liabilities, investigations, demands, judgements and/or awards (in each case whether or not successful, compromised or settled and whether joint or several) (together <strong>Claims</strong> and each a <strong>Claim</strong>) which may be asserted, established, instituted, made, pending, threatened or alleged against or otherwise involve an Indemnified Person in any jurisdiction by any person whatsoever, including without limitation by a third party or by any supervisory or regulatory agency or body; and/or</p>
|
||
<p><strong>(b)</strong> all or any loss, damage, cost, liability, demand, charge, expense or tax (including, without limitation, (i) any direct, indirect or consequential losses, loss of profit, loss of business, business opportunities or goodwill, loss of reputation, (ii) all interest, penalties, legal costs and all other professional costs and expenses, (iii) all losses suffered or incurred in investigating, preparing for or disputing or defending or providing evidence in connection with or settling any Claim and/or in establishing its right to be indemnified pursuant to this clause 5.2 and/or in seeking advice regarding any Claim and/or in any way related to or in connection with the indemnity contained in this clause 5.2) (together <strong>Losses</strong> and each a <strong>Loss</strong>) which may be suffered or incurred by an Indemnified Person,</p>
|
||
<p>which, directly or indirectly, arise out of, or are attributable to, or are connected with the performance of the Agreement, the Ads, the Advertising Materials, the advertised goods or services or consumption thereof, or non-compliance by the Advertiser with any terms of this Agreement. </p>
|
||
<h4><a class="anchor" name="5-3-conduct-of-claims" href="#5-3-conduct-of-claims"><i class="anchor-icon"></i></a>5.3. Conduct of claims</h4>
|
||
<p><strong>(a)</strong> Each Indemnified Person shall give notice as soon as reasonably practicable to the Advertiser of any action commenced against it after receipt of a written notice of any Claim or the commencement of any action or proceeding in respect of which a Claim for indemnification may be sought hereunder, insofar as may be consistent with any obligation of confidentiality or other legal or regulatory obligation which that Indemnified Person owes to any third party or to any regulatory request that has been made of it, but failure to so notify the Advertiser shall not relieve the Advertiser from any liability or any obligation to indemnify the Advertiser and in any event shall not relieve the Advertiser from any liability which the Advertiser may have. Legal advisers to any Indemnified Person shall be selected by such Indemnified Person in its absolute discretion.</p>
|
||
<p><strong>(b)</strong> The Advertiser shall, at the request of any Indemnified Person, conduct the defense of any such action and shall do so at its own expense; provided, however, that legal advisers to the Advertiser shall be reasonably satisfactory to the Indemnified Persons and shall not (except with the consent of the Indemnified Person) also be legal advisers to the Indemnified Person. If the Advertiser conducts the defense of an action, it shall provide each relevant Indemnified Person with all relevant information in respect of any such action on a timely basis (including, without limitation, on request) and the Advertiser will take such action, in each case, as each relevant Indemnified Person may reasonably request.</p>
|
||
<p><strong>(c)</strong> The Advertiser shall not, without the prior written consent of the Indemnified Persons, settle or compromise or consent to the entry of any judgment with respect to any litigation, or any investigation or proceeding by any supervisory or regulatory agency or body, commenced or threatened, or any claim whatsoever in respect of which indemnification could be sought under clause 5.2 (whether or not the Indemnified Persons are actual or potential parties thereto), unless such settlement, compromise or consent: (i) includes an unconditional release of each Indemnified Person from all liability arising out of such Claim; and (ii) does not include a statement as to or an admission of fault, culpability or a failure to act by or on behalf of any Indemnified Person.</p>
|
||
<p><strong>(d)</strong> The provisions of this clause 5 shall not affect or be affected by any other agreement to which any Indemnified Person is a party with respect to indemnification.</p>
|
||
<p><strong>5.4. Contracts (Rights of Third Parties) Act 1999</strong> – Each Indemnified Person will have the right under the Contracts (Rights of Third Parties) Act 1999 to enforce its rights against the Advertiser under this clause 5; provided that only the consent of the specified parties to the Agreement shall be required to make any amendment of the Agreement or give any waiver under the Agreement.</p>
|
||
</div>
|
||
|
||
</div></section>
|
||
</div><div class="popup-container login-popup-container hide" id="login-popup-container">
|
||
<div class="popup">
|
||
<div class="popup-body">
|
||
<section>
|
||
<h2>Log In</h2>
|
||
<p>Log in here to manage your ads. Please enter your <b>phone number</b> in the <a target="_blank" rel="noopener" href="https://telegram.org/faq#login-and-sms">international format</a> and we will send a confirmation message to your account via Telegram.</p>
|
||
|
||
<form id="send-form" class="login-form">
|
||
<div class="form-group">
|
||
<input type="tel" class="form-control pr-form-control input-lg" id="phone-number" placeholder="+12223334455" autocomplete="off"/>
|
||
</div>
|
||
<div class="popup-buttons">
|
||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><button type="submit" class="btn btn-link btn-lg">Next</button>
|
||
</div>
|
||
</form>
|
||
|
||
<div id="login-form" class="hide">
|
||
<div class="form-group">
|
||
<span class="form-control pr-form-control input input-lg input-disabled"><strong id="phone-number-field"></strong> (<a class="login-back" href="/auth">Incorrect?</a>)</span>
|
||
<p class="help-block dots-animated">We've just sent you a message.<br/>Please confirm access via Telegram</p>
|
||
</div>
|
||
<div class="popup-buttons">
|
||
<a class="btn btn-link btn-lg login-cancel-btn">Cancel</a><a class="btn btn-link btn-lg login-back">Back</a>
|
||
</div>
|
||
</div>
|
||
</section>
|
||
</div>
|
||
</div>
|
||
</div></div>
|
||
<script src="/js/jquery.min.js?1"></script>
|
||
<script src="/js/bootstrap.min.js"></script>
|
||
<script src="/js/main-aj.js?62"></script>
|
||
<script src="/js/widget-frame.js?60"></script>
|
||
<script src="/js/promote.js?50"></script>
|
||
<script src="/js/jquery-ui.min.js?1"></script>
|
||
<script src="/js/jquery-ex.js?12"></script>
|
||
<script src="/js/tchart.min.js?18"></script>
|
||
<script src="/js/health.js?18"></script>
|
||
|
||
<script>ajInit({"version":823,"apiUrl":"\/api?hash=telegram-crawler","unauth":true});</script>
|
||
<script id="aj_script">l.add({"WEB_AB_WARNING_HEADER":"Turn off ad blocker","WEB_POPUP_CLOSE_BTN":"Close","WEB_AB_WARNING_TEXT":"You appear to be using an ad blocker that may prevent pages on the Telegram Ad Platform from working as expected.<br\/><br\/>Please turn off your ad blocker or add <a href=\"http:\/\/promote.telegram.org\/\">promote.telegram.org<\/a> as an exception to manage your promoted messages."});
|
||
window.enableInlineVideo&&$('video').each(function(){enableInlineVideo(this)});
|
||
Ads.init();
|
||
Aj.onLoad(function(state) {
|
||
function requestConfirmation(event) {
|
||
event && event.preventDefault();
|
||
var phone = $('#phone-number').val();
|
||
$.ajax({
|
||
type: 'POST',
|
||
url: '/auth/request',
|
||
data: {
|
||
phone: phone
|
||
},
|
||
success: function(result) {
|
||
$('#phone-number-field').text(phone);
|
||
$('#send-form').addClass('hide');
|
||
$('#login-form').removeClass('hide');
|
||
checkAuth(result.temp_session);
|
||
},
|
||
error: function(xhr) {
|
||
showAlert(xhr.responseText || 'Server error');
|
||
},
|
||
dataType: 'json'
|
||
});
|
||
return false;
|
||
}
|
||
function cancelConfirmation(event) {
|
||
event && event.preventDefault();
|
||
$('#phone-number-field').text('');
|
||
$('#send-form').removeClass('hide');
|
||
$('#login-form').addClass('hide');
|
||
$('#phone-number').focus();
|
||
clearTimeout(window.authTimeout);
|
||
return false;
|
||
}
|
||
function checkAuth(temp_session) {
|
||
clearTimeout(window.authTimeout);
|
||
window.authTimeout = setTimeout(function doCheckAuth() {
|
||
$.ajax({
|
||
type: 'POST',
|
||
url: '/auth/login',
|
||
data: {
|
||
temp_session: temp_session
|
||
},
|
||
success: function(result) {
|
||
if (result) {
|
||
location.reload();
|
||
} else {
|
||
checkAuth(temp_session);
|
||
}
|
||
},
|
||
error: function (xhr) {
|
||
showAlert(xhr.responseText || 'Server error');
|
||
},
|
||
dataType: 'json'
|
||
});
|
||
}, 700);
|
||
}
|
||
$('#login-popup-container').on('popup:open', function() {
|
||
$('#phone-number').focus();
|
||
});
|
||
$('#login-popup-container').on('popup:close', function() {
|
||
cancelConfirmation();
|
||
if (location.pathname == '/auth') {
|
||
window.history && history.replaceState(null, null, '/');
|
||
}
|
||
});
|
||
$('#login-popup-container #send-form').on('submit', requestConfirmation);
|
||
$('#login-popup-container .login-cancel-btn').on('click', function(e) {
|
||
e.preventDefault();
|
||
closePopup('#login-popup-container');
|
||
});
|
||
$('#login-popup-container .login-back').on('click', cancelConfirmation);
|
||
$('.login-link').on('click', function(e) {
|
||
e.stopImmediatePropagation();
|
||
e.preventDefault();
|
||
openPopup('#login-popup-container');
|
||
});
|
||
});
|
||
Aj.onUnload(function(state) {
|
||
$('#login-popup-container').off('popup:open');
|
||
$('#login-popup-container').off('popup:close');
|
||
$('#login-popup-container #send-form').off('submit');
|
||
$('#login-popup-container .login-cancel-btn').off('click');
|
||
$('#login-popup-container .login-back').off('click');
|
||
$('.login-link').off('click');
|
||
});
|
||
</script>
|
||
<script>Aj.pageLoaded();</script>
|
||
|
||
</body>
|
||
</html>
|
||
|