Welcome Telegram bot source
The simplest Telegram bot that greets the user and echoes their messages.
We have prepared four widely used Telegram bots in Python using only the requests library; each source comes with a full, plain-language guide so that even a beginner can get their bot running.
import requests
# 1) Get your bot token from @BotFather in Telegram and paste it here.
TOKEN = "PASTE_YOUR_BOT_TOKEN_HERE"
# Telegram API base address
BASE = f"https://api.telegram.org/bot{TOKEN}"
def send_message(chat_id, text):
"""Send a text message to the user."""
url = f"{BASE}/sendMessage"
data = {"chat_id": chat_id, "text": text}
try:
requests.post(url, json=data, timeout=15)
Tap whichever bot you need; the full guide and download button are on that bot’s page. All free.
The simplest Telegram bot that greets the user and echoes their messages.
Automatically answers customers’ frequent questions with a button keyboard.
Takes the customer’s name, product and phone number step by step and saves the order.
Registers users and lets you send a message and discount to everyone at once.
Even if you are new, this simple path gets you to a working bot.
Create a bot with the BotFather bot inside Telegram and get its token.
Install Python and run the command pip install requests in the terminal.
Download the source, put the token in the file and run python bot.py.
Yes, all 4 Telegram bot sources on this page are completely free and downloadable without registration.
You need the Python language and the requests library, and you get the bot token from BotFather in Telegram. A full guide for each bot is on its own page.
The Filtor team builds a custom Telegram bot with an admin panel, database and payment. Just contact us by phone at +98 912 287 4862 or message us on Telegram.
The Filtor team builds a professional Telegram bot with an admin panel, database and payment, tailored to your work.