method ApiMethods.giftPremiumSubscription
ApiMethods.giftPremiumSubscription(args: { user_id: number; month_count:
3
| 6
| 12
; star_count:
1000
| 1500
| 2500
; text?: string; text_parse_mode?: ParseMode; text_entities?: MessageEntity[]; }
): true

Gifts a Telegram Premium subscription to the given user. Returns True on success.

Parameters

args: { user_id: number; month_count:
3
| 6
| 12
; star_count:
1000
| 1500
| 2500
; text?: string; text_parse_mode?: ParseMode; text_entities?: MessageEntity[]; }

Return Type

true

Usage

import { type ApiMethods } from "types";