import { Chat, MaybeArray, User } from '@mtcute/core'; import { BusinessMessageContext } from '../context/business-message.js'; import { MessageContext } from '../context/message.js'; import { Modify, UpdateFilter } from './types.js'; /** * Filter messages that call the given command(s).. * * When a command matches, the match array is stored in a * type-safe extension field `.commmand` of the {@link Message} object. * First element is the command itself, then the arguments. * * If the matched command was a RegExp, the first element is the * command, then the groups from the command regex, then the arguments. * * @param commands Command(s) the filter should look for (w/out prefix) * @param prefixes * Prefix(es) the filter should look for (default: `/`). * Can be `null` to disable prefixes altogether * @param caseSensitive */ export declare function command(commands: MaybeArray, { prefixes, caseSensitive, }?: { prefixes?: MaybeArray | null; caseSensitive?: boolean; }): UpdateFilter; /** * Shorthand filter that matches /start commands sent to bot's * private messages. */ export declare const start: UpdateFilter; /** * Shorthand filter that matches /start commands * sent in groups (i.e. using `?startgroup` parameter). */ export declare const startGroup: UpdateFilter; command: string[]; }, never>; /** * Filter for deep links (i.e. `/start `). * * If the parameter is a regex, groups are added to `msg.command`, * meaning that the first group is available in `msg.command[2]`. */ export declare const deeplink: (params: MaybeArray) => UpdateFilter; /** * Filter for group deep links (i.e. `/start `). * * If the parameter is a regex, groups are added to `msg.command`, * meaning that the first group is available in `msg.command[2]`. */ export declare const deeplinkGroup: (params: MaybeArray) => UpdateFilter;