import { CommandInstance } from '../commands'; import { CallbackQueryContext, UserContext } from '../migrated'; import { TelegramInlineKeyboardButton } from '../types'; /** * Interface extending TelegramInlineKeyboardButton with additional properties. */ export interface EvogramInlineKeyboardButton extends TelegramInlineKeyboardButton { /** The specified command will be called when the button is pressed. */ command?: CommandInstance | string; /** The button will only be available for the specified user context or user ID. */ onlyForUser?: UserContext | number; payload?: any; onClick?: (context: CallbackQueryContext) => any; isBackButton?: boolean; [x: string]: any; }