telegram-bot-api: Persistent "ERROR" When Creating Telegram Application

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.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 30 (2 by maintainers)

Most upvoted comments

Same issue. Lack of actual error message is annoying.

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

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.

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…

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

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.

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!

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

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.

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: @.***>

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

any news on how to solve the issue?

I asked my indian friend to do. Worked Perfect.