-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sw 2518 #85
base: main
Are you sure you want to change the base?
Sw 2518 #85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не хватает метода sendFileByUrl.
Не хватает метода uploadFile.
Не хватает метода sendButtons.
Не хватает метода sendTemplateButtons.
Не хватает метода sendListMessage.
Не хватает метода sendLink. (вызывать метод send Message)
} | ||
|
||
sendTemplateButtons(chatId, phone_number, message, footer = null, templateButtons) { | ||
return this .restAPI.message.sendTemplateButtons(chatId, phone_number, message, footer = null, templateButtons) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Переопределение значения footer
src/green-api-v0.js
Outdated
@@ -252,8 +266,16 @@ class GreenApiV0 extends ApiClient { | |||
return this.callApi('sendDice', { chat_id: chatId, ...extra }) | |||
} | |||
|
|||
sendDocument (chatId, document, extra) { | |||
return this.restAPI.file.sendFileByUrl(chatId, null, document, 'document') | |||
sendFileByUrl (chatId,urlFile, file_name, caption = '',quotedMessageId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Описание картинки должно быть нулевым. После проверка на нулевое значение. Если null то не добавляем в postData.
Add sendFileByUpload and sendPoll