<commit_before><?php

function start_message($update, $MadelineProto)
{
    
    if (is_peeruser($update, $MadelineProto)) {
        $peer = cache_get_info(
            $update,
            $MadelineProto,
            $update['update']['message']['from_id']
        )['bot_api_id'];
        $msg_id = $update['update']['message']['id'];
        $default = array(
            'peer' => $peer,
            'reply_to_msg_id' => $msg_id,
            'parse_mode' => 'html',
            );
        $message_ = file_get_contents('start_help.html');
        if (strlen($message_) > 4000) {
            $half = intval(strlen($message_) / 2);
            $message = array();
            if (strpos($message_, "\n", $half) !== false) {
                $message[] = substr($message_, 0, strpos($message_, "\n", $half)+1);
                $message[] = substr($message_, strpos($message_, "\n", $half)+1);
            } else {
                $message[] = substr($message_, 0, $half) . '...';
                $message[] = substr($message_, $half);
            }
        } else {
            $message = $message_;
        }
        $default['message'] = $message;
        if (isset($default['message'])) {
            if (is_array($message)) {
                foreach ($message as $value) {
                    $default['message'] = $value;
                    $sentMessage = $MadelineProto->messages->sendMessage(
                        $default
                    );
                }
            } else {
                $sentMessage = $MadelineProto->messages->sendMessage(
                    $default
                );
            }
        }
    }
}<commit_msg>fixed blocked users ruining my bot<commit_after><?php

function start_message($update, $MadelineProto)
{
    
    if (is_peeruser($update, $MadelineProto)) {
        $peer = cache_get_info(
            $update,
            $MadelineProto,
            $update['update']['message']['from_id']
        )['bot_api_id'];
        $msg_id = $update['update']['message']['id'];
        $default = array(
            'peer' => $peer,
            'reply_to_msg_id' => $msg_id,
            'parse_mode' => 'html',
            );
        $message_ = file_get_contents('start_help.html');
        if (strlen($message_) > 4000) {
            $half = intval(strlen($message_) / 2);
            $message = array();
            if (strpos($message_, "\n", $half) !== false) {
                $message[] = substr($message_, 0, strpos($message_, "\n", $half)+1);
                $message[] = substr($message_, strpos($message_, "\n", $half)+1);
            } else {
                $message[] = substr($message_, 0, $half) . '...';
                $message[] = substr($message_, $half);
            }
        } else {
            $message = $message_;
        }
        $default['message'] = $message;
        if (isset($default['message'])) {
            if (is_array($message)) {
                foreach ($message as $value) {
                    try {
                        $default['message'] = $value;
                        $sentMessage = $MadelineProto->messages->sendMessage(
                            $default
                        );
                    } catch (Exception $e) {}
                }
            } else {
                try {
                    $sentMessage = $MadelineProto->messages->sendMessage(
                        $default
                    );
                } catch (Exception $e) {}
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.15890254358388112, 'fraction_numerical': 0.005144326950557302, 'mean_word_length': 1.4204702627939143, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3774997', 'n_tokens_mistral': 973, 'n_tokens_neox': 934, 'n_words': 171}