https://github.com/fiisya/userbot-telegram
Telegram bot user using GramJS module
https://github.com/fiisya/userbot-telegram
bot telegram telegram-bot
Last synced: 12 months ago
JSON representation
Telegram bot user using GramJS module
- Host: GitHub
- URL: https://github.com/fiisya/userbot-telegram
- Owner: Fiisya
- Created: 2025-06-04T19:00:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-05T02:38:17.000Z (about 1 year ago)
- Last Synced: 2025-06-05T06:04:56.616Z (about 1 year ago)
- Topics: bot, telegram, telegram-bot
- Language: JavaScript
- Homepage: https://api.alfixd.my.id
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting API ID and API Hash for Telegram Bot
To use Telegram's API and run your bot, you need to obtain an **API ID** and **API Hash** from Telegram. Follow the steps below to get them:
## Steps to Get API ID and API Hash
1. **Go to Telegram Developer Portal**
- Open [https://my.telegram.org](https://my.telegram.org) in your browser.
2. **Log in to Your Telegram Account**
- Enter your phone number and verify it using the code sent via Telegram.
3. **Create a New Application**
- Click on **"Create New Application"**.
- Fill in the required details:
- **App title**: Choose any name for your app.
- **Short name**: Enter a short identifier for your app.
- **Platform**: Select the platform (Android, iOS, Web, etc.).
- **Description**: (Optional) Describe your app.
4. **Get API Credentials**
- After submitting the form, you will see:
- **API ID** (a numeric ID).
- **API Hash** (a long alphanumeric string).
5. **Use API ID and API Hash**
- Save these credentials securely.
- Use them in your bot configuration to authenticate with Telegram's API.
## Example Configuration
```js
module.exports = {
apiId: "YOUR_API_ID",
apiHash: "YOUR_API_HASH"
};