Skip to content

Commit

Permalink
Merge pull request #52 from toxageek/patch-1
Browse files Browse the repository at this point in the history
fix: typo in a word 'bindParamer'
  • Loading branch information
sergix44 authored Sep 26, 2024
2 parents ffc0643 + 545fa6c commit 9bbeb9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/usage/handlers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -884,11 +884,11 @@ $bot->group(function () use (Nutgram $bot) {

## Custom parameters binding

You can also bind custom parameters to the handler using the `bindParamer` method:
You can also bind custom parameters to the handler using the `bindParameter` method:

```php
$bot = new Nutgram($_ENV['TOKEN']);
$bot->bindParamer('hex', function(Container $container, string $value){
$bot->bindParameter('hex', function(Container $container, string $value){
return Color::fromHex($value);
});

Expand Down Expand Up @@ -1409,4 +1409,4 @@ If you need to persist data on disk, be sure to choose an appropriate cache adap
<img style={{verticalAlign: 'middle'}} src="https://img.shields.io/badge/-PER--USER-blue"/>&nbsp;
<code>deleteUserData($key, ?int $userId = null)</code><br/>
Returns <code>bool</code>
</div>
</div>

0 comments on commit 9bbeb9a

Please sign in to comment.