File tree 2 files changed +3
-3
lines changed 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ Nutgram::macro('sendHelloMessage', function() {
13
13
return $this->sendMessage('Hello!');
14
14
});
15
15
16
- Message::macro('pin', function(array $opt = [] ) {
17
- return $this->pinChatMessage($this->chat->id, $this->message_id, $opt );
16
+ Message::macro('pin', function() {
17
+ return $this->pinChatMessage($this->chat->id, $this->message_id);
18
18
});
19
19
20
20
$bot = new Nutgram('you telegram token here');
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ may respond based on specific patterns or types of messages.
26
26
As you can also see from the example above, some required parameters (like the ` chat_id ` ) can be ** omitted** , while the
27
27
bot is in the context of managing an update, so those fields ** are automatically extracted from the current update** .
28
28
29
- Of course, ** you can override them at any time** , simply by specifying them in the ` $opt ` array .
29
+ Of course, ** you can override them at any time** , simply by specifying them in the method call .
30
30
31
31
## Available Handlers
32
32
You can’t perform that action at this time.
0 commit comments