-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsettings.php
More file actions
18 lines (17 loc) · 738 Bytes
/
Copy pathsettings.php
File metadata and controls
18 lines (17 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
//settings
$settings = [
'session' => 'sessions/default.madeline',
'readmsg' => true,
'old_update_parser' => false,
'multithread' => false,
'auto_reboot' => true
];
//functions
function sm($chatID, $text, $reply = 0, $parsemode = 'HTML') {
global $update;
global $MadelineProto;
if (isset($chatID) and isset($text) and $reply == 0) $MadelineProto->messages->sendMessage(['peer' => $chatID, 'message' => $text, 'parse_mode' => $parsemode], ['noResponse' => true]);
if (isset($chatID) and isset($text) and $reply == 1) $MadelineProto->messages->sendMessage(['peer' => $chatID, 'message' => $text, 'reply_to_msg_id' => $update['message']['id'], 'parse_mode' => $parsemode], ['noResponse' => true]);
return true;
}