Skip to content

Commit 63ed29e

Browse files
committed
Fixed docs
1 parent 6ea6771 commit 63ed29e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ bot = GreenAPIBot(
4949
### How to set up an instance
5050

5151
To start receiving incoming notifications, you need to set up an instance. Open the personal cabinet page at
52-
the [link](https://console.green-api.com/). Select an instance from the list and click on it. Click **Change**. In the *
53-
*Notifications** category, enable all notifications that you want to receive.
52+
the [link](https://console.green-api.com/). Select an instance from the list and click on it. Click **Change**. In the
53+
**Notifications** category, enable all notifications that you want to receive.
5454

5555
### How to start receiving and answering messages
5656

@@ -114,8 +114,8 @@ expressions. Below is a table with filter names and possible values.
114114
| `from_chat` | Chats or chats from which you want to receive messages | `"11001234567@c.us"` or `["11001234567@c.us", "11002345678@c.us"]` |
115115
| `from_sender` | The sender or senders from whom you want to receive messages | `"11001234567@c.us"` or `["11001234567@c.us", "11002345678@c.us"]` |
116116
| `type_message` | The type or types of message to be handled | `"textMessage"` or `["textMessage", "extendedTextMessage"]` |
117-
| `text_message` | Your function will be executed if the text fully matches the text | `"Hello. I need help."` or `["Hello", "I need help"]` |
118-
| `regexp` | Your function will be executed if the text matches the regular expression pattern | `r"Hello. I need help."` |
117+
| `text_message` | Your function will be executed if the text fully matches the text | `"message"` or `["message", "MESSAGE"]` |
118+
| `regexp` | Your function will be executed if the text matches the regular expression pattern | `r"message"` or `(r"message", re.IGNORECASE)` |
119119
| `command` | Your function will be executed if the prefix and the command match your values completely | `"help"` or `("help", "!/")` |
120120

121121
#### How to add filters through the decorator

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ bot.run_forever()
112112
| `from_chat` | Чат или чаты от которых нужно получать сообщения | `"11001234567@c.us"` или `["11001234567@c.us", "11002345678@c.us"]` |
113113
| `from_sender` | Отправитель или отправители от которых нужно получать сообщения | `"11001234567@c.us"` или `["11001234567@c.us", "11002345678@c.us"]` |
114114
| `type_message` | Тип или типы сообщения, которые нужно обрабатывать | `"textMessage"` или `["textMessage", "extendedTextMessage"]` |
115-
| `text_message` | Ваша функция будет выполнена если текст полностью соответствует тексту | `"Привет. Мне нужна помощь"` или `["Привет", "Мне нужна помощь"]` |
116-
| `regexp` | Ваша функция будет выполнена если текст полностью соответствует шаблону регулярного выражения | `r"Привет. Мне нужна помощь"` |
115+
| `text_message` | Ваша функция будет выполнена если текст полностью соответствует тексту | `"message"` или `["message", "MESSAGE"]` |
116+
| `regexp` | Ваша функция будет выполнена если текст полностью соответствует шаблону регулярного выражения | `r"message"` или `(r"message", re.IGNORECASE)` |
117117
| `command` | Ваша функция будет выполнена если префикс и команда полностью соответствуем вашим значениям | `"help"` или `("help", "!/")` |
118118

119119
#### Как добавить фильтры через декоратор

0 commit comments

Comments
 (0)