forked from MrCyjaneK/userbot.php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.php
More file actions
21 lines (21 loc) · 687 Bytes
/
start.php
File metadata and controls
21 lines (21 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
include "init.php";
while (1) {
try {
$MadelineProto->setCallback(function ($update) use ($MadelineProto, $config) {
include "./madeline.loop.php";
});
$MadelineProto->async(true);
$MadelineProto->loop();
} catch (Exception $e) {
logger("CRITICAL ERROR OCCURED AT CORE",2);
logger("Please send log file to t.me/UserbotDotPhp",2);
logger("If possible attach:",2);
logger(" > debug.txt",2);
logger(" > MadelineProto.log",2);
logger("==========================================",2);
logger($e,0);
}
logger("userbot will restart in 60 seconds",2);
sleep(60);
}