import { Composer, Telegraf } from 'telegraf'; import { Context } from './interfaces'; export type TelegrafActionTriggers = Parameters['action']>[0]; export type TelegrafHearsTriggers = Parameters['hears']>[0]; export type TelegrafInlineQueryTriggers = Parameters< Composer['inlineQuery'] >[0]; export type TelegrafEmail = Parameters['email']>[0]; export type TelegrafUrl = Parameters['url']>[0]; export type TelegrafTextLink = Parameters['textLink']>[0]; export type TelegrafTextMention = Parameters< Composer['textMention'] >[0]; export type TelegrafCashtag = Parameters['cashtag']>[0]; export type TelegrafHashtag = Parameters['hashtag']>[0]; export type TelegrafCommand = Parameters['command']>[0]; export type TelegrafMention = Parameters['mention']>[0]; export type TelegrafPhone = Parameters['phone']>[0]; export type TelegrafUpdateType = Parameters['on']>[0]; export type TelegrafOption = ConstructorParameters[1]; export type TelegrafLaunchOption = Parameters[0];