{"action":"closed","issue":{"url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/395","repository_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI","labels_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/395/comments","events_url":"https://api.github.com/repos/eternnoir/pyTelegramBotAPI/issues/395/events","html_url":"https://github.com/eternnoir/pyTelegramBotAPI/issues/395","id":256529434,"number":395,"title":"register_next_step empty message text","user":{"login":"Gooman-rus","id":3216521,"avatar_url":"https://avatars3.githubusercontent.com/u/3216521?v=4","gravatar_id":"","url":"https://api.github.com/users/Gooman-rus","html_url":"https://github.com/Gooman-rus","followers_url":"https://api.github.com/users/Gooman-rus/followers","following_url":"https://api.github.com/users/Gooman-rus/following{/other_user}","gists_url":"https://api.github.com/users/Gooman-rus/gists{/gist_id}","starred_url":"https://api.github.com/users/Gooman-rus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gooman-rus/subscriptions","organizations_url":"https://api.github.com/users/Gooman-rus/orgs","repos_url":"https://api.github.com/users/Gooman-rus/repos","events_url":"https://api.github.com/users/Gooman-rus/events{/privacy}","received_events_url":"https://api.github.com/users/Gooman-rus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-10T18:26:50Z","updated_at":"2017-09-14T17:03:21Z","closed_at":"2017-09-14T17:03:21Z","author_association":"NONE","body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n1. What version of pyTelegramBotAPI are you using?\r\nThe latest\r\n2. What OS are you using?\r\nUbuntu\r\n3. What version of python are you using?\r\nPython 2.7\r\n\r\nHello!\r\nI use register_next_step like this:\r\n```python\r\nbot.register_next_step_handler(msg, lambda m: process_request(m, var1, var2))\r\n```\r\n\r\n```python\r\ndef process_request(message, var1, var2):\r\n    foo(bot, message, message.text)\r\n```\r\n\r\nAnd sometimes in the function foo() the value of `message.text` turns out to be `None`.\r\nI just see the message in my log file:\r\n\r\n`[10.09.2017 20:55:26] bot-utils.py:123 ERROR - ERROR. foo(): message.text is None`\r\n\r\nExample of foo function:\r\n```python\r\ndef foo(bot, message, text):\r\n    if text is not None\r\n        logging.error(\"ERROR. foo(): message.text is None\")\r\n    #...\r\n```\r\n\r\nI really don't know what is it. I can't repeat this, but it appears in log file several times (1-4) per day. Maybe you can help me? Can it be connected with using `lambda m`?\r\nOr perhaps someone wants to break my bot? What do you think?"}}
{"actor":{"display_login":"Gooman-rus"}}