{"action":"created","issue":{"url":"https://api.github.com/repos/TelegramBot/Api/issues/31","repository_url":"https://api.github.com/repos/TelegramBot/Api","labels_url":"https://api.github.com/repos/TelegramBot/Api/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/TelegramBot/Api/issues/31/comments","events_url":"https://api.github.com/repos/TelegramBot/Api/issues/31/events","html_url":"https://github.com/TelegramBot/Api/issues/31","id":153582508,"number":31,"title":"Using is_integer breaks things on 32-bit systems","user":{"login":"SergeAx","id":3264530,"avatar_url":"https://avatars.githubusercontent.com/u/3264530?v=3","gravatar_id":"","url":"https://api.github.com/users/SergeAx","html_url":"https://github.com/SergeAx","followers_url":"https://api.github.com/users/SergeAx/followers","following_url":"https://api.github.com/users/SergeAx/following{/other_user}","gists_url":"https://api.github.com/users/SergeAx/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeAx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeAx/subscriptions","organizations_url":"https://api.github.com/users/SergeAx/orgs","repos_url":"https://api.github.com/users/SergeAx/repos","events_url":"https://api.github.com/users/SergeAx/events{/privacy}","received_events_url":"https://api.github.com/users/SergeAx/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-07T08:30:43Z","updated_at":"2016-05-07T22:44:36Z","closed_at":"2016-05-07T20:37:11Z","body":"Today I've created a public channel with chat_id=-1001065544251. Posting to this channel via admin bot produces an exception:\r\n\r\n**Type:** TelegramBot\\Api\\InvalidArgumentException\r\n**File:** /var/www/safetext.me/vendor/telegram-bot/api/src/Types/Chat.php\r\n**Line:** 92\r\n\r\nI can confirm that `is_integer(-1001065544251) === false` on my system (Debian @ armv71). Developers on other 32-bit arm systems (like Raspberry Pi) or Windows 7 32-bit as local dev environment will have the same problem.\r\n\r\nIt is better to use `is_numeric()` in your case. Want me to do a PR?"},"comment":{"url":"https://api.github.com/repos/TelegramBot/Api/issues/comments/217673507","html_url":"https://github.com/TelegramBot/Api/issues/31#issuecomment-217673507","issue_url":"https://api.github.com/repos/TelegramBot/Api/issues/31","id":217673507,"user":{"login":"SergeAx","id":3264530,"avatar_url":"https://avatars.githubusercontent.com/u/3264530?v=3","gravatar_id":"","url":"https://api.github.com/users/SergeAx","html_url":"https://github.com/SergeAx","followers_url":"https://api.github.com/users/SergeAx/followers","following_url":"https://api.github.com/users/SergeAx/following{/other_user}","gists_url":"https://api.github.com/users/SergeAx/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeAx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeAx/subscriptions","organizations_url":"https://api.github.com/users/SergeAx/orgs","repos_url":"https://api.github.com/users/SergeAx/repos","events_url":"https://api.github.com/users/SergeAx/events{/privacy}","received_events_url":"https://api.github.com/users/SergeAx/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T22:44:36Z","updated_at":"2016-05-07T22:44:36Z","body":"Please do regression testing. I've seen something strange when casting these large numbers to strings, like \"-1001065544251.0\""}}