send_scheduled_messages()

async Client.send_scheduled_messages()

Send scheduled messages immediately.

Usable by Users Bots
Parameters:
  • chat_id (int | str) – Unique identifier (int) or username (str) of the target chat.

  • id (int | Iterable of int) – A scheduled message identifier or a list of scheduled message identifiers to send now.

Returns:

Message | List of Message – In case id was not a list, a single message is returned, otherwise a list of messages is returned.

Example

await app.send_scheduled_messages(chat_id, message_id)
await app.send_scheduled_messages(chat_id, [message_id1, message_id2])