Step 1: get API keys from Telegram
Telegram RegExp AutoResponderThe program requires special access keys from Telegram.
- Open my.telegram.org in your browser
- Enter your phone number with country code (e.g.,
+1234567890) - Important: The confirmation code will arrive in the Telegram app, not via SMS!
- Open Telegram on your phone or computer
- Find the code in the “Service Notifications” chat (looks like
12345) - Enter this code on the website my.telegram.org in the input field
- Click “API development tools”
- Fill in the fields (any values are fine):
- App title:
MyBot - Short name:
MyBot
- App title:
- Click “Create” or “Save”
- Copy the two values that appear:
- api_id — a number (e.g.,
12345678) - api_hash — a string of letters and numbers (e.g.,
abc123def456...)
- api_id — a number (e.g.,
Save these values — you’ll need them in the next step.