diff --git a/packages/client/src/client.ts b/packages/client/src/client.ts index 7ee579d5..8b2a9138 100644 --- a/packages/client/src/client.ts +++ b/packages/client/src/client.ts @@ -1835,6 +1835,9 @@ export interface TelegramClient extends BaseTelegramClient { /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number } @@ -1901,6 +1904,9 @@ export interface TelegramClient extends BaseTelegramClient { * If set, the forwarding will be scheduled to this date * (also applies to caption message). * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number @@ -2206,6 +2212,9 @@ export interface TelegramClient extends BaseTelegramClient { /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number @@ -2282,6 +2291,9 @@ export interface TelegramClient extends BaseTelegramClient { /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number @@ -2350,6 +2362,9 @@ export interface TelegramClient extends BaseTelegramClient { /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number @@ -2422,6 +2437,9 @@ export interface TelegramClient extends BaseTelegramClient { /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number diff --git a/packages/client/src/methods/messages/forward-messages.ts b/packages/client/src/methods/messages/forward-messages.ts index 0ebf12b7..e39e18ff 100644 --- a/packages/client/src/methods/messages/forward-messages.ts +++ b/packages/client/src/methods/messages/forward-messages.ts @@ -40,6 +40,9 @@ export async function forwardMessages( /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number } @@ -109,6 +112,9 @@ export async function forwardMessages( * If set, the forwarding will be scheduled to this date * (also applies to caption message). * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number @@ -170,6 +176,9 @@ export async function forwardMessages( /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number diff --git a/packages/client/src/methods/messages/send-copy.ts b/packages/client/src/methods/messages/send-copy.ts index 4d5148ad..155c35e5 100644 --- a/packages/client/src/methods/messages/send-copy.ts +++ b/packages/client/src/methods/messages/send-copy.ts @@ -35,6 +35,9 @@ export async function sendCopy( /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number diff --git a/packages/client/src/methods/messages/send-media-group.ts b/packages/client/src/methods/messages/send-media-group.ts index fcced130..fa5ca4d6 100644 --- a/packages/client/src/methods/messages/send-media-group.ts +++ b/packages/client/src/methods/messages/send-media-group.ts @@ -46,6 +46,9 @@ export async function sendMediaGroup( /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number diff --git a/packages/client/src/methods/messages/send-media.ts b/packages/client/src/methods/messages/send-media.ts index 26b43570..1f71823b 100644 --- a/packages/client/src/methods/messages/send-media.ts +++ b/packages/client/src/methods/messages/send-media.ts @@ -46,6 +46,9 @@ export async function sendMedia( /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number diff --git a/packages/client/src/methods/messages/send-text.ts b/packages/client/src/methods/messages/send-text.ts index 18d38752..65d3fa04 100644 --- a/packages/client/src/methods/messages/send-text.ts +++ b/packages/client/src/methods/messages/send-text.ts @@ -51,6 +51,9 @@ export async function sendText( /** * If set, the message will be scheduled to this date. * When passing a number, a UNIX time in ms is expected. + * + * You can also pass `0x7FFFFFFE`, this will send the message + * once the peer is online */ schedule?: Date | number