diff --git a/lib/helpers/index.js b/lib/helpers/index.js index 5df7bda..835c125 100644 --- a/lib/helpers/index.js +++ b/lib/helpers/index.js @@ -29,7 +29,7 @@ function adapter(runSA) { return function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { - args[_i - 0] = arguments[_i]; + args[_i] = arguments[_i]; } return adaptStream(func.apply(void 0, args)); }; diff --git a/lib/helpers/index.js.map b/lib/helpers/index.js.map index ca9131e..de34515 100644 --- a/lib/helpers/index.js.map +++ b/lib/helpers/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;AACA,gDAAyC;AACzC,+BAA2F;AAC3F,yBAAgD;AAGhD,gCAA0B;AAE1B,2BACE,OAAoC,EACpC,OAAY;IAEZ,MAAM,CAAC,OAAO,CAAC,OAAO,CAAA;AACxB,CAAC;AALD,8CAKC;AAED,sBAAiC,CAAM;IACrC,MAAM,CAAC,eAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAA;AAC1B,CAAC;AAFD,oCAEC;AAID,uBAA+B,MAAW,EAAE,QAAuB,EAAE,QAAuB;IAC1F,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC;UACjC,MAAM;UACN,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAA;AACtD,CAAC;AAJD,sCAIC;AAED,iBAAyB,KAAoB;IAC3C,IAAI,KAAK,GAA4D,cAAM,CACzE,YAAY,EACZ,WAAW,EACX,cAAM,CACJ,UAAE,CAAC,QAAQ,CAAC,EACZ,aAAa,EACb,gBAAQ,CAAC,CAAC,CAAA;IAEd,qBAAsB,MAAuB;QAC3C,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,oBAAS,EAAE,KAAK,CAAC,CAAA;IAChD,CAAC;IAED,uBAAwB,IAAoB;QAC1C,MAAM,CAAC;YAAC,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,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AC;IAED,uBAAwB,IAAoB;QAC1C,MAAM,CAAC;YAAC,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YAAK,OAAA,WAAW,CAAC,IAAI,eAAI,IAAI,EAAE;QAA1B,CAA0B,CAAA;IACvD,CAAC;IAED,MAAM,CAAC,KAAK,CAAA;AACd,CAAC;AAlBD,0BAkBC;AAEU,QAAA,QAAQ,GAAG,cAAM,CAAC,CAAC,EAAE,UAAC,eAAe,EAAE,GAAG,IAAK,OAAA,eAAO,CAC/D,cAAM,CAAC,eAAe,CAAC,EACvB,eAAO,CAAC,CACN,aAAK,CAAC,YAAI,EAAE,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC,EACnC,GAAG,CAAC,EAJkD,CAIlD,CAAC,CAAA"} \ No newline at end of file diff --git a/lib/interfaces.d.ts b/lib/interfaces.d.ts index 2ab4799..fc67c39 100644 --- a/lib/interfaces.d.ts +++ b/lib/interfaces.d.ts @@ -3,6 +3,7 @@ import { TcombWebhookResponse, TcombRequest, TcombUpdate, TcombUpdatesState } fr export declare type Token = string; export declare type GenericStream = any; export declare type DriverSink = TcombRequest | TcombWebhookResponse; +export declare type EventNames = 'message' | 'inline_query' | 'chosen_inline_result' | 'callback_query'; export interface DriverOptions { webhook?: boolean; startDate?: number; diff --git a/lib/plugins.d.ts b/lib/plugins.d.ts index 82a7be3..2a37c79 100644 --- a/lib/plugins.d.ts +++ b/lib/plugins.d.ts @@ -22,4 +22,6 @@ export interface PluginsExecution { matchStream(sourceObservable: GenericStream, ...args: any[]): GenericStream; } export declare function makePlugins(externalSA?: StreamAdapter): PluginsExecution; -export { matchWith, matchStream }; +export declare let matchWith: (this: any, plugins: Plugin[], sources: ComponentSources, {dupe}?: { + dupe?: boolean; +}) => any, matchStream: (sourceObservable: any, ...args: any[]) => any; diff --git a/lib/plugins.js b/lib/plugins.js index 8d15710..cae352b 100644 --- a/lib/plugins.js +++ b/lib/plugins.js @@ -52,7 +52,6 @@ function makePlugins(externalSA) { return { matchWith: matchWith, matchStream: matchStream }; } exports.makePlugins = makePlugins; -var _a = makePlugins(), matchWith = _a.matchWith, matchStream = _a.matchStream; -exports.matchWith = matchWith; -exports.matchStream = matchStream; +exports.matchWith = (_a = makePlugins(), _a.matchWith), exports.matchStream = _a.matchStream; +var _a; //# sourceMappingURL=plugins.js.map \ No newline at end of file diff --git a/lib/plugins.js.map b/lib/plugins.js.map index d2c08a0..f38eb56 100644 --- a/lib/plugins.js.map +++ b/lib/plugins.js.map @@ -1 +1 @@ -{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":";AAAA,+BAAqH;AAErH,gDAAyC;AACzC,0CAAoC;AACpC,yBAA0B;AAE1B,qDAI0B;AAC1B,qCAAyC;AAIzC,IAAM,oBAAoB,GACxB,CAAC,CAAC,UAAU,CACV,+BAAa,EACb,eAAO,CAAC,WAAG,EAAE,aAAK,EAAE,gCAAc,CAAC,aAAa,CAAC,CAAC,EAClD,sBAAsB,CAAC,CAAA;AAE3B,IAAM,iBAAiB,GACrB,CAAC,CAAC,UAAU,CACV,+BAAa,EACb,eAAO,CAAC,WAAG,EAAE,aAAK,EAAE,UAAC,CAAqB,IAAK,OAAA,CAAC,CAAC,OAAO,CAAC,IAAI,EAAd,CAAc,CAAC,EAC9D,mBAAmB,CAAC,CAAA;AAoCxB,IAAI,QAAQ,GAAG,UAAC,MAAmB,IAAoB,OAAA,CAAC,CAAC,KAAK,CAC5D,MAAM,EACN,oBAAoB,EAAE,UAAC,CAAqB,IAAK,OAAA,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,gCAAc,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAA9D,CAA8D,EAC/G,iBAAiB,EAAE,UAAC,CAAqB,IAAK,OAAA,MAAM,CAAC,OAAO,CAAC,IAAI,EAAnB,CAAmB,EACjE,mCAAiB,EAAE,UAAC,CAAyB,IAAK,OAAA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1C,UAAC,KAAa,EAAE,OAAiB;IAC/B,OAAA,CAAC,YAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,CAAC;AAAnC,CAAmC,CAAC,CAAA;AAExC,qBAA6B,UAAqC;IAArC,2BAAA,EAAA,iCAAqC;IAChE,mBAEE,OAAiB,EACjB,OAAyB,EACzB,EAA4B;YAA3B,+CAAW,EAAX,gCAAW;QAEZ,MAAM,CAAC,uBAAa,CAClB,uBAAa,CAAC,IAAI,EAAE,UAAU,EAAE,oBAAS,CAAC;aACvC,GAAG,CAAC,UAAC,CAAc,IAAK,OAAA,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAvC,CAAuC,CAAC;aAChE,OAAO,CAAC,UAAC,CAAqB,IAAK,OAAA,CAAC,CAAC,OAAO,EAAE,OAAO,CAAC,EAAnB,CAAmB,CAAC;aACvD,MAAM,CAAC,YAAI,CAAC,KAAK,CAAC,CAAC,EACtB,oBAAS,EACT,UAAU,CAAC,CAAA;IACf,CAAC;IAED,qBAAsB,gBAA4C;QAAE,cAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,6BAAc;;QAChF,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,uBAAa,CAAC,gBAAgB,EAAE,UAAU,EAAE,oBAAS,CAAC,EAAE,IAAI,CAAC,CAAA;IACtF,CAAC;IAED,MAAM,CAAC,EAAE,SAAS,WAAA,EAAE,WAAW,aAAA,EAAE,CAAA;AACnC,CAAC;AArBD,kCAqBC;AAEY,QAAA,SAAS,IAAX,KAA6B,WAAW,EAAE,iBAA7B,QAAA,WAAW,kBAAkB"} \ No newline at end of file diff --git a/lib/runtime-types/keyboard-types.d.ts b/lib/runtime-types/keyboard-types.d.ts index 14c85f6..c80507b 100644 --- a/lib/runtime-types/keyboard-types.d.ts +++ b/lib/runtime-types/keyboard-types.d.ts @@ -13,8 +13,8 @@ export interface TcombReplyKeyboardMarkup { one_time_keyboard?: boolean; selective?: boolean; } -export declare const ReplyKeyboardHide: t.Struct; -export interface TcombReplyKeyboardHide { +export declare const ReplyKeyboardRemove: t.Struct; +export interface TcombReplyKeyboardRemove { hide_keyboard: boolean; selective?: boolean; } diff --git a/lib/runtime-types/keyboard-types.js b/lib/runtime-types/keyboard-types.js index 6c78e0f..4509b52 100644 --- a/lib/runtime-types/keyboard-types.js +++ b/lib/runtime-types/keyboard-types.js @@ -12,7 +12,7 @@ exports.ReplyKeyboardMarkup = t.struct({ one_time_keyboard: t.maybe(t.Boolean), selective: t.maybe(t.Boolean) }); -exports.ReplyKeyboardHide = t.struct({ +exports.ReplyKeyboardRemove = t.struct({ hide_keyboard: t.Boolean, selective: t.maybe(t.Boolean) }); diff --git a/lib/runtime-types/keyboard-types.js.map b/lib/runtime-types/keyboard-types.js.map index 8d7c639..7e8bb46 100644 --- a/lib/runtime-types/keyboard-types.js.map +++ b/lib/runtime-types/keyboard-types.js.map @@ -1 +1 @@ -{"version":3,"file":"keyboard-types.js","sourceRoot":"","sources":["../../src/runtime-types/keyboard-types.ts"],"names":[],"mappings":";AAAA,yBAA0B;AAC1B,iCAAyD;AAE5C,QAAA,cAAc,GAAG,CAAC,CAAC,MAAM,CAAsB;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;IACnC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;CACrC,CAAC,CAAA;AAOW,QAAA,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAA2B;IACpE,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,sBAAc,CAAC,CAAC;IACxC,eAAe,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;IACnC,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;IACrC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;CAC9B,CAAC,CAAA;AAQW,QAAA,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAyB;IAChE,aAAa,EAAE,CAAC,CAAC,OAAO;IACxB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;CAC9B,CAAC,CAAA;AAMW,QAAA,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAA4B;IACtE,IAAI,EAAE,CAAC,CAAC,MAAM;IACd,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IACtB,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IAChC,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAY,CAAC;IACpC,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;IACtC,gCAAgC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;CACpD,CAAC,CAAA;AAUW,QAAA,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAA4B;IACtE,eAAe,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,4BAAoB,CAAC,CAAC;CACtD,CAAC,CAAA;AAKW,QAAA,UAAU,GAAG,CAAC,CAAC,MAAM,CAAkB;IAClD,WAAW,EAAE,CAAC,CAAC,OAAO;IACtB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;CAC9B,CAAC,CAAA"} \ No newline at end of file +{"version":3,"file":"keyboard-types.js","sourceRoot":"","sources":["../../src/runtime-types/keyboard-types.ts"],"names":[],"mappings":";AAAA,yBAA0B;AAC1B,iCAAyD;AAE5C,QAAA,cAAc,GAAG,CAAC,CAAC,MAAM,CAAsB;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM;IAC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AoB,CAAC,CAAC;CACtD,CAAC,CAAA;AAKW,QAAA,UAAU,GAAG,CAAC,CAAC,MAAM,CAAkB;IAClD,WAAW,EAAE,CAAC,CAAC,OAAO;IACtB,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC;CAC9B,CAAC,CAAA"} \ No newline at end of file diff --git a/lib/telegram-driver/telegram-driver.js.map b/lib/telegram-driver/telegram-driver.js.map index f8abd28..1108a8d 100644 --- a/lib/telegram-driver/telegram-driver.js.map +++ b/lib/telegram-driver/telegram-driver.js.map @@ -1 +1 @@ -{"version":3,"file":"telegram-driver.js","sourceRoot":"","sources":["../../src/telegram-driver/telegram-driver.ts"],"names":[],"mappings":";AAAA,gDAAyC;AAEzC,yBAAyD;AACzD,+BAAqC;AASrC,qCAAiE;AACjE,6CAA8C;AAC9C,sBAA4C;AAE5C,sCAAsE;AAEtE,4BAA6B,EAAwE;QAAvE,oBAAO,EAAE,4BAAW,EAAE,0CAAkB,EAAE,gCAAa;IACnF,MAAM,CAAC,gBAAiB,SAAiB;QACvC,MAAM,CAAC,eAAC,CAAC,IAAI,CAAC,cAAM,OAAA,SAAS,EAAT,CAAS,EAAE;YAC7B,SAAS,EAAE,OAAO,CAAC,KAAK,EAAE;YAC1B,cAAc,EAAE,WAAW,CAAC,KAAK,EAAE;YACnC,sBAAsB,EAAE,kBAAkB,CAAC,KAAK,EAAE;YAClD,gBAAgB,EAAE,aAAa,CAAC,KAAK,EAAE;SACxC,CAAC,CAAA;IACJ,CAAC,CAAA;AACH,CAAC;AAED,IAAI,aAAa,GAAG,UAClB,KAAY,EACZ,OAAqD,EACrD,KAA6B;IAE7B,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE;SACtB,MAAM,CAAC,kBAAe,CAAC,EAAE,CAAC;SAC1B,KAAK,CAAC,QAAQ,CAAC;SACf,SAAS,CACR,UAAC,GAAgB,IAAK,OAAA,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,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