1 | import { InlineKeyboardButton, KeyboardButton } from './core/types/typegram';
|
2 | declare type Hideable<B> = B & {
|
3 | hide: boolean;
|
4 | };
|
5 | export declare function text(text: string, hide?: boolean): Hideable<KeyboardButton.CommonButton>;
|
6 | export declare function contactRequest(text: string, hide?: boolean): Hideable<KeyboardButton.RequestContactButton>;
|
7 | export declare function locationRequest(text: string, hide?: boolean): Hideable<KeyboardButton.RequestLocationButton>;
|
8 | export declare function pollRequest(text: string, type?: 'quiz' | 'regular', hide?: boolean): Hideable<KeyboardButton.RequestPollButton>;
|
9 | export declare function url(text: string, url: string, hide?: boolean): Hideable<InlineKeyboardButton.UrlButton>;
|
10 | export declare function callback(text: string, data: string, hide?: boolean): Hideable<InlineKeyboardButton.CallbackButton>;
|
11 | export declare function switchToChat(text: string, value: string, hide?: boolean): Hideable<InlineKeyboardButton.SwitchInlineButton>;
|
12 | export declare function switchToCurrentChat(text: string, value: string, hide?: boolean): Hideable<InlineKeyboardButton.SwitchInlineCurrentChatButton>;
|
13 | export declare function game(text: string, hide?: boolean): Hideable<InlineKeyboardButton.GameButton>;
|
14 | export declare function pay(text: string, hide?: boolean): Hideable<InlineKeyboardButton.PayButton>;
|
15 | export declare function login(text: string, url: string, opts?: {
|
16 | forward_text?: string;
|
17 | bot_username?: string;
|
18 | request_write_access?: boolean;
|
19 | }, hide?: boolean): Hideable<InlineKeyboardButton.LoginButton>;
|
20 | export {};
|
21 |
|
\ | No newline at end of file |