<commit_before><?php
/**
 * This file is part of the TelegramBot package.
 *
 * (c) <NAME> aka LONGMAN <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Longman\TelegramBot\Entities;

class ReplyToMessage extends Message
{

    /**
     * ReplyToMessage constructor.
     *
     * @param array  $data
     * @param string $bot_name
     */
    public function __construct(array $data, $bot_name = '')
    {

        //As explained in the documentation
        //Reply to message can't contain other reply to message entities
        $reply_to_message = null;

        $this->init($data, $bot_name);
    }
}<commit_msg>Fix ReplyToMessage class, as data wasn't set properly.<commit_after><?php
/**
 * This file is part of the TelegramBot package.
 *
 * (c) <NAME> aka LONGMAN <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Longman\TelegramBot\Entities;

/**
 * Class ReplyToMessage
 *
 * @todo Is this even required?!
 */
class ReplyToMessage extends Message
{
    /**
     * ReplyToMessage constructor.
     *
     * @param array  $data
     * @param string $bot_name
     *
     * @throws \Longman\TelegramBot\Exception\TelegramException
     */
    public function __construct(array $data, $bot_name = '')
    {
        //As explained in the documentation
        //Reply to message can't contain other reply to message entities
        unset($data['reply_to_message']);

        parent::__construct($data, $bot_name);
    }
}
{'fraction_non_alphanumeric': 0.10426829268292682, 'fraction_numerical': 0.0, 'mean_word_length': 2.8886255924170614, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 10, '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': '2623787', 'n_tokens_mistral': 473, 'n_tokens_neox': 463, 'n_words': 157}