-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbot.php
More file actions
24 lines (21 loc) · 1.13 KB
/
bot.php
File metadata and controls
24 lines (21 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('TM_ERR0R.madeline');
$MadelineProto->async(true);
$MadelineProto->loop(function () use ($MadelineProto) {
yield $MadelineProto->start();
date_default_timezone_set('Asia/Tehran');
$time = date("H•i");
try {
yield $MadelineProto->channels->joinChannel(['channel' => '@TM_ERR0R']);
yield $MadelineProto->account->updateStatus(['offline'=> false]);
yield $MadelineProto->account->updateProfile(['last_name' => "$time"]); // به جای last_name میتونید first_name بزارید تا تایم روی اسم خودتون به نمایش بزاره
} catch (\danog\MadelineProto\RPCErrorException $e) {
} catch (\danog\MadelineProto\Exception $e2) {
}
});
echo (base64_decode('PGNlbnRlcj48aDE+VGltZSBOYW1lPC9oMT48YnI+PGgzPlBvd2VyZCBCeSA8YSBocmVmPSJodHRwczovL3QubWUvU291cmNlX0hvbWUiIHRhcmdldD0iX2JsYW5rIj5AU291cmNlX0hvbWU8L2E+PC9oMz48L2NlbnRlcj4=')); // لطفا تغییراتی ایجاد نکنید
?>