Skip to content

Commit bf6d4c4

Browse files
upd readme
1 parent b527b7f commit bf6d4c4

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,19 +339,15 @@ asyncio.run(main())
339339
| `receiving.deleteNotification` | The method is designed to remove an incoming notification from the notification queue | [DeleteNotification](https://green-api.com/en/docs/api/receiving/technology-http-api/DeleteNotification/) |
340340
| `receiving.downloadFile` | The method is for downloading received and sent files | [DownloadFile](https://green-api.com/en/docs/api/receiving/files/DownloadFile/) |
341341
| `sending.sendMessage` | The method is designed to send a text message to a personal or group chat | [SendMessage](https://green-api.com/en/docs/api/sending/SendMessage/) |
342-
| `sending.sendButtons` | The method is designed to send a message with buttons to a personal or group chat | [SendButtons](https://green-api.com/en/docs/api/sending/SendButtons/) |
343-
| `sending.sendTemplateButtons` | The method is designed to send a message with interactive buttons from the list of templates in a personal or group chat | [SendTemplateButtons](https://green-api.com/en/docs/api/sending/SendTemplateButtons/) |
344-
| `sending.sendListMessage` | The method is designed to send a message with a selection button from a list of values to a personal or group chat | [SendListMessage](https://green-api.com/en/docs/api/sending/SendListMessage/) |
345342
| `sending.sendFileByUpload` | The method is designed to send a file loaded through a form (form-data) | [SendFileByUpload](https://green-api.com/en/docs/api/sending/SendFileByUpload/) |
346343
| `sending.sendFileByUrl` | The method is designed to send a file downloaded via a link | [SendFileByUrl](https://green-api.com/en/docs/api/sending/SendFileByUrl/) |
347344
| `sending.uploadFile` | The method is designed to upload a file to the cloud storage, which can be sent using the sendFileByUrl method | [UploadFile](https://green-api.com/en/docs/api/sending/UploadFile/) |
348345
| `sending.sendLocation` | The method is designed to send a geolocation message | [SendLocation](https://green-api.com/en/docs/api/sending/SendLocation/) |
349346
| `sending.sendContact` | The method is for sending a message with a contact | [SendContact](https://green-api.com/en/docs/api/sending/SendContact/) |
350-
| `sending.sendLink` | The method is designed to send a message with a link that will add an image preview, title and description | [SendLink](https://green-api.com/en/docs/api/sending/SendLink/) |
351347
| `sending.forwardMessages` | The method is designed for forwarding messages to a personal or group chat | [ForwardMessages](https://green-api.com/en/docs/api/sending/ForwardMessages/) |
352348
| `sending.sendPoll` | The method is designed for sending messages with a poll to a private or group chat | [SendPoll](https://green-api.com/en/docs/api/sending/SendPoll/) |
353-
| `sending.sendInteractiveButtons` | This method is used to send messages with interactive buttons | [sendInteractiveButtons](https://green-api.com/en/docs/api/sending/SendInteractiveButtons/) |
354-
| `sending.sendInteractiveButtonsReply` | This method is used to send messages with interactive buttons with a reply | [sendInteractiveButtonsReply](https://green-api.com/en/docs/api/sending/SendInteractiveButtonsReply/) |
349+
| `sending.sendInteractiveButtons` | This method is used to send messages with interactive buttons | [sendInteractiveButtons](https://green-api.com/en/docs/api/sending/SendInteractiveButtons/) |
350+
| `sending.sendInteractiveButtonsReply` | This method is used to send messages with interactive buttons with a reply | [sendInteractiveButtonsReply](https://green-api.com/en/docs/api/sending/SendInteractiveButtonsReply/) |
355351
| `serviceMethods.checkWhatsapp` | The method checks if there is a WhatsApp account on the phone number | [CheckWhatsapp](https://green-api.com/en/docs/api/service/CheckWhatsapp/) |
356352
| `serviceMethods.getAvatar` | The method returns the avatar of the correspondent or group chat | [GetAvatar](https://green-api.com/en/docs/api/service/GetAvatar/) |
357353
| `serviceMethods.getContacts` | The method is designed to get a list of contacts of the current account | [GetContacts](https://green-api.com/en/docs/api/service/GetContacts/) |

docs/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,19 +333,15 @@ asyncio.run(main())
333333
| `receiving.deleteNotification` | Метод предназначен для удаления входящего уведомления из очереди уведомлений | [DeleteNotification](https://green-api.com/docs/api/receiving/technology-http-api/DeleteNotification/) |
334334
| `receiving.downloadFile` | Метод предназначен для скачивания принятых и отправленных файлов | [DownloadFile](https://green-api.com/docs/api/receiving/files/DownloadFile/) |
335335
| `sending.sendMessage` | Метод предназначен для отправки текстового сообщения в личный или групповой чат | [SendMessage](https://green-api.com/docs/api/sending/SendMessage/) |
336-
| `sending.sendButtons` | Метод предназначен для отправки сообщения с кнопками в личный или групповой чат | [SendButtons](https://green-api.com/docs/api/sending/SendButtons/) |
337-
| `sending.sendTemplateButtons` | Метод предназначен для отправки сообщения с интерактивными кнопками из перечня шаблонов в личный или групповой чат | [SendTemplateButtons](https://green-api.com/docs/api/sending/SendTemplateButtons/) |
338-
| `sending.sendListMessage` | Метод предназначен для отправки сообщения с кнопкой выбора из списка значений в личный или групповой чат | [SendListMessage](https://green-api.com/docs/api/sending/SendListMessage/) |
339336
| `sending.sendFileByUpload` | Метод предназначен для отправки файла, загружаемого через форму (form-data) | [SendFileByUpload](https://green-api.com/docs/api/sending/SendFileByUpload/) |
340337
| `sending.sendFileByUrl` | Метод предназначен для отправки файла, загружаемого по ссылке | [SendFileByUrl](https://green-api.com/docs/api/sending/SendFileByUrl/) |
341338
| `sending.uploadFile` | Метод предназначен для загрузки файла в облачное хранилище, который можно отправить методом sendFileByUrl | [UploadFile](https://green-api.com/docs/api/sending/UploadFile/) |
342339
| `sending.sendLocation` | Метод предназначен для отправки сообщения геолокации | [SendLocation](https://green-api.com/docs/api/sending/SendLocation/) |
343340
| `sending.sendContact` | Метод предназначен для отправки сообщения с контактом | [SendContact](https://green-api.com/docs/api/sending/SendContact/) |
344-
| `sending.sendLink` | Метод предназначен для отправки сообщения со ссылкой, по которой будут добавлены превью изображения, заголовок и описание | [SendLink](https://green-api.com/docs/api/sending/SendLink/) |
345341
| `sending.forwardMessages` | Метод предназначен для пересылки сообщений в личный или групповой чат | [ForwardMessages](https://green-api.com/docs/api/sending/ForwardMessages/) |
346342
| `sending.sendPoll` | Метод предназначен для отправки сообщения с опросом в личный или групповой чат | [SendPoll](https://green-api.com/docs/api/sending/SendPoll/) |
347-
| `sending.sendInteractiveButtons` | Метод предназначен для отправки сообщений с интерактивными кнопками | [sendInteractiveButtons](https://green-api.com/docs/api/sending/SendInteractiveButtons/) |
348-
| `sending.sendInteractiveButtonsReply` | Метод предназначен для отправки сообщений с интерактивными кнопками с ответом | [sendInteractiveButtonsReply](https://green-api.com/docs/api/sending/SendInteractiveButtonsReply/) |
343+
| `sending.sendInteractiveButtons` | Метод предназначен для отправки сообщений с интерактивными кнопками | [sendInteractiveButtons](https://green-api.com/docs/api/sending/SendInteractiveButtons/) |
344+
| `sending.sendInteractiveButtonsReply` | Метод предназначен для отправки сообщений с интерактивными кнопками с ответом | [sendInteractiveButtonsReply](https://green-api.com/docs/api/sending/SendInteractiveButtonsReply/) |
349345
| `serviceMethods.checkWhatsapp` | Метод проверяет наличие аккаунта WhatsApp на номере телефона | [CheckWhatsapp](https://green-api.com/docs/api/service/CheckWhatsapp/) |
350346
| `serviceMethods.getAvatar` | Метод возвращает аватар корреспондента или группового чата | [GetAvatar](https://green-api.com/docs/api/service/GetAvatar/) |
351347
| `serviceMethods.getContacts` | Метод предназначен для получения списка контактов текущего аккаунта | [GetContacts](https://green-api.com/docs/api/service/GetContacts/) |

whatsapp_api_client_python/tools/sending.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def sendButtons(
6464
archiveChat: Optional[bool] = None
6565
) -> Response:
6666
"""
67-
The method is deprecated.
67+
The method is deprecated. Please use SendInteractiveButtons.
6868
6969
The method is aimed for sending a button message to a personal
7070
or a group chat.
@@ -91,6 +91,8 @@ def sendTemplateButtons(
9191
archiveChat: Optional[bool] = None
9292
) -> Response:
9393
"""
94+
The method is deprecated. Please use SendInteractiveButtonsReply.
95+
9496
The method is aimed for sending a message with template list
9597
interactive buttons to a personal or a group chat.
9698
@@ -118,6 +120,8 @@ def sendListMessage(
118120
archiveChat: Optional[bool] = None
119121
) -> Response:
120122
"""
123+
The method is deprecated. Please use SendMessage.
124+
121125
The method is aimed for sending a message with a select button
122126
from a list of values to a personal or a group chat.
123127

0 commit comments

Comments
 (0)