ultra-telegram-framework
    Preparing search index...

    Interface SendGiftParams

    interface SendGiftParams {
        chat_id?: string | number;
        gift_id: string;
        pay_for_upgrade?: boolean;
        text?: string;
        text_entities?: MessageEntity[];
        text_parse_mode?: string;
        user_id?: number;
    }
    Index

    Properties

    chat_id?: string | number

    Required if user_id is not specified. Unique identifier for the chat or username of the channel (in the format @username) that will receive the gift.

    gift_id: string

    Identifier of the gift; limited gifts can't be sent to channel chats

    pay_for_upgrade?: boolean

    Pass True to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver

    text?: string

    Text that will be shown along with the gift; 0-128 characters

    text_entities?: MessageEntity[]

    A JSON-serialized list of special entities that appear in the gift text. It can be specified instead of text_parse_mode. Entities other than "bold", "italic", "underline", "strikethrough", "spoiler", "custom_emoji", and "date_time" are ignored.

    text_parse_mode?: string

    Mode for parsing entities in the text. See formatting options for more details. Entities other than "bold", "italic", "underline", "strikethrough", "spoiler", "custom_emoji", and "date_time" are ignored.

    user_id?: number

    Required if chat_id is not specified. Unique identifier of the target user who will receive the gift.