1 | import { InlineKeyboardButton, KeyboardButton, KeyboardButtonRequestChat } from './core/types/typegram';
|
2 | 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 userRequest(text: string,
|
10 |
|
11 | request_id: number, user_is_premium?: boolean, hide?: boolean): Hideable<KeyboardButton.RequestUserButton>;
|
12 | export declare function botRequest(text: string,
|
13 |
|
14 | request_id: number, hide?: boolean): Hideable<KeyboardButton.RequestUserButton>;
|
15 | type KeyboardButtonRequestGroup = Omit<KeyboardButtonRequestChat, 'request_id' | 'chat_is_channel'>;
|
16 | export declare function groupRequest(text: string,
|
17 |
|
18 | request_id: number, extra?: KeyboardButtonRequestGroup, hide?: boolean): Hideable<KeyboardButton.RequestChatButton>;
|
19 | type KeyboardButtonRequestChannel = Omit<KeyboardButtonRequestChat, 'request_id' | 'chat_is_channel' | 'chat_is_forum'>;
|
20 | export declare function channelRequest(text: string,
|
21 |
|
22 | request_id: number, extra?: KeyboardButtonRequestChannel, hide?: boolean): Hideable<KeyboardButton.RequestChatButton>;
|
23 | export declare function url(text: string, url: string, hide?: boolean): Hideable<InlineKeyboardButton.UrlButton>;
|
24 | export declare function callback(text: string, data: string, hide?: boolean): Hideable<InlineKeyboardButton.CallbackButton>;
|
25 | export declare function switchToChat(text: string, value: string, hide?: boolean): Hideable<InlineKeyboardButton.SwitchInlineButton>;
|
26 | export declare function switchToCurrentChat(text: string, value: string, hide?: boolean): Hideable<InlineKeyboardButton.SwitchInlineCurrentChatButton>;
|
27 | export declare function game(text: string, hide?: boolean): Hideable<InlineKeyboardButton.GameButton>;
|
28 | export declare function pay(text: string, hide?: boolean): Hideable<InlineKeyboardButton.PayButton>;
|
29 | export declare function login(text: string, url: string, opts?: {
|
30 | forward_text?: string;
|
31 | bot_username?: string;
|
32 | request_write_access?: boolean;
|
33 | }, hide?: boolean): Hideable<InlineKeyboardButton.LoginButton>;
|
34 | export declare function webApp(text: string, url: string, hide?: boolean): Hideable<InlineKeyboardButton.WebAppButton>;
|
35 | export {};
|
36 |
|
\ | No newline at end of file |