403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/im/v2/const/src/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/im/v2/const/src/keyboard.js
import { BotCommand, ColorToken } from 'im.v2.const';

export type RawKeyboardButtonConfig = {
	TEXT: string,
	TYPE?: $Values<typeof KeyboardButtonType>,
	CONTEXT?: $Values<typeof KeyboardButtonContext>,
	LINK?: string,
	COMMAND?: $Values<typeof BotCommand>,
	COMMAND_PARAMS: string,
	DISPLAY: $Values<typeof KeyboardButtonDisplay>,
	WIDTH: number,
	BG_COLOR_TOKEN?: $Values<typeof ColorToken>,
	TEXT_COLOR: string,
	BLOCK: 'Y' | 'N',
	DISABLED: 'Y' | 'N',
	VOTE: 'Y' | 'N',
	WAIT: 'Y' | 'N',
	APP_ID: string,
	APP_PARAMS: string,
	BOT_ID: number,
	ACTION: $Values<typeof KeyboardButtonAction>,
	ACTION_VALUE: string,
};

export type KeyboardButtonConfig = {
	text: string,
	type?: $Values<typeof KeyboardButtonType>,
	context?: $Values<typeof KeyboardButtonContext>,
	link?: string,
	command?: $Values<typeof BotCommand>,
	commandParams?: string, // FOO|BAR
	display: $Values<typeof KeyboardButtonDisplay>,
	width: number,
	bgColorToken?: $Values<typeof ColorToken>,
	textColor?: string,
	block?: boolean,
	disabled?: boolean,
	vote?: boolean,
	wait?: boolean,
	appId: string,
	appParams: string, // FOO|BAR
	botId: number,
	action: $Values<typeof KeyboardButtonAction>,
	actionValue: string, // PUT - text, SEND - text, COPY - text, CALL - number, DIALOG - dialogId
};

export const KeyboardButtonType = {
	button: 'BUTTON',
	newLine: 'NEWLINE',
};

export const KeyboardButtonContext = {
	all: 'ALL',
	mobile: 'MOBILE',
	desktop: 'DESKTOP',
};

export const KeyboardButtonDisplay = {
	block: 'BLOCK',
	line: 'LINE',
};

export const KeyboardButtonAction = {
	put: 'PUT',
	send: 'SEND',
	copy: 'COPY',
	call: 'CALL',
	dialog: 'DIALOG',
};

Youez - 2016 - github.com/yon3zu
LinuXploit