Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
Telegram API Developer Guide

Discover the World of Telegram Bots

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.

EkaBot bot
Hello! How can I help you? /start
I want to know my order status.
Please enter your order number... 🤖

BotFather
Installation

Create your own bot in seconds and get tokens.

Finding ID
Methods

Easily learn User, Group and Channel IDs (Chat ID).

Webhook &
Polling

Understand your bot's operating logic and server communication.

Bot
hosting

VDS solutions that will keep your bots 7/24 running without interruption.

What is Telegram Bot and What Does It Do?

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).

  • 7/24 Active: They never sleep, they respond at all times.
  • Entegrasyon: They can talk to your website or other APIs.
  • Free: Creating bots and using the API is completely free.

How to Set Up a Bot with BotFather?

Build your own bot step by step and get Tokens

1

Find BotFather

Telegram search bar @BotFather type and open the account with the blue tick. /start Start by saying.

2

Create New Bot

/newbot send command. BotFather asks you to create a website for your bot. Name (Example: Eka Support).

3

Set a Username

A unique one for your boat Username (Username) select. The end is sure bot It must end with (Ex: ekaservucubot).

4

Get API Token

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

How to Find Telegram ID (Chat ID)?

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.

Easiest Methods:

1. Using RawDataBot

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.

2. For Groups

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.

3. Web Telegram (Plus)

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?"
  }
}

Technical Details: Webhook vs Long Polling

Choose how your bot communicates with the server

long polling

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 Beginners

Webhook

When 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

Sample PHP Code (Sending Message)

<?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);
?>

Professional Boating Services

Host your bots or print custom bots with Eka Sunucu assurance

Bot Hosting (VDS)

150 / Monthly

Ideal for 7/24 uninterrupted operation of your Python, Node.js or PHP bots.

  • 2 GB RAM / 2 CPU
  • 40 GB NVMe SSD
  • Ubuntu/AlmaLinux/Windows
  • Python/Node.js Ready Installation
  • 7/24 Technical Support
Check out the packages

Frequently Asked Questions

Frequently asked questions about Telegram bots

Is Telegram Bot API paid?

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.

Can bots read messages in groups?

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.

What programming languages can I use?

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.).

Is there a bot message limit?

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.

Let's Turn Your Idea into a Bot!

To implement the bot project you have in mind, contact our technical team or start development immediately by renting a server.

Top