Interface MessageSendOptions

Options to be used when a message is sent.

interface MessageSendOptions {
    @type: "messageSendOptions";
    allow_paid_broadcast?: boolean;
    disable_notification?: boolean;
    effect_id: string;
    from_background?: boolean;
    only_preview?: boolean;
    protect_content?: boolean;
    scheduling_state: MessageSchedulingState;
    sending_id: number;
    update_order_of_installed_sticker_sets?: boolean;
}

Properties

@type: "messageSendOptions"
allow_paid_broadcast?: boolean

Pass true to allow the message to ignore regular broadcast limits for a small fee; for bots only.

disable_notification?: boolean

Pass true to disable notification for the message.

effect_id: string

Identifier of the effect to apply to the message; pass 0 if none; applicable only to sendMessage and sendMessageAlbum in private chats.

from_background?: boolean

Pass true if the message is sent from the background.

only_preview?: boolean

Pass true to get a fake message instead of actually sending them.

protect_content?: boolean

Pass true if the content of the message must be protected from forwarding and saving; for bots only.

scheduling_state: MessageSchedulingState

Message scheduling state; pass null to send message immediately. Messages sent to a secret chat, live location messages and self-destructing messages can't be scheduled.

sending_id: number

Non-persistent identifier, which will be returned back in messageSendingStatePending object and can be used to match sent messages and corresponding updateNewMessage updates.

update_order_of_installed_sticker_sets?: boolean

Pass true if the user explicitly chosen a sticker or a custom emoji from an installed sticker set; applicable only to sendMessage and sendMessageAlbum.