PHP Classes
elePHPant
Icontem

File: src/Autoloader.php

Recommend this page to a friend!
  Classes of David Girón  >  PHP Telegram Bot  >  src/Autoloader.php  >  Download  
File: src/Autoloader.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Telegram Bot
Send and receive messages to Telegram users
Author: By
Last change: FIX Autoloader.
Add Sticker to autoload and small cleanup.
Date: 1 year ago
Size: 533 bytes
 

Contents

Class file image Download
<?php

$dir
= dirname(__FILE__) .'/';
$files = [
   
'User.php',
   
'Chat.php',
   
'Bot.php',

   
'Keyboards/Keyboard.php',
   
'Keyboards/InlineKeyboard.php',

   
'Payments/Stripe.php',

   
'Sticker.php',

   
'Elements/Base.php',
   
'Elements/Voice.php', // REQUIRED for priority
];

foreach(
scandir($dir .'Elements/') as $file){
    if(
substr($file, -4) != ".php"){ continue; }
   
$files[] = 'Elements/' .$file;
}

$files[] = 'Receiver.php';
$files[] = 'Sender.php';

foreach(
$files as $file){
    require_once
$dir .$file;
}

unset(
$dir);
unset(
$files);

?>