Skip to content

Commit 1a450b0

Browse files
committed
Remove $opt (old docs)
1 parent bc8cd50 commit 1a450b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/usage/extend.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Nutgram::macro('sendHelloMessage', function() {
1313
return $this->sendMessage('Hello!');
1414
});
1515

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);
1818
});
1919

2020
$bot = new Nutgram('you telegram token here');

docs/usage/handlers.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ may respond based on specific patterns or types of messages.
2626
As you can also see from the example above, some required parameters (like the `chat_id`) can be **omitted**, while the
2727
bot is in the context of managing an update, so those fields **are automatically extracted from the current update**.
2828

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.
3030

3131
## Available Handlers
3232

0 commit comments

Comments
 (0)