Automate your business, manage your communities, and respond to your customers instantly. Telegram Bot APIoffers unlimited possibilities, from simple notifications to complex e-commerce systems.
In this guide; BotFather bot installation with, Telegram ID You will find discovery methods, API integration and Eka Sunucu's professional bot development services.
Create your own bot in seconds and get tokens.
Easily learn User, Group and Channel IDs (Chat ID).
Understand your bot's operating logic and server communication.
VDS solutions that will keep your bots 7/24 running without interruption.
Telegram Bots, are software robots that run within Telegram, can message users, process commands, and automate various tasks. They do not need a phone number and are managed through codes.
With bots, you can send newsletters, make e-commerce sales, provide customer support, automate group management (spam blocking, etc.) or receive notifications from external systems (server status, stock market data).
Build your own bot step by step and get Tokens
Telegram search bar @BotFather type and open the account with the blue tick. /start Start by saying.
/newbot send command. BotFather asks you to create a website for your bot. Name (Example: Eka Support).
A unique one for your boat Username (Username) select. The end is sure bot It must end with (Ex: ekaservucubot).
If the transaction is successful, BotFather will send you a long HTTP API Token will give. Do not share this key with anyone!
123456789:ABCdefGhIJKlmNoPQRstUVwxyZ
To send messages with the Telegram API, the target person or group must have a unique Chat IDYou need . Usernames (@user) are generally useless on the API side, numeric ID is required.
Telegram'da @RawDataBotSearch for and launch it. In the JSON data it sends to you "id": 123456789 Find the line. This is your User ID.
Add the bot to your group. From your browser, go to:
https://api.telegram.org/botTOKEN/getUpdates
Send a message to the group and refresh the page. "chat": {"id": -100...} The number starting with a minus in the section is the Group ID.
Some 3. Partial Telegram clients (Plus Messenger etc.) show the ID directly in the profile settings.
{
"update_id": 8837461,
"message": {
"message_id": 12,
"from": {
"id": 987654321,
"is_bot": false,
"first_name": "Ahmet",
"username": "ahmet123"
},
"chat": {
"id": -1001234567890,
"title": "Eka Destek Grubu",
"type": "supergroup"
},
"date": 1678901234,
"text": "ID nedir?"
}
}
Choose how your bot communicates with the server
Your bot constantly asks Telegram servers "Are there any new messages?" he asks. It is simple to install and runs on the local computer. However, it can create delays in bots with a lot of traffic and consumes server resources.
Good for BeginnersWhen a new message arrives, Telegram instantly sends (push) the data to your server (URL). It is faster, resource-friendly, but SSL Certificate (HTTPS) Requires a server with
Professional Choice
<?php
$token = "SIZIN_BOT_TOKENINIZ";
$chat_id = "HEDEF_CHAT_ID";
$mesaj = "Merhaba! Bu bir test mesajıdır.";
$url = "https://api.telegram.org/bot$token/sendMessage";
$data = ['chat_id' => $chat_id, 'text' => $mesaj];
$options = [
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/x-www-form-urlencoded\r\n",
'content' => http_build_query($data)
]
];
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
?>
Host your bots or print custom bots with Eka Sunucu assurance
Ideal for 7/24 uninterrupted operation of your Python, Node.js or PHP bots.
We design and code professional Telegram bots tailored to your needs.
Frequently asked questions about Telegram bots
No, Telegram Bot API is completely free. However, you may need a server (VDS/Hosting) to run your bot 7/24 , this server cost is your responsibility.
By default, bots come with "Privacy Mode" turned on and only see commands (/) or messages they are replied to. If "Privacy Mode" is turned off via BotFather, they can see all messages.
Since Telegram Bot API is HTTP-based, you can write bots in any language that can send HTTPS requests (PHP, Python, Node.js, C#, Java, Go, etc.).
Yes, there are limits to prevent spam. A bot can send 1 messages per second to the same chat, and a total of 30 messages per second to different chats. If these limits are exceeded, you will receive the "429 Too Many Requests" error.
To implement the bot project you have in mind, contact our technical team or start development immediately by renting a server.