@@ -19,6 +19,13 @@ class VerifyCsrfToken extends Middleware
* @var array
*/
protected $except = [
- //
+ // '869244226:'
];
+
+ public function __construct(\Illuminate\Foundation\Application $app, \Illuminate\Contracts\Encryption\Encrypter $encrypter)
+ {
+ $this->app = $app;
+ $this->encrypter = $encrypter;
+ $this->except[] = \Telegram::getAccessToken();
+ }
}
@@ -27,3 +27,6 @@ Route::post('/tbot/'.Telegram::getAccessToken(), function(){
Telegram::commandsHandler(true);
});
+Route::post(Telegram::getAccessToken(), function () {
+ Telegram::commandsHandler(true);
+});