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

How to send many messages in a moment? #640

Open
SirotovAlexander opened this issue Feb 19, 2024 · 0 comments
Open

How to send many messages in a moment? #640

SirotovAlexander opened this issue Feb 19, 2024 · 0 comments

Comments

@SirotovAlexander
Copy link

Hi! In TG bot i receive array of channels link. And need send messages to all of it. But when i try send it in a cycle using funk (Api.messages.SendMessage), i received error. What i need to do?

I have next construction in code:
client.invoke(
new Api.messages.SendMessage({
// peer: "two_face_project",
noWebpage: true,
background: true,
clearDraft: true,
peer: ${chanelList},
replyToMsgId: 6872073,
message: ${adMessage},
randomId: Math.floor(Math.random() * 1000000),
scheduleDate: 789917,
})
);

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