PHP Classes

File: setwebhook.php

Recommend this page to a friend!
  Classes of Mateo   PHP Telegram Bot to Purge Messages   setwebhook.php   Download  
File: setwebhook.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Telegram Bot to Purge Messages
Bot to delete messages in telegram
Author: By
Last change:
Date: 1 month ago
Size: 262 bytes
 

Contents

Class file image Download
<?php

require __DIR__ . '/vendor/autoload.php';
/** @var \Mateodioev\TgHandler\Bot $bot */
$bot = require __DIR__ . '/bot.php';

$api = $bot->getApi();
$url = readline('Enter the webhook url: ');

echo
$api->setWebhook($url)
    ->
toString(JSON_PRETTY_PRINT)
;