method ApiMethods.sendGift
ApiMethods.sendGift(args: { user_id?: number; chat_id?: number | string; gift_id: string; pay_for_upgrade?: boolean; text?: string; text_parse_mode?: ParseMode; text_entities?: MessageEntity[]; }): Gifts

Sends a gift to the given user or channel chat. The gift can't be converted to Telegram Stars by the receiver. Returns True on success.

Parameters

args: { user_id?: number; chat_id?: number | string; gift_id: string; pay_for_upgrade?: boolean; text?: string; text_parse_mode?: ParseMode; text_entities?: MessageEntity[]; }

Return Type

Usage

import { type ApiMethods } from "types";