Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send schedule message to telegram channel by bot telegram API nodejs

In order to send a regular message I use -

const uri = `https://api.telegram.org/bot${token}/sendMessage?chat_id=${channelId}&text=${text}`;

await fetch(uri);

But how to send a schedule message?

like image 782
SirGrey Avatar asked Oct 16 '25 04:10

SirGrey


1 Answers

Bots can't schedule messages, there is corresponding error in docs: https://core.telegram.org/method/messages.sendMessage (see SCHEDULE_BOT_NOT_ALLOWED)

so only option is to plan sending with any scheduling tool on your side

like image 157
crystalbit Avatar answered Oct 18 '25 03:10

crystalbit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!