{"action":"created","issue":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/92","repository_url":"https://api.github.com/repos/akalongman/php-telegram-bot","labels_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/92/comments","events_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/92/events","html_url":"https://github.com/akalongman/php-telegram-bot/issues/92","id":131869049,"number":92,"title":"How to use Commands (basically)","user":{"login":"HalimZamal","id":6078415,"avatar_url":"https://avatars.githubusercontent.com/u/6078415?v=3","gravatar_id":"","url":"https://api.github.com/users/HalimZamal","html_url":"https://github.com/HalimZamal","followers_url":"https://api.github.com/users/HalimZamal/followers","following_url":"https://api.github.com/users/HalimZamal/following{/other_user}","gists_url":"https://api.github.com/users/HalimZamal/gists{/gist_id}","starred_url":"https://api.github.com/users/HalimZamal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HalimZamal/subscriptions","organizations_url":"https://api.github.com/users/HalimZamal/orgs","repos_url":"https://api.github.com/users/HalimZamal/repos","events_url":"https://api.github.com/users/HalimZamal/events{/privacy}","received_events_url":"https://api.github.com/users/HalimZamal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2016-02-06T15:51:39Z","updated_at":"2016-02-08T10:47:44Z","closed_at":null,"body":"I tried to use Commands..\r\nfirst I created folder called \"cmd\" in root and then in webhook I enabled\r\n\r\n$COMMANDS_FOLDER = __DIR__.'/cmd/';\r\n$telegram->addCommandsPath($COMMANDS_FOLDER);\r\n\r\nfor example I want to try to use ForcereplyCommand.php in cmd folder. But I confused how to register the class and how to use that in another file.\r\n\r\nplease give me an idea to solved this..?\r\n "},"comment":{"url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/comments/181302294","html_url":"https://github.com/akalongman/php-telegram-bot/issues/92#issuecomment-181302294","issue_url":"https://api.github.com/repos/akalongman/php-telegram-bot/issues/92","id":181302294,"user":{"login":"noplanman","id":9423417,"avatar_url":"https://avatars.githubusercontent.com/u/9423417?v=3","gravatar_id":"","url":"https://api.github.com/users/noplanman","html_url":"https://github.com/noplanman","followers_url":"https://api.github.com/users/noplanman/followers","following_url":"https://api.github.com/users/noplanman/following{/other_user}","gists_url":"https://api.github.com/users/noplanman/gists{/gist_id}","starred_url":"https://api.github.com/users/noplanman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noplanman/subscriptions","organizations_url":"https://api.github.com/users/noplanman/orgs","repos_url":"https://api.github.com/users/noplanman/repos","events_url":"https://api.github.com/users/noplanman/events{/privacy}","received_events_url":"https://api.github.com/users/noplanman/received_events","type":"User","site_admin":false},"created_at":"2016-02-08T10:47:44Z","updated_at":"2016-02-08T10:47:44Z","body":"When using a self signed certificate, you need to pass it in `set.php` as described [here](https://github.com/akalongman/php-telegram-bot#self-signed-certificate).\r\n\r\nI've used a self signed certificate and a Let's Encrypt certificate with no problems at all.\r\n\r\nMaybe to make sure that this isn't the problem, you can try using a [Let's Encrypt](https://letsencrypt.readthedocs.org/en/latest/using.html#installation) certificate."}}