telegram-bot-api icon indicating copy to clipboard operation
telegram-bot-api copied to clipboard

Persistent "ERROR" When Creating Telegram Application

Open McxCZE opened this issue 1 year ago • 6 comments

I am experiencing persistent "ERROR" messages when attempting to create a Telegram application via the my.telegram.org site. Despite following various suggested fixes, the problem remains unresolved. Steps to Reproduce:

Fill in the required fields for creating a new application on my.telegram.org. Click the "Create Application" button.

Expected Result:

The application should be created successfully without errors. Actual Result:

An "ERROR" message is displayed, and the application is not created. What I Have Tried:

Python Script for Automation:

import requests
import time
import logging

# Set up logging
logging.basicConfig(filename='telegram_app_creation.log', level=logging.INFO, format='%(asctime)s %(levelname)s %(message)s')

# URL and headers for the request
url = "https://my.telegram.org/apps/create"
headers = {
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36 Edg/125.0.0.0',
    'Cookie': 'stel_token=MY_STEL_TOKEN',
    'Origin': 'https://my.telegram.org',
    'Referer': 'https://my.telegram.org/apps',
    'Accept': '*/*',
    'Accept-Encoding': 'gzip, deflate, br, zstd',
    'Accept-Language': 'cs,en;q=0.9,en-GB;q=0.8,en-US;q=0.7',
    'X-Requested-With': 'XMLHttpRequest'
}

# Form data
data = {
    'hash': 'MY_HASH',
    'app_title': 'AppTitlev20240906',
    'app_shortname': 'AppShortv20240906',
    'app_url': 'https://my.telegram.org/apps',
    'app_platform': 'web',
    'app_desc': 'Chat Application is designed to help you read groups as quickly as possible. This app leverages the Telegram API, ensuring seamless integration with the Telegram ecosystem.'
}

def send_request():
    response = requests.post(url, headers=headers, data=data, verify=False)
    return response

def worker():
    retries = 3
    for _ in range(retries):
        response = send_request()
        if response.status_code == 200 and "ERROR" not in response.text:
            logging.info("Application created successfully.")
            logging.info(response.text)
            break
        else:
            logging.error("Encountered ERROR, retrying...")
            logging.error(response.text)
            time.sleep(1)  # Wait for 1 second before retrying

num_requests = 50
requests_per_worker = num_requests // 2

for _ in range(2):  # 2 workers
    for _ in range(requests_per_worker):
        worker()

JavaScript Console Script:

    (function retryCreateApp() {
        // Define a function to override the default alert behavior
        window.alert = function(message) {
            if (message === "ERROR") {
                console.log("Error encountered, retrying...");
                // Re-run the createApp function after a brief delay
                setTimeout(createApp, 1000);
            } else {
                // Restore the default alert behavior for other messages
                alertOriginal(message);
            }
        };

        // Save the original alert function to restore it later if needed
        var alertOriginal = window.alert;

        // Function to start the process
        function startCreateApp() {
            createApp();
        }

        // Add an event listener to the button to start the process
        document.getElementById("app_save_btn").addEventListener("click", startCreateApp);
    })();

Tried without VPN: I am from Europe, and I have tried accessing the site with my home IP address and phone number.

Community Suggestions Attempted:

  • Using different browsers (Edge, Chrome)
  • Disabling ad-blockers
  • Changing platform (web, Android, etc.)
  • Ignoring "ERROR" message and retrying

Environment:

  • Location: Europe
  • Browser: Multiple browsers (Chrome, Edge)
  • VPN: Tried with and without VPN (I tried with some datacenter VPN in Russia, but to no avail...)

Request for Assistance:

I would greatly appreciate any further insights or solutions from the community or developers to resolve this persistent issue.

McxCZE avatar Jun 09 '24 20:06 McxCZE

It looks like you are trying to automatically create application. This makes no practical sense, supposed to fail, and you are supposed to receive "ERROR" as the response.

levlam avatar Jun 09 '24 20:06 levlam

It was a desperate attempt, someone referenced a video that when clicking it automatically sometimes helps, I have tried countless times to do it in different browsers, by hand with no luck, I just get this generic error. There is no details nothing.

obrazek

McxCZE avatar Jun 09 '24 20:06 McxCZE

I have basically tried everything there is to try in this thread https://github.com/tdlib/telegram-bot-api/issues/273, and I have noticed that it is closed, but with no solution that would work for me, nothing.

I am using my own phone number, and I am logging in from my own home IP address, in desperation I have tried a VPN, but to no avail, as I have written before

https://github.com/tdlib/telegram-bot-api/issues/273

McxCZE avatar Jun 09 '24 20:06 McxCZE

If you receive an error from your home IP address, then you can only try to register application from some other place.

levlam avatar Jun 09 '24 21:06 levlam

same error with me, have you got the fix? @McxCZE

www222fff avatar Jun 17 '24 03:06 www222fff

I tried to manually register an app I get the same error too.

pickfire avatar Jun 23 '24 02:06 pickfire

It would seem that telegram developer portal is purposely rejecting applications. are they not accepting new applications?

I create a brand new telegram account with brand new phone number. Still Doesn't work.

shamp-dev avatar Sep 18 '24 10:09 shamp-dev

any news on how to solve the issue?

annamarchenkova avatar Sep 20 '24 09:09 annamarchenkova

any news on how to solve the issue?

I asked my indian friend to do. Worked Perfect.

shamp-dev avatar Sep 21 '24 12:09 shamp-dev

Same error. Tested with different browsers, without any extension activated. Same IP from my Telegram session. I just get the ERROR window and no otther clue. Any hints?

eagle1maledetto avatar Oct 31 '24 15:10 eagle1maledetto

Same issue. Lack of actual error message is annoying.

413x1nkp avatar Nov 06 '24 07:11 413x1nkp

Same issue. Lack of actual error message is annoying.

Try to use an Android phone with mobile/carrier IP. Worked for me.

eagle1maledetto avatar Nov 06 '24 08:11 eagle1maledetto

Same issue. Lack of actual error message is annoying.

Try to use an Android phone with mobile/carrier IP. Worked for me.

Oh, yeah, that worked! Why though... Regardless, thank you so much!

413x1nkp avatar Nov 06 '24 09:11 413x1nkp

Same issue. Lack of actual error message is annoying.

Try to use an Android phone with mobile/carrier IP. Worked for me.

Oh, yeah, that worked! Why though... Regardless, thank you so much!

I think to stop/limit bot interaction from creating new API key in a programmatic way

eagle1maledetto avatar Nov 06 '24 09:11 eagle1maledetto

is there anyone apply successfully?

fat1 avatar Jan 09 '25 07:01 fat1

This mistake is many years old. It's amazing that developers ignore this problem and don't give any comments. I've tried using different devices, different phone numbers, enabling/disabling VPN, etc. Nothing has worked for me. About 4 years ago I managed to register the app on the first try and never had such luck again. I was hoping that in 4 years they would fix this bug, but no.... I'm making an application, the essence of which is tied to the userAPI and this error has completely ruined the whole idea.

Octoober avatar Jan 11 '25 22:01 Octoober

we need fix asap!!!!

mr-v-v-v avatar Feb 11 '25 22:02 mr-v-v-v

Try to use an Android phone with mobile/carrier IP. Worked for me.

Wow, that worked for me too.

shbchk avatar Feb 19 '25 07:02 shbchk

By trial and error I came to the conclusion that one suspicious attempt (e.g. phone number mismatch with actual IP) is enough to get a temporary blocking. After about 24 hours, I tried again from my PC, and I was able to register the app. I used a phone number that matched the IP.

I think they purposely don't display detailed error information to make it harder for automatic spambots to create. But from the looks of it, it's not effective, it's more of a hindrance to regular developers.

Octoober avatar Feb 19 '25 16:02 Octoober

For those who are still having this problem, try this:

  • Turn off any Adblocker extensions in your browser (some browsers like Brave have it by default, just turn it off)
  • Use Cloudflare warp VPN or any VPN that hides your current location.
  • Use a fresh browser to be sure

TheMarwin avatar Feb 21 '25 22:02 TheMarwin

Same issue. Lack of actual error message is annoying.

Try to use an Android phone with mobile/carrier IP. Worked for me.

Oh, yeah, that worked! Why though... Regardless, thank you so much!

I think to stop/limit bot interaction from creating new API key in a programmatic way

I just created a telegram app programmatically with JS after 5 days of core debugging and workaround hacks. if this comment gets enough requests, i will find time, arrange the full code and release the repo...

spidy0x0 avatar May 12 '25 03:05 spidy0x0

Same issue. Lack of actual error message is annoying.

Try to use an Android phone with mobile/carrier IP. Worked for me.

Oh, yeah, that worked! Why though... Regardless, thank you so much!

I think to stop/limit bot interaction from creating new API key in a programmatic way

I just created a telegram app programmatically with JS after 5 days of core debugging and workaround hacks. if this comment gets enough requests, i will find time, arrange the full code and release the repo...

Bro not even the devs bother to care please you do and release that code

behradiy avatar May 31 '25 11:05 behradiy

Cloudflare warp worked for me. I used my real location + real number + wrap.

salmansoltaniyan avatar Jun 01 '25 09:06 salmansoltaniyan

帮助申请telegram application 秒成功 无论什么账号 解决telegram application error问题

Help apply for telegram application in seconds, no matter what account, solve telegram application error problem

请联系Telegram : @guang8886667

请联系Telegram : https://t.me/guang8886667

guang8886667 avatar Jul 03 '25 04:07 guang8886667

帮助申请telegram application 秒成功 无论什么账号 解决telegram application error问题

Help apply for telegram application in seconds, no matter what account, solve telegram application error problem

请联系Telegram : @guang8886667

请联系Telegram : https://t.me/guang8886667

guang8886667 avatar Jul 03 '25 04:07 guang8886667

+1 Impossible to create an app on the https://my.telegram.org/apps page. I've tried everything you possibly can. Afraid to try any further due to the login page of my.telegram.org blacklisting your phone number if you dare change your IP again (Which invalidates your session).

Very half baked api portal. Shit "ERROR" plaintext (And nothing else) response from https://my.telegram.org/apps/create.

Absolute headache.


And just like that after changing nothing but the app title and short-name (URL blank) and selecting Desktop for the app type... it let me register the app.

I suspect there's some kind of app title / app shortname collision going on in telegram that it's not telling us in the error. Perhaps app names plus their shortname's need to be unique (And don't forget, alphanumeric, no spaces)


After all that trouble the download speed of the API is only ~5MB/s (And up to 8MB/s total across multiple files at once). It was much faster to just enable media downloading in Telegram itself and then hold PgUp for 30 seconds to scroll to the top of the list. Saturated a 1gbps downlink right in Telegram itself.

ipaqmaster avatar Jul 06 '25 04:07 ipaqmaster

It’s possible lol But a crazy workaround and too much stealth needed

I will create the repo soon

On Sun, 6 Jul 2025 at 4:58 AM, Jared Johnstone @.***> wrote:

ipaqmaster left a comment (tdlib/telegram-bot-api#597) https://github.com/tdlib/telegram-bot-api/issues/597#issuecomment-3040877199

+1 fucking impossible to create an app on the https://my.telegram.org/apps page. I've tried everything you possibly can. Afraid to try any further due to the login page of my.telegram.org blacklisting your phone number if you dare change your IP again (Which invalidates your session).

Very half baked api portal. Shit "ERROR" plaintext (And nothing else) response from https://my.telegram.org/apps/create.

Absolute headache.

— Reply to this email directly, view it on GitHub https://github.com/tdlib/telegram-bot-api/issues/597#issuecomment-3040877199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJVIRDJHKQFKK6W5KJGBLFD3HCUFPAVCNFSM6AAAAABJBFHM5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTANBQHA3TOMJZHE . You are receiving this because you commented.Message ID: @.***>

spidy0x0 avatar Jul 06 '25 11:07 spidy0x0

Same issue

somebodysomebodynov avatar Jul 18 '25 04:07 somebodysomebodynov

Some again

RobertEyler avatar Jul 20 '25 12:07 RobertEyler

tell me what to do

.com

On Sun, Jul 20, 2025, 1:48 PM RobertEyler @.***> wrote:

RobertEyler left a comment (tdlib/telegram-bot-api#597) https://github.com/tdlib/telegram-bot-api/issues/597#issuecomment-3094499272

Some again

— Reply to this email directly, view it on GitHub https://github.com/tdlib/telegram-bot-api/issues/597#issuecomment-3094499272, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIYQHAVLBPBTS3OMX2D5ESL3JOFZBAVCNFSM6AAAAABJBFHM5KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTAOJUGQ4TSMRXGI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Ability08035 avatar Jul 20 '25 14:07 Ability08035