{"action":"closed","issue":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/352","repository_url":"https://api.github.com/repos/akalongman/php-telegram-bot","labels_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/352/comments","events_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/352/events","html_url":"https://github.com/akalongman/php-telegram-bot/issues/352","id":196289523,"number":352,"title":"Conversations notes truncated.","user":{"login":"chuv1","id":13127366,"avatar_url":"https://avatars.githubusercontent.com/u/13127366?v=3","gravatar_id":"","url":"https://api.github.com/users/chuv1","html_url":"https://github.com/chuv1","followers_url":"https://api.github.com/users/chuv1/followers","following_url":"https://api.github.com/users/chuv1/following{/other_user}","gists_url":"https://api.github.com/users/chuv1/gists{/gist_id}","starred_url":"https://api.github.com/users/chuv1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuv1/subscriptions","organizations_url":"https://api.github.com/users/chuv1/orgs","repos_url":"https://api.github.com/users/chuv1/repos","events_url":"https://api.github.com/users/chuv1/events{/privacy}","received_events_url":"https://api.github.com/users/chuv1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-18T18:05:30Z","updated_at":"2016-12-25T03:57:40Z","closed_at":"2016-12-25T03:57:40Z","body":"Hello guys! Is there any limit on conversation notes size?\r\n\r\nI noticed that notes json got truncated for some reason, if it helds some sort of big text, and that stops conversation since json can not be decoded.\r\n\r\nHere is three sequentional var_export(new Conversation($user_id, $chat_id, $this->getName())) from a conversation loop, and last one got truncated.\r\n\r\n```\r\nLongman\\TelegramBot\\Conversation::__set_state(array(\r\n   'conversation' => \r\n  array (\r\n    'id' => '231',\r\n    'user_id' => '182362135',\r\n    'chat_id' => '182362135',\r\n    'status' => 'active',\r\n    'command' => 'point',\r\n    'notes' => '{\"start\":1482083524,\"state\":3,\"category\":\"\\\\ud83d\\\\udc55 \\\\u0423\\\\u0441\\\\u043b\\\\u0443\\\\u0433\\\\u0438\",\"categoryId\":\"service\",\"subcategory\":\"\\\\ud83c\\\\udfe5 \\\\u0411\\\\u043e\\\\u043b\\\\u044c\\\\u043d\\\\u0438\\\\u0446\\\\u044b\"}',\r\n    'created_at' => '2016-12-19 00:51:58',\r\n    'updated_at' => '2016-12-19 00:52:04',\r\n  ),\r\n   'protected_notes' => \r\n  array (\r\n    'start' => 1482083524,\r\n    'state' => 3,\r\n    'category' => '👕 Услуги',\r\n    'categoryId' => 'service',\r\n    'subcategory' => '🏥 Больницы',\r\n  ),\r\n   'notes' => \r\n  array (\r\n    'start' => 1482083524,\r\n    'state' => 3,\r\n    'category' => '👕 Услуги',\r\n    'categoryId' => 'service',\r\n    'subcategory' => '🏥 Больницы',\r\n  ),\r\n   'user_id' => 182362135,\r\n   'chat_id' => 182362135,\r\n   'command' => 'point',\r\n))\r\n```\r\n```\r\nLongman\\TelegramBot\\Conversation::__set_state(array(\r\n   'conversation' => \r\n  array (\r\n    'id' => '231',\r\n    'user_id' => '182362135',\r\n    'chat_id' => '182362135',\r\n    'status' => 'active',\r\n    'command' => 'point',\r\n    'notes' => '{\"start\":1482083537,\"state\":4,\"category\":\"\\\\ud83d\\\\udc55 \\\\u0423\\\\u0441\\\\u043b\\\\u0443\\\\u0433\\\\u0438\",\"categoryId\":\"service\",\"subcategory\":\"\\\\ud83c\\\\udfe5 \\\\u0411\\\\u043e\\\\u043b\\\\u044c\\\\u043d\\\\u0438\\\\u0446\\\\u044b\",\"pointName\":\"\\\\u0412\\\\u0430\\\\u0447\\\\u0438\\\\u0440\\\\u0430 \\\\u0413\\\\u043e\\\\u0441\\\\u043f\\\\u0438\\\\u0442\\\\u0430\\\\u043b\\\\u044c\"}',\r\n    'created_at' => '2016-12-19 00:51:58',\r\n    'updated_at' => '2016-12-19 00:52:17',\r\n  ),\r\n   'protected_notes' => \r\n  array (\r\n    'start' => 1482083537,\r\n    'state' => 4,\r\n    'category' => '👕 Услуги',\r\n    'categoryId' => 'service',\r\n    'subcategory' => '🏥 Больницы',\r\n    'pointName' => 'Вачира Госпиталь',\r\n  ),\r\n   'notes' => \r\n  array (\r\n    'start' => 1482083537,\r\n    'state' => 4,\r\n    'category' => '👕 Услуги',\r\n    'categoryId' => 'service',\r\n    'subcategory' => '🏥 Больницы',\r\n    'pointName' => 'Вачира Госпиталь',\r\n  ),\r\n   'user_id' => 182362135,\r\n   'chat_id' => 182362135,\r\n   'command' => 'point',\r\n))\r\n```\r\n```\r\nLongman\\TelegramBot\\Conversation::__set_state(array(\r\n   'conversation' => \r\n  array (\r\n    'id' => '231',\r\n    'user_id' => '182362135',\r\n    'chat_id' => '182362135',\r\n    'status' => 'active',\r\n    'command' => 'point',\r\n    'notes' => '{\"start\":1482083639,\"state\":5,\"category\":\"\\\\ud83d\\\\udc55 \\\\u0423\\\\u0441\\\\u043b\\\\u0443\\\\u0433\\\\u0438\",\"categoryId\":\"service\",\"subcategory\":\"\\\\ud83c\\\\udfe5 \\\\u0411\\\\u043e\\\\u043b\\\\u044c\\\\u043d\\\\u0438\\\\u0446\\\\u044b\",\"pointName\":\"\\\\u0412\\\\u0430\\\\u0447\\\\u0438\\\\u0440\\\\u0430 \\\\u0413\\\\u043e\\\\u0441\\\\u043f\\\\u0438\\\\u0442\\\\u0430\\\\u043b\\\\u044c\",\"pointDesc\":\"\\\\u0425\\\\u043e\\\\u0440\\\\u043e\\\\u0448\\\\u0430\\\\u044f, \\\\u043f\\\\u043e \\\\u0442\\\\u0430\\\\u0439\\\\u0441\\\\u043a\\\\u0438\\\\u043c \\\\u043c\\\\u0435\\\\u0440\\\\u043a\\\\u0430\\\\u043c, \\\\u0431\\\\u043e\\\\u043b\\\\u044c\\\\u043d\\\\u0438\\\\u0446\\\\u0430. \\\\u041c\\\\u043e\\\\u0436\\\\u0435\\\\u0442 \\\\u043d\\\\u0435\\\\u0441\\\\u043a\\\\u043e\\\\u043b\\\\u044c\\\\u043a\\\\u043e \\\\u043d\\\\u0430\\\\u043f\\\\u0443\\\\u0433\\\\u0430\\\\u0442\\\\u044c \\\\u0440\\\\u0443\\\\u0441\\\\u0441\\\\u043a\\\\u043e\\\\u0433\\\\u043e \\\\u0442\\\\u0443\\\\u0440\\\\u0438\\\\u0441\\\\u0442\\\\u0430, \\\\u043d\\\\u043e \\\\u044d\\\\u0442\\\\u043e \\\\u043e\\\\u0431\\\\u043c\\\\u0430\\\\u043d\\\\u0447\\\\u0438\\\\u0432\\\\u043e - \\\\u043c\\\\u0435\\\\u0434\\\\u0438\\\\u0446\\\\u0438\\\\u043d\\\\u0441\\\\u043a\\\\u0438\\\\u0435 \\\\u0443\\\\u0441\\\\u043b\\\\u0443\\\\u0433\\\\u0438 \\\\u0437\\\\u0434\\\\u0435\\\\u0441\\\\u044c \\\\u043a\\\\u0440\\\\u0430\\\\u0439\\\\u043d\\\\u0435 \\\\u043a\\\\u04',\r\n    'created_at' => '2016-12-19 00:51:58',\r\n    'updated_at' => '2016-12-19 00:53:59',\r\n  ),\r\n   'protected_notes' => NULL,\r\n   'notes' => NULL,\r\n   'user_id' => 182362135,\r\n   'chat_id' => 182362135,\r\n   'command' => 'point',\r\n))\r\n```"}}
{"actor":{"display_login":"noplanman"}}