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

[BUG] unable to use forwardMessages #1215

Open
qiaoshouzi opened this issue Jul 15, 2024 · 0 comments
Open

[BUG] unable to use forwardMessages #1215

qiaoshouzi opened this issue Jul 15, 2024 · 0 comments

Comments

@qiaoshouzi
Copy link

Bug Report

I have read:

I am using the latest version of the library.

Expected Behavior

bot.forwardMessages(
  chatId,
  fromChatId,
  [idA, idB]
);

Actual Behavior

Server return 400 Bad Request: message identifiers are not specified

body: 'chat_id=<chatId>&from_chat_id=<fromChatId>&message_ids[0]=idA&message_ids[1]=idB'

I try to change the code, it work

bot.forwardMessages(
  chatId,
  fromChatId,
  JSON.stringify([idA, idB])
);

It appears that Server does not receive arr in that form

Steps to reproduce the Behavior

qiaoshouzi added a commit to qiaoshouzi/node-telegram-bot-api that referenced this issue Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant