Skip to content

Commit 3ffd45f

Browse files
authored
Update README.md
One additional example field for InlineKeyboardButton.
1 parent 5ed0f37 commit 3ffd45f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ KeyboardButton::make('Text of Button')
9797
This is done the same way for `InlineKeyboardButton`:
9898

9999
```php
100-
InlineKeyboardButton::make('Button Text')
101-
->callbackData('button-1');
100+
InlineKeyboardButton::make('Login')
101+
->loginUrl('https://example.com');
102102
```
103103

104104
To find out which fields are available have a look at the [Bot API documentation](https://core.telegram.org/bots/api).

0 commit comments

Comments
 (0)