Skip to content

Commit

Permalink
Merge pull request #80 from mkopinsky/master
Browse files Browse the repository at this point in the history
Few small spelling errors in botman docs
  • Loading branch information
Christoph Rumpel authored Oct 2, 2018
2 parents 022a60d + 78ff186 commit d5e8a44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion conversations.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function askEmail()
<a id="asking-questions"></a>
## Asking Questions

BotMan gives you two ways to ask your users questions. The straight forward aproach is simply using a string as a question:
BotMan gives you two ways to ask your users questions. The straight forward approach is simply using a string as a question:

```php
// ...inside the conversation object...
Expand Down
10 changes: 5 additions & 5 deletions middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The `received` middleware can be used to manipulate all incoming messaging servi

### Example middleware class

This exampe `received` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application.
This example `received` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application.
As multiple middleware classes can be applied, make sure to return a call to `$next` with the incoming message as a parameter.

```php
Expand Down Expand Up @@ -71,7 +71,7 @@ Since the `captured` middleware needs to be applied to all incoming requests, it

### Example middleware class

This exampe `captured` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application.
This example `captured` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application.
As multiple middleware classes can be applied, make sure to return a call to `$next` with the incoming message as a parameter.

```php
Expand Down Expand Up @@ -111,7 +111,7 @@ The `matching` middleware defines how the messages will be matched. It receives

### Example middleware class

This exampe `matching` middleware takes the incoming message and checks not only for the regular expression match - but also checks that the message was sent from a specific user. Every BotMan commands under this middleware will only be heard, when the correct pattern is sent **and** the correct user sends the message. Otherwise BotMan will not call the command callback.
This example `matching` middleware takes the incoming message and checks not only for the regular expression match - but also checks that the message was sent from a specific user. Every BotMan commands under this middleware will only be heard, when the correct pattern is sent **and** the correct user sends the message. Otherwise BotMan will not call the command callback.

```php
use BotMan\BotMan\Interfaces\Middleware\Matching;
Expand Down Expand Up @@ -155,7 +155,7 @@ The `heard` middleware works similar to how the `received` middleware works. It

### Example middleware class

This exampe `heard` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application.
This example `heard` middleware takes the incoming message and adds some extra information to it, which can be used later throughout your chatbot application.
As multiple middleware classes can be applied, make sure to return a call to `$next` with the incoming message as a parameter.

```php
Expand Down Expand Up @@ -196,7 +196,7 @@ You can also manipulate the outgoing payload data before it gets sent to the mes

### Example middleware class

This exampe `sending` middleware simply logs the outgoing payload data into a file called log.txt.
This example `sending` middleware simply logs the outgoing payload data into a file called log.txt.

```php
use BotMan\BotMan\Interfaces\Middleware\Sending;
Expand Down

0 comments on commit d5e8a44

Please sign in to comment.