30

I'm trying to get my API id/hash to create some bots for telegram , but in the API developmen tools section , when I enter my bot informations( name , shortname...) and click on create to get the results , I recieve an error :

my.telegram.org says ERROR

I live in Iran and telegram servers are blocked here .

Any solution for this problem?

!! I found the Iranians-only solution which I wrote down below .

Jerry Chong
  • 7,954
  • 4
  • 45
  • 40
aboss
  • 520
  • 1
  • 4
  • 14
  • 3
    for using creating bots you can just message @botfather in telegram and the official botfather boot will help you create a bot and get an api key for that bot. – John Aug 30 '21 at 23:50
  • 1
    Please provide enough code so others can better understand or reproduce the problem. – Community Aug 31 '21 at 10:14
  • 2
    With a VPN I got this error. Without using the VPN it worked. – P i Sep 15 '21 at 16:17
  • 1
    Does this answer your question? [Create new application telegram API](https://stackoverflow.com/questions/38104560/create-new-application-telegram-api) – Nabi K.A.Z. Oct 13 '21 at 07:14
  • 2
    this does not answer the question. They want an Telegram API key, not a bot API key. – Doug Kent Oct 23 '21 at 10:03
  • (to Nabi) No it doesn't . not for Chinese and Iranians . – aboss Jun 01 '23 at 21:12

6 Answers6

11

NEW and SIMPLE answer :

  • Just ask the bot father (https://t.me/BotFather) to help you create a new bot and give you the api key . very simple and lovely . (thanks Mr.https://stackoverflow.com/users/5485852/john)
  1. go to https://t.me/BotFather
  2. type /newbot
  3. choose a name for your bot
  4. choose a username for your bot
  5. Done! it will send you the HTTP API key .

enter image description here

My OLD answer: (Mosty for countries that have blocked Telegram!)

  • Use good VPNs that can hide your main ip. Telegram's website can find your main ip and will not allow you to use its features, so try different SAFE VPNs until you finally get your api key .(but the better way is to ask the bot father (https://t.me/BotFather)
aboss
  • 520
  • 1
  • 4
  • 14
  • select android from the platform worked for me! – Ericgit Feb 17 '23 at 18:30
  • I am sorry, but I would not call that an answer but a workaround. It's utterly horrible some developers release programs which do not handle errors properly, show implicit error messages, and require others to invest precious and priceless time instead of actually working or try to enjoy the short life we all have. – Artfaith Aug 12 '23 at 12:35
10

I disable the "AdBlock" extension in the browser and it's work. That may happen with enabled VPN extension as well enter image description here

CodeToLife
  • 3,672
  • 2
  • 41
  • 29
Tung Luong Thanh
  • 377
  • 6
  • 11
5

The ip address must be in the same country as the mobile phone number of the telegram account when applying

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
okxxxok.com
  • 51
  • 1
  • 1
  • I live in Iran . telegram servers are blocked here . so what you said is not an answer for Iranians . ( I think you gave me that negative point , I invite you to come to Iran and check both of our answers ) – aboss May 27 '22 at 10:19
  • I tried vpn and that didn't work... – Liker777 Aug 07 '22 at 09:49
  • How about if you have an 888 number? – Benny Mar 30 '23 at 15:40
3

In my case the only way to make it work was to switch from Chrome to Safari

Mattia Baldari
  • 567
  • 1
  • 5
  • 15
2

The ip address and phone number should be in the same country. If you are in countries that prevents you from Telegram such as China. The only way is to use the mobile number of another country (you can use Google Voice, textnow or etc.). By the way, if you use a +86 phone number, you can try using the IP address in Hong Kong

DreamOneX
  • 21
  • 2
2

Working as of 1st January 2023

I've managed to register new App in PC under VPN (IP with another country that same with my registered number origin country) with following form details:

App title: TestApp1
Short name: testapp1
URL: N/A (Fill nothings here)
Platform: Desktop
Description: N/A (Fill nothings here)

OS: Windows 11 Browser: Microsoft Edge (InPrivate mode without any plugins installed)

Hope this helps!

Jerry Chong
  • 7,954
  • 4
  • 45
  • 40