P
P
PisatelPisatel2021-03-23 17:05:34
Bots
PisatelPisatel, 2021-03-23 17:05:34

Delayed Telegram posting from files on a PC or cloud storage?

Good day.
Is it possible to organize an auto-postponement, a telegram channel
? and 18:00 Moscow time), and so that a delay is created for each subsequent day at the same time, until it reaches the limit on the number of pending entries (there are 99 of them, it seems).
(Auto-posting from other platforms is not needed, only from a PC folder or an open butt of some cloud storage)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2021-03-23
@hottabxp

Cron on Unix(Linux) or Task Scheduler on Windows.

E
etozhesano, 2021-03-26
@etozhesano

As already written, for Windows - the scheduler.
The script is written in any language, because. you can send http requests.
For example, I have a script written in PowerShell, which makes a mailing list using a scheduler.
The request looks like this:

$URI = "https://api.telegram.org/bot" + $token + "/sendMessage?chat_id=" + $chat_id_new + "&text=" + $text

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

$Request = Invoke-WebRequest -URI ($URI)

You can write on the head, in the curl, on anything in general.
Read more here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question