E
E
Ed Mishchenko2021-10-07 08:33:41
Python
Ed Mishchenko, 2021-10-07 08:33:41

Schedule_date in send_message not working pytelegrambotapi?

Hello everyone, I really need your help. I have a very important question about pyTelegramBotAPI. The documentation section states that there is such a schedule_date parameter, here is a link under the photo. With which, as I understand it correctly, you can send a message at a specific time or date, like a function in the regular version of the telegram, when you press the send message button and you can select the date and time. But I googled, I did not find the use of this parameter. The documentation for scheduled messages says that to schedule a message, simply specify the future unixtime in the schedule_date flag of messages.sendMessage or messages.sendMedia.

If you enter a unixtime future of 30 seconds or more, compilation error send_message() received an unexpected "schedule_date" keyword argument.
5hk0ju928sr71.png?width=873&format=png&auto=webp&s=165ac54f1076e4b7c58aaf70af6e80cfd54d6c86

w41a0q7ypyr71.png?width=1598&format=png&auto=webp&s=6cac747e1575351e361d355be6f64d045ea5401c

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-10-07
@eduardfromPolska

You are reading the client API documentation. You need documentation for bots:
https://core.telegram.org/bots/api#sendmessage
And in it, sendMessage does not have such a parameter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question