PHPackages                             intrd/telegram-simple\_phpbot - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. intrd/telegram-simple\_phpbot

ActiveLibrary

intrd/telegram-simple\_phpbot
=============================

Telegram Simple PHP Bot - A different and simple approach to use Telegram Bot Plataform (No SSL or setWebhook needed)

1.1(10y ago)251[1 issues](https://github.com/intrd/telegram-simple_phpbot/issues)CC-BY-SA-4.0PHPPHP &gt;=5.3.0

Since May 7Pushed 9y ago2 watchersCompare

[ Source](https://github.com/intrd/telegram-simple_phpbot)[ Packagist](https://packagist.org/packages/intrd/telegram-simple_phpbot)[ Docs](https://github.com/intrd/telegram-simple_phpbot)[ RSS](/packages/intrd-telegram-simple-phpbot/feed)WikiDiscussions 1.1 Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Telegram Simple PHP Bot - A different and simple approach to use Telegram Bot Plataform (No SSL or setWebhook needed) Packageintrd/telegram-simple\_phpbotVersion1.1Tagstelegram, bot, eggdrop, phpProject URL[http://github.com/intrd/telegram-simple\_phpbot](http://github.com/intrd/telegram-simple_phpbot)Authorintrd (Danilo Salles) - Copyright(CC-BY-SA-4.0) 2016, intrdLicense[Creative Commons Attribution-ShareAlike 4.0](http://creativecommons.org/licenses/by-sa/4.0)Dependencies • php &gt;=5.3.0 • intrd/php-common &gt;=1.0.x-dev [![telegram_simple_bot](/imgs/telegram_simple_bot.jpg?raw=true "telegram_simple_bot")](/imgs/telegram_simple_bot.jpg?raw=true)

Installation
============

[](#installation)

System requiriments &amp; dependencies

```
$ sudo apt-get update & apt-get upgrade
$ sudo apt-get install curl git php5-curl php5-cli
$ curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

Now download the package (Composer automatically install all dependencies)
$ git clone https://github.com/intrd/telegram-simple_phpbot && cd telegram-simple_phpbot
$ composer install -o

To check for update..
$ git pull && composer update

```

Usage
-----

[](#usage)

*TL;DR*: The sample.php file will check every 5s if someone is mentioning the bot @username or talking him in pvt. It process and reply based on his message w/ some custom triggers.

### Steps to setup your bot

[](#steps-to-setup-your-bot)

1. Open Telegram, talk w/ the `http://telegram.me/BotFather`, setup a new Telegram Bot and take a note of your `BotID:Botkey`, something like: `234015785:AAEsvIjg0AcWOINXR0Xt-TGLamuz9k8f10Y`
2. Create a copy of configuration file sample `cp config.ini.sample config.ini`
3. Edit `config.ini` and set your `botkey`
4. Search on Telegram for your `@username_bot` and start a conversation..
5. Now run `php sample.php`, it shows your `chatID`. Set `debug_chatid` on `config.ini`. All bot activity will be forwarded to this conversation, for debbugin purpose.
6. Change the `trigger` to your `username_bot` or something you want to trigger your bot replies on groups.
7. To check if someone is talking w/ your bot every 5 seconds use my bash daemon sample `./run.sh &`, or `watch -n5 php sample.php` or setup a cronjob
8. Now put him on a group..
9. Test if your bot is replying when you mention his `trigger`, ask him about `day of week`, say him some of `$bads`, customize `reply_get()` function.

### Tips

[](#tips)

**Manually check (botid/botkey/chatid)**

Browse to your bot URL: `https://api.telegram.org/bot:/sendmessage?chat_id=&text=hello%20world!` in my sample `https://api.telegram.org/bot234015785:AAEsvIjg0AcWOINXR0Xt-TGLamuz9k8f10Y/sendmessage?chat_id=65628842&text=hello%20world!`, if the bot says `Hello World!` to you, its ok. PS: group chats use negative chatIDs, `-`

**If you prefer not to use daemons (SSL Webserver)**With a SSL webserver serving your sample.php, simply setup your hook URL by browsing:
`https://api.telegram.org/bot:/setWebhook?url=http://yourwebserver/sample.php`
..and Telegram server will load this URL every time the bot receive a msg.

That's all,
Script this 4 your needs and respect the CC license, thanks!

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3655d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6e99bd43ebbd83754fea7913c50a20d0bf8efe4b47c7c048974546becdab1a6?d=identicon)[intrd](/maintainers/intrd)

---

Top Contributors

[![intrd](https://avatars.githubusercontent.com/u/2204686?v=4)](https://github.com/intrd "intrd (82 commits)")

---

Tags

phpbottelegramintrdeggdrop

### Embed Badge

![Health badge](/badges/intrd-telegram-simple-phpbot/health.svg)

```
[![Health](https://phpackages.com/badges/intrd-telegram-simple-phpbot/health.svg)](https://phpackages.com/packages/intrd-telegram-simple-phpbot)
```

###  Alternatives

[telegram-bot/api

PHP Wrapper for Telegram Bot API

1.2k2.4M29](/packages/telegram-bot-api)[borsaco/telegram-bot-api-bundle

A simple wrapper for telegram-bot-api.

5633.0k](/packages/borsaco-telegram-bot-api-bundle)[klev-o/telegram-bot-api

Simple and convenient object-oriented implementation Telegram bot API with php version ^7.4 support. You'll like it)

457.8k1](/packages/klev-o-telegram-bot-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
