PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Mateo   PHP Telegram Bot to Purge Messages   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Telegram Bot to Purge Messages
Bot to delete messages in telegram
Author: By
Last change:
Date: 1 month ago
Size: 636 bytes
 

Contents

Class file image Download

Purge bot

Example bot to delete messages

Installation

Clone the repository

git clone https://github.com/Mateodioev/purge-bot purge-bot-php
cd purge-bot-php

Install dependencies

composer install

Usage

Webhook mode

For this you will need a public endpoint with https In the file webhook.php you can find an example of a simple server with _amphp/http-server_

php webhook.php

You can also set the webhook with the file setwebhook.php

php setwebhook.php

Longpolling

For this you dont need a public server, only execute the script

php longpolling.php