@@ -60,6 +60,9 @@ |
||
60 | 60 | } |
61 | 61 | } |
62 | 62 | |
63 | + /** |
|
64 | + * @param \Closure $listener |
|
65 | + */ |
|
63 | 66 | function addUpdateListener($listener){ |
64 | 67 | $this->getEventEmitter()->addListener(UpdateWasReceived::class, $listener); |
65 | 68 | } |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use League\Event\Emitter; |
6 | 6 | use Telegram\Bot\Api; |
7 | -use Telegram\Bot\Events\UpdateWasReceived; |
|
8 | 7 | use Telegram\Bot\Events\EmitsEvents; |
8 | +use Telegram\Bot\Events\UpdateWasReceived; |
|
9 | 9 | |
10 | 10 | class Bot{ |
11 | 11 |
@@ -23,7 +23,6 @@ |
||
23 | 23 | * UpdateWasReceived constructor. |
24 | 24 | * |
25 | 25 | * @param Update $update |
26 | - * @param Api $telegram |
|
27 | 26 | */ |
28 | 27 | public function __construct(Update $update, Bot $bot) |
29 | 28 | { |