From 7c1f0ce893f88f8e5bb7ddc0a8a6c7e474f73fe5 Mon Sep 17 00:00:00 2001 From: Amir Hossein <82036027+AmirHkrg@users.noreply.github.com> Date: Fri, 6 Sep 2024 03:49:47 +0330 Subject: [PATCH] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index df8d40c..10a1200 100644 --- a/README.md +++ b/README.md @@ -46,3 +46,15 @@ class MyBotClass { $bot = new MyBotClass(); $bot->sendMessage($bot->message->chat->id, 'hello!'); ``` + + +### Long Polling +```php +Laraquest::polling(function(){ + // ... +}); + +Laraquest::polling(function(Laraquest $request){ + // ... +}); +```