Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Sw 2518 #85

wants to merge 5 commits into from

Conversation

andreyMalyshkin
Copy link

Add sendFileByUpload and sendPoll

Copy link
Contributor

@Amele9 Amele9 left a 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)

src/green-api-v0.js Outdated Show resolved Hide resolved
src/green-api-v0.js Show resolved Hide resolved
src/green-api-v0.js Show resolved Hide resolved
src/green-api-v0.js Outdated Show resolved Hide resolved
src/green-api-v0.js Outdated Show resolved Hide resolved
@Amele9 Amele9 added bug Something isn't working enhancement New feature or request labels Nov 6, 2023
src/green-api-v0.js Outdated Show resolved Hide resolved
}

sendTemplateButtons(chatId, phone_number, message, footer = null, templateButtons) {
return this .restAPI.message.sendTemplateButtons(chatId, phone_number, message, footer = null, templateButtons)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Переопределение значения footer

@@ -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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Описание картинки должно быть нулевым. После проверка на нулевое значение. Если null то не добавляем в postData.

src/green-api-v0.js Outdated Show resolved Hide resolved
src/green-api-v0.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants