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 use schedule_date flag in sendMessage #1209

Open
qertis opened this issue Jun 29, 2024 · 1 comment
Open

How to use schedule_date flag in sendMessage #1209

qertis opened this issue Jun 29, 2024 · 1 comment

Comments

@qertis
Copy link

qertis commented Jun 29, 2024

Question

Hello. How can the schedule_date flag from the official documentation https://core.telegram.org/method/messages.sendMessage be used in the bot.sendMessage method?

@qertis
Copy link
Author

qertis commented Jun 29, 2024

This example doesn't working:

await bot.sendMessage(activity.target.id, 'result', {
    // todo - after 1 minutes
    schedule_date: Math.floor((new Date(new Date().getTime() + 1 * 60000)).getTime() / 1000),
  })

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