<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@jackdbd/hapi-telegram-plugin](./hapi-telegram-plugin.md) &gt; [RequestEventMatcher](./hapi-telegram-plugin.requesteventmatcher.md)

## RequestEventMatcher interface

Rule that controls which request matches, and to which Telegram chat the text should be sent.

The rule `predicate` determines whether a request matches or not.

The rule `text` converts the combination request and event into a text to send to Telegram. This text should respect the formatting options and length allowed by the sendMessage endpoint of the Telegram API.

<b>Signature:</b>

```typescript
export interface RequestEventMatcher 
```

## Properties

|  Property | Modifiers | Type | Description |
|  --- | --- | --- | --- |
|  [chat\_id](./hapi-telegram-plugin.requesteventmatcher.chat_id.md) |  | [TelegramChatId](./hapi-telegram-plugin.telegramchatid.md) |  |
|  [name](./hapi-telegram-plugin.requesteventmatcher.name.md) |  | string |  |
|  [predicate](./hapi-telegram-plugin.requesteventmatcher.predicate.md) |  | (request: Hapi.Request, event: Hapi.RequestEvent, tags: [Tags](./hapi-telegram-plugin.tags.md)<!-- -->) =&gt; boolean |  |
|  [text](./hapi-telegram-plugin.requesteventmatcher.text.md) |  | (request: Hapi.Request, event: Hapi.RequestEvent, tags: [Tags](./hapi-telegram-plugin.tags.md)<!-- -->) =&gt; string |  |
|  [token](./hapi-telegram-plugin.requesteventmatcher.token.md) |  | [TelegramToken](./hapi-telegram-plugin.telegramtoken.md) |  |

