gramstax 0.8.20 → 0.8.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/index.cjs +7 -7
- package/dist/src/index.d.cts +101 -51
- package/dist/src/index.d.ts +101 -51
- package/dist/src/index.js +7 -7
- package/package.json +1 -1
package/dist/src/index.d.cts
CHANGED
|
@@ -413,8 +413,8 @@ declare class Ctx {
|
|
|
413
413
|
get msgCaption(): string;
|
|
414
414
|
get msgCaptionArgs(): string[];
|
|
415
415
|
get msgCaptionArg(): string;
|
|
416
|
-
get
|
|
417
|
-
get
|
|
416
|
+
get msgCommandCaptionArgs(): string[];
|
|
417
|
+
get msgCommandCaptionArg(): string;
|
|
418
418
|
get msgPhoto(): grammy_types.PhotoSize[] | undefined;
|
|
419
419
|
get msgVideo(): grammy_types.Video | undefined;
|
|
420
420
|
get msgAudio(): grammy_types.Audio | undefined;
|
|
@@ -545,6 +545,48 @@ declare class Ctx {
|
|
|
545
545
|
handleFreeLocation?(): Promise<any>;
|
|
546
546
|
handleFreeContact?(): Promise<any>;
|
|
547
547
|
handleFree?(): Promise<any>;
|
|
548
|
+
handleSessionCallbackData?(): Promise<any>;
|
|
549
|
+
handleSessionArgsCallbackData?(): Promise<any>;
|
|
550
|
+
handleSessionText?(): Promise<any>;
|
|
551
|
+
handleSessionArgsText?(): Promise<any>;
|
|
552
|
+
handleSessionCommandText?(): Promise<any>;
|
|
553
|
+
handleSessionCommandArgsText?(): Promise<any>;
|
|
554
|
+
handleSessionFreeText?(): Promise<any>;
|
|
555
|
+
handleSessionCaptionPhoto?(): Promise<any>;
|
|
556
|
+
handleSessionCaptionArgsPhoto?(): Promise<any>;
|
|
557
|
+
handleSessionCommandCaptionPhoto?(): Promise<any>;
|
|
558
|
+
handleSessionCommandCaptionArgsPhoto?(): Promise<any>;
|
|
559
|
+
handleSessionFreePhoto?(): Promise<any>;
|
|
560
|
+
handleSessionCaptionVideo?(): Promise<any>;
|
|
561
|
+
handleSessionCaptionArgsVideo?(): Promise<any>;
|
|
562
|
+
handleSessionCommandCaptionVideo?(): Promise<any>;
|
|
563
|
+
handleSessionCommandCaptionArgsVideo?(): Promise<any>;
|
|
564
|
+
handleSessionFreeVideo?(): Promise<any>;
|
|
565
|
+
handleSessionCaptionAudio?(): Promise<any>;
|
|
566
|
+
handleSessionCaptionArgsAudio?(): Promise<any>;
|
|
567
|
+
handleSessionCommandCaptionAudio?(): Promise<any>;
|
|
568
|
+
handleSessionCommandCaptionArgsAudio?(): Promise<any>;
|
|
569
|
+
handleSessionFreeAudio?(): Promise<any>;
|
|
570
|
+
handleSessionCaptionDocument?(): Promise<any>;
|
|
571
|
+
handleSessionCaptionArgsDocument?(): Promise<any>;
|
|
572
|
+
handleSessionCommandCaptionDocument?(): Promise<any>;
|
|
573
|
+
handleSessionCommandCaptionArgsDocument?(): Promise<any>;
|
|
574
|
+
handleSessionFreeDocument?(): Promise<any>;
|
|
575
|
+
handleSessionCaptionAnimation?(): Promise<any>;
|
|
576
|
+
handleSessionCaptionArgsAnimation?(): Promise<any>;
|
|
577
|
+
handleSessionCommandCaptionAnimation?(): Promise<any>;
|
|
578
|
+
handleSessionCommandCaptionArgsAnimation?(): Promise<any>;
|
|
579
|
+
handleSessionFreeAnimation?(): Promise<any>;
|
|
580
|
+
handleSessionCaptionVoice?(): Promise<any>;
|
|
581
|
+
handleSessionCaptionArgsVoice?(): Promise<any>;
|
|
582
|
+
handleSessionCommandCaptionVoice?(): Promise<any>;
|
|
583
|
+
handleSessionCommandCaptionArgsVoice?(): Promise<any>;
|
|
584
|
+
handleSessionFreeVoice?(): Promise<any>;
|
|
585
|
+
handleSessionFreeVideoNote?(): Promise<any>;
|
|
586
|
+
handleSessionFreeSticker?(): Promise<any>;
|
|
587
|
+
handleSessionFreeLocation?(): Promise<any>;
|
|
588
|
+
handleSessionFreeContact?(): Promise<any>;
|
|
589
|
+
handleSessionFree?(): Promise<any>;
|
|
548
590
|
isSessionCallbackData(): boolean;
|
|
549
591
|
isSessionArgsCallbackData(): boolean;
|
|
550
592
|
isSessionText(): boolean;
|
|
@@ -564,8 +606,8 @@ declare class Ctx {
|
|
|
564
606
|
isSessionFreeVideo(): boolean;
|
|
565
607
|
isSessionCaptionAudio(): boolean;
|
|
566
608
|
isSessionCaptionArgsAudio(): boolean;
|
|
567
|
-
|
|
568
|
-
|
|
609
|
+
isSessionCommandCaptionAudio(): boolean;
|
|
610
|
+
isSessionCommandCaptionArgsAudio(): boolean;
|
|
569
611
|
isSessionFreeAudio(): boolean;
|
|
570
612
|
isSessionCaptionDocument(): boolean;
|
|
571
613
|
isSessionCaptionArgsDocument(): boolean;
|
|
@@ -605,8 +647,8 @@ declare class Ctx {
|
|
|
605
647
|
setSessionFreeVideo(params?: any): Promise<boolean | null>;
|
|
606
648
|
setSessionCaptionAudio(params?: any): Promise<boolean | null>;
|
|
607
649
|
setSessionCaptionArgsAudio(params?: any): Promise<boolean | null>;
|
|
608
|
-
|
|
609
|
-
|
|
650
|
+
setSessionCommandCaptionAudio(params?: any): Promise<boolean | null>;
|
|
651
|
+
setSessionCommandCaptionArgsAudio(params?: any): Promise<boolean | null>;
|
|
610
652
|
setSessionFreeAudio(params?: any): Promise<boolean | null>;
|
|
611
653
|
setSessionCaptionDocument(params?: any): Promise<boolean | null>;
|
|
612
654
|
setSessionCaptionArgsDocument(params?: any): Promise<boolean | null>;
|
|
@@ -647,8 +689,8 @@ declare class Ctx {
|
|
|
647
689
|
methodSessionFreeVideo(name?: string): string;
|
|
648
690
|
methodSessionCaptionAudio(name?: string): string;
|
|
649
691
|
methodSessionCaptionArgsAudio(name?: string): string;
|
|
650
|
-
|
|
651
|
-
|
|
692
|
+
methodSessionCommandCaptionAudio(name?: string): string;
|
|
693
|
+
methodSessionCommandCaptionArgsAudio(name?: string): string;
|
|
652
694
|
methodSessionFreeAudio(name?: string): string;
|
|
653
695
|
methodSessionCaptionDocument(name?: string): string;
|
|
654
696
|
methodSessionCaptionArgsDocument(name?: string): string;
|
|
@@ -922,175 +964,183 @@ declare class Gramstax<ICtx extends Ctx = Ctx> {
|
|
|
922
964
|
name: string;
|
|
923
965
|
routeName: string;
|
|
924
966
|
}>;
|
|
967
|
+
handleCommandCaptionArgsVoice: Record<string, {
|
|
968
|
+
name: string;
|
|
969
|
+
routeName: string;
|
|
970
|
+
}>;
|
|
925
971
|
};
|
|
926
972
|
routeStaticSession: {
|
|
927
|
-
|
|
973
|
+
handleSessionCallbackData: Record<string, {
|
|
928
974
|
name: string;
|
|
929
975
|
routeName: string;
|
|
930
976
|
}>;
|
|
931
|
-
|
|
977
|
+
handleSessionText: Record<string, {
|
|
932
978
|
name: string;
|
|
933
979
|
routeName: string;
|
|
934
980
|
}>;
|
|
935
|
-
|
|
981
|
+
handleSessionCommandText: Record<string, {
|
|
936
982
|
name: string;
|
|
937
983
|
routeName: string;
|
|
938
984
|
}>;
|
|
939
|
-
|
|
985
|
+
handleSessionCaptionPhoto: Record<string, {
|
|
940
986
|
name: string;
|
|
941
987
|
routeName: string;
|
|
942
988
|
}>;
|
|
943
|
-
|
|
989
|
+
handleSessionCommandCaptionPhoto: Record<string, {
|
|
944
990
|
name: string;
|
|
945
991
|
routeName: string;
|
|
946
992
|
}>;
|
|
947
|
-
|
|
993
|
+
handleSessionCaptionVideo: Record<string, {
|
|
948
994
|
name: string;
|
|
949
995
|
routeName: string;
|
|
950
996
|
}>;
|
|
951
|
-
|
|
997
|
+
handleSessionCommandCaptionVideo: Record<string, {
|
|
952
998
|
name: string;
|
|
953
999
|
routeName: string;
|
|
954
1000
|
}>;
|
|
955
|
-
|
|
1001
|
+
handleSessionCaptionAudio: Record<string, {
|
|
956
1002
|
name: string;
|
|
957
1003
|
routeName: string;
|
|
958
1004
|
}>;
|
|
959
|
-
|
|
1005
|
+
handleSessionCommandCaptionAudio: Record<string, {
|
|
960
1006
|
name: string;
|
|
961
1007
|
routeName: string;
|
|
962
1008
|
}>;
|
|
963
|
-
|
|
1009
|
+
handleSessionCaptionDocument: Record<string, {
|
|
964
1010
|
name: string;
|
|
965
1011
|
routeName: string;
|
|
966
1012
|
}>;
|
|
967
|
-
|
|
1013
|
+
handleSessionCommandCaptionDocument: Record<string, {
|
|
968
1014
|
name: string;
|
|
969
1015
|
routeName: string;
|
|
970
1016
|
}>;
|
|
971
|
-
|
|
1017
|
+
handleSessionCaptionAnimation: Record<string, {
|
|
972
1018
|
name: string;
|
|
973
1019
|
routeName: string;
|
|
974
1020
|
}>;
|
|
975
|
-
|
|
1021
|
+
handleSessionCommandCaptionAnimation: Record<string, {
|
|
976
1022
|
name: string;
|
|
977
1023
|
routeName: string;
|
|
978
1024
|
}>;
|
|
979
|
-
|
|
1025
|
+
handleSessionCaptionVoice: Record<string, {
|
|
980
1026
|
name: string;
|
|
981
1027
|
routeName: string;
|
|
982
1028
|
}>;
|
|
983
|
-
|
|
1029
|
+
handleSessionCommandCaptionVoice: Record<string, {
|
|
984
1030
|
name: string;
|
|
985
1031
|
routeName: string;
|
|
986
1032
|
}>;
|
|
987
|
-
|
|
1033
|
+
handleSessionArgsCallbackData: Record<string, {
|
|
988
1034
|
name: string;
|
|
989
1035
|
routeName: string;
|
|
990
1036
|
}>;
|
|
991
|
-
|
|
1037
|
+
handleSessionArgsText: Record<string, {
|
|
992
1038
|
name: string;
|
|
993
1039
|
routeName: string;
|
|
994
1040
|
}>;
|
|
995
|
-
|
|
1041
|
+
handleSessionCommandArgsText: Record<string, {
|
|
996
1042
|
name: string;
|
|
997
1043
|
routeName: string;
|
|
998
1044
|
}>;
|
|
999
|
-
|
|
1045
|
+
handleSessionCaptionArgsPhoto: Record<string, {
|
|
1000
1046
|
name: string;
|
|
1001
1047
|
routeName: string;
|
|
1002
1048
|
}>;
|
|
1003
|
-
|
|
1049
|
+
handleSessionCommandCaptionArgsPhoto: Record<string, {
|
|
1004
1050
|
name: string;
|
|
1005
1051
|
routeName: string;
|
|
1006
1052
|
}>;
|
|
1007
|
-
|
|
1053
|
+
handleSessionCaptionArgsVideo: Record<string, {
|
|
1008
1054
|
name: string;
|
|
1009
1055
|
routeName: string;
|
|
1010
1056
|
}>;
|
|
1011
|
-
|
|
1057
|
+
handleSessionCommandCaptionArgsVideo: Record<string, {
|
|
1012
1058
|
name: string;
|
|
1013
1059
|
routeName: string;
|
|
1014
1060
|
}>;
|
|
1015
|
-
|
|
1061
|
+
handleSessionCaptionArgsAudio: Record<string, {
|
|
1016
1062
|
name: string;
|
|
1017
1063
|
routeName: string;
|
|
1018
1064
|
}>;
|
|
1019
|
-
|
|
1065
|
+
handleSessionCommandCaptionArgsAudio: Record<string, {
|
|
1020
1066
|
name: string;
|
|
1021
1067
|
routeName: string;
|
|
1022
1068
|
}>;
|
|
1023
|
-
|
|
1069
|
+
handleSessionCaptionArgsDocument: Record<string, {
|
|
1024
1070
|
name: string;
|
|
1025
1071
|
routeName: string;
|
|
1026
1072
|
}>;
|
|
1027
|
-
|
|
1073
|
+
handleSessionCommandCaptionArgsDocument: Record<string, {
|
|
1028
1074
|
name: string;
|
|
1029
1075
|
routeName: string;
|
|
1030
1076
|
}>;
|
|
1031
|
-
|
|
1077
|
+
handleSessionCaptionArgsAnimation: Record<string, {
|
|
1032
1078
|
name: string;
|
|
1033
1079
|
routeName: string;
|
|
1034
1080
|
}>;
|
|
1035
|
-
|
|
1081
|
+
handleSessionCommandCaptionArgsAnimation: Record<string, {
|
|
1036
1082
|
name: string;
|
|
1037
1083
|
routeName: string;
|
|
1038
1084
|
}>;
|
|
1039
|
-
|
|
1085
|
+
handleSessionCaptionArgsVoice: Record<string, {
|
|
1086
|
+
name: string;
|
|
1087
|
+
routeName: string;
|
|
1088
|
+
}>;
|
|
1089
|
+
handleSessionCommandCaptionArgsVoice: Record<string, {
|
|
1040
1090
|
name: string;
|
|
1041
1091
|
routeName: string;
|
|
1042
1092
|
}>;
|
|
1043
|
-
|
|
1093
|
+
handleSessionFreeText: Record<string, {
|
|
1044
1094
|
name: string;
|
|
1045
1095
|
routeName: string;
|
|
1046
1096
|
}>;
|
|
1047
|
-
|
|
1097
|
+
handleSessionFreePhoto: Record<string, {
|
|
1048
1098
|
name: string;
|
|
1049
1099
|
routeName: string;
|
|
1050
1100
|
}>;
|
|
1051
|
-
|
|
1101
|
+
handleSessionFreeVideo: Record<string, {
|
|
1052
1102
|
name: string;
|
|
1053
1103
|
routeName: string;
|
|
1054
1104
|
}>;
|
|
1055
|
-
|
|
1105
|
+
handleSessionFreeAudio: Record<string, {
|
|
1056
1106
|
name: string;
|
|
1057
1107
|
routeName: string;
|
|
1058
1108
|
}>;
|
|
1059
|
-
|
|
1109
|
+
handleSessionFreeDocument: Record<string, {
|
|
1060
1110
|
name: string;
|
|
1061
1111
|
routeName: string;
|
|
1062
1112
|
}>;
|
|
1063
|
-
|
|
1113
|
+
handleSessionFreeAnimation: Record<string, {
|
|
1064
1114
|
name: string;
|
|
1065
1115
|
routeName: string;
|
|
1066
1116
|
}>;
|
|
1067
|
-
|
|
1117
|
+
handleSessionFreeVoice: Record<string, {
|
|
1068
1118
|
name: string;
|
|
1069
1119
|
routeName: string;
|
|
1070
1120
|
}>;
|
|
1071
|
-
|
|
1121
|
+
handleSessionFreeVideoNote: Record<string, {
|
|
1072
1122
|
name: string;
|
|
1073
1123
|
routeName: string;
|
|
1074
1124
|
}>;
|
|
1075
|
-
|
|
1125
|
+
handleSessionFreeSticker: Record<string, {
|
|
1076
1126
|
name: string;
|
|
1077
1127
|
routeName: string;
|
|
1078
1128
|
}>;
|
|
1079
|
-
|
|
1129
|
+
handleSessionFreeLocation: Record<string, {
|
|
1080
1130
|
name: string;
|
|
1081
1131
|
routeName: string;
|
|
1082
1132
|
}>;
|
|
1083
|
-
|
|
1133
|
+
handleSessionFreeContact: Record<string, {
|
|
1084
1134
|
name: string;
|
|
1085
1135
|
routeName: string;
|
|
1086
1136
|
}>;
|
|
1087
1137
|
};
|
|
1088
1138
|
listRouteStatic: readonly ["handleCallbackData", "handleText", "handleCommandText", "handleCaptionPhoto", "handleCommandCaptionPhoto", "handleCaptionVideo", "handleCommandCaptionVideo", "handleCaptionAudio", "handleCommandCaptionAudio", "handleCaptionDocument", "handleCommandCaptionDocument", "handleCaptionAnimation", "handleCommandCaptionAnimation", "handleCaptionVoice", "handleCommandCaptionVoice"];
|
|
1089
|
-
listRouteStaticIntent: readonly ["handleArgsCallbackData", "handleArgsText", "handleCommandArgsText", "handleCaptionArgsPhoto", "handleCommandCaptionArgsPhoto", "handleCaptionArgsVideo", "handleCommandCaptionArgsVideo", "handleCaptionArgsAudio", "handleCommandCaptionArgsAudio", "handleCaptionArgsDocument", "handleCommandCaptionArgsDocument", "handleCaptionArgsAnimation", "handleCommandCaptionArgsAnimation", "handleCaptionArgsVoice", "
|
|
1090
|
-
listRouteStaticSession: readonly ["
|
|
1139
|
+
listRouteStaticIntent: readonly ["handleArgsCallbackData", "handleArgsText", "handleCommandArgsText", "handleCaptionArgsPhoto", "handleCommandCaptionArgsPhoto", "handleCaptionArgsVideo", "handleCommandCaptionArgsVideo", "handleCaptionArgsAudio", "handleCommandCaptionArgsAudio", "handleCaptionArgsDocument", "handleCommandCaptionArgsDocument", "handleCaptionArgsAnimation", "handleCommandCaptionArgsAnimation", "handleCaptionArgsVoice", "handleCommandCaptionArgsVoice"];
|
|
1140
|
+
listRouteStaticSession: readonly [...("handleSessionCallbackData" | "handleSessionText" | "handleSessionCommandText" | "handleSessionCaptionPhoto" | "handleSessionCommandCaptionPhoto" | "handleSessionCaptionVideo" | "handleSessionCommandCaptionVideo" | "handleSessionCaptionAudio" | "handleSessionCommandCaptionAudio" | "handleSessionCaptionDocument" | "handleSessionCommandCaptionDocument" | "handleSessionCaptionAnimation" | "handleSessionCommandCaptionAnimation" | "handleSessionCaptionVoice" | "handleSessionCommandCaptionVoice" | "handleSessionArgsCallbackData" | "handleSessionArgsText" | "handleSessionCommandArgsText" | "handleSessionCaptionArgsPhoto" | "handleSessionCommandCaptionArgsPhoto" | "handleSessionCaptionArgsVideo" | "handleSessionCommandCaptionArgsVideo" | "handleSessionCaptionArgsAudio" | "handleSessionCommandCaptionArgsAudio" | "handleSessionCaptionArgsDocument" | "handleSessionCommandCaptionArgsDocument" | "handleSessionCaptionArgsAnimation" | "handleSessionCommandCaptionArgsAnimation" | "handleSessionCaptionArgsVoice" | "handleSessionCommandCaptionArgsVoice")[], "handleSessionFreeText", "handleSessionFreePhoto", "handleSessionFreeVideo", "handleSessionFreeAudio", "handleSessionFreeDocument", "handleSessionFreeAnimation", "handleSessionFreeVoice", "handleSessionFreeVideoNote", "handleSessionFreeSticker", "handleSessionFreeLocation", "handleSessionFreeContact"];
|
|
1091
1141
|
lenListRouteStatic: 15;
|
|
1092
1142
|
lenListRouteStaticIntent: 15;
|
|
1093
|
-
lenListRouteStaticSession:
|
|
1143
|
+
lenListRouteStaticSession: number;
|
|
1094
1144
|
};
|
|
1095
1145
|
_pageRoutes(ctx: ICtx, fromListener: `callbackdata` | keyof typeof Gramstax.prototype.pages.routeDynamicSpesific): Promise<any>;
|
|
1096
1146
|
hookBeforeRoute(ctx: ICtx, listenerName: string): Promise<boolean>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -413,8 +413,8 @@ declare class Ctx {
|
|
|
413
413
|
get msgCaption(): string;
|
|
414
414
|
get msgCaptionArgs(): string[];
|
|
415
415
|
get msgCaptionArg(): string;
|
|
416
|
-
get
|
|
417
|
-
get
|
|
416
|
+
get msgCommandCaptionArgs(): string[];
|
|
417
|
+
get msgCommandCaptionArg(): string;
|
|
418
418
|
get msgPhoto(): grammy_types.PhotoSize[] | undefined;
|
|
419
419
|
get msgVideo(): grammy_types.Video | undefined;
|
|
420
420
|
get msgAudio(): grammy_types.Audio | undefined;
|
|
@@ -545,6 +545,48 @@ declare class Ctx {
|
|
|
545
545
|
handleFreeLocation?(): Promise<any>;
|
|
546
546
|
handleFreeContact?(): Promise<any>;
|
|
547
547
|
handleFree?(): Promise<any>;
|
|
548
|
+
handleSessionCallbackData?(): Promise<any>;
|
|
549
|
+
handleSessionArgsCallbackData?(): Promise<any>;
|
|
550
|
+
handleSessionText?(): Promise<any>;
|
|
551
|
+
handleSessionArgsText?(): Promise<any>;
|
|
552
|
+
handleSessionCommandText?(): Promise<any>;
|
|
553
|
+
handleSessionCommandArgsText?(): Promise<any>;
|
|
554
|
+
handleSessionFreeText?(): Promise<any>;
|
|
555
|
+
handleSessionCaptionPhoto?(): Promise<any>;
|
|
556
|
+
handleSessionCaptionArgsPhoto?(): Promise<any>;
|
|
557
|
+
handleSessionCommandCaptionPhoto?(): Promise<any>;
|
|
558
|
+
handleSessionCommandCaptionArgsPhoto?(): Promise<any>;
|
|
559
|
+
handleSessionFreePhoto?(): Promise<any>;
|
|
560
|
+
handleSessionCaptionVideo?(): Promise<any>;
|
|
561
|
+
handleSessionCaptionArgsVideo?(): Promise<any>;
|
|
562
|
+
handleSessionCommandCaptionVideo?(): Promise<any>;
|
|
563
|
+
handleSessionCommandCaptionArgsVideo?(): Promise<any>;
|
|
564
|
+
handleSessionFreeVideo?(): Promise<any>;
|
|
565
|
+
handleSessionCaptionAudio?(): Promise<any>;
|
|
566
|
+
handleSessionCaptionArgsAudio?(): Promise<any>;
|
|
567
|
+
handleSessionCommandCaptionAudio?(): Promise<any>;
|
|
568
|
+
handleSessionCommandCaptionArgsAudio?(): Promise<any>;
|
|
569
|
+
handleSessionFreeAudio?(): Promise<any>;
|
|
570
|
+
handleSessionCaptionDocument?(): Promise<any>;
|
|
571
|
+
handleSessionCaptionArgsDocument?(): Promise<any>;
|
|
572
|
+
handleSessionCommandCaptionDocument?(): Promise<any>;
|
|
573
|
+
handleSessionCommandCaptionArgsDocument?(): Promise<any>;
|
|
574
|
+
handleSessionFreeDocument?(): Promise<any>;
|
|
575
|
+
handleSessionCaptionAnimation?(): Promise<any>;
|
|
576
|
+
handleSessionCaptionArgsAnimation?(): Promise<any>;
|
|
577
|
+
handleSessionCommandCaptionAnimation?(): Promise<any>;
|
|
578
|
+
handleSessionCommandCaptionArgsAnimation?(): Promise<any>;
|
|
579
|
+
handleSessionFreeAnimation?(): Promise<any>;
|
|
580
|
+
handleSessionCaptionVoice?(): Promise<any>;
|
|
581
|
+
handleSessionCaptionArgsVoice?(): Promise<any>;
|
|
582
|
+
handleSessionCommandCaptionVoice?(): Promise<any>;
|
|
583
|
+
handleSessionCommandCaptionArgsVoice?(): Promise<any>;
|
|
584
|
+
handleSessionFreeVoice?(): Promise<any>;
|
|
585
|
+
handleSessionFreeVideoNote?(): Promise<any>;
|
|
586
|
+
handleSessionFreeSticker?(): Promise<any>;
|
|
587
|
+
handleSessionFreeLocation?(): Promise<any>;
|
|
588
|
+
handleSessionFreeContact?(): Promise<any>;
|
|
589
|
+
handleSessionFree?(): Promise<any>;
|
|
548
590
|
isSessionCallbackData(): boolean;
|
|
549
591
|
isSessionArgsCallbackData(): boolean;
|
|
550
592
|
isSessionText(): boolean;
|
|
@@ -564,8 +606,8 @@ declare class Ctx {
|
|
|
564
606
|
isSessionFreeVideo(): boolean;
|
|
565
607
|
isSessionCaptionAudio(): boolean;
|
|
566
608
|
isSessionCaptionArgsAudio(): boolean;
|
|
567
|
-
|
|
568
|
-
|
|
609
|
+
isSessionCommandCaptionAudio(): boolean;
|
|
610
|
+
isSessionCommandCaptionArgsAudio(): boolean;
|
|
569
611
|
isSessionFreeAudio(): boolean;
|
|
570
612
|
isSessionCaptionDocument(): boolean;
|
|
571
613
|
isSessionCaptionArgsDocument(): boolean;
|
|
@@ -605,8 +647,8 @@ declare class Ctx {
|
|
|
605
647
|
setSessionFreeVideo(params?: any): Promise<boolean | null>;
|
|
606
648
|
setSessionCaptionAudio(params?: any): Promise<boolean | null>;
|
|
607
649
|
setSessionCaptionArgsAudio(params?: any): Promise<boolean | null>;
|
|
608
|
-
|
|
609
|
-
|
|
650
|
+
setSessionCommandCaptionAudio(params?: any): Promise<boolean | null>;
|
|
651
|
+
setSessionCommandCaptionArgsAudio(params?: any): Promise<boolean | null>;
|
|
610
652
|
setSessionFreeAudio(params?: any): Promise<boolean | null>;
|
|
611
653
|
setSessionCaptionDocument(params?: any): Promise<boolean | null>;
|
|
612
654
|
setSessionCaptionArgsDocument(params?: any): Promise<boolean | null>;
|
|
@@ -647,8 +689,8 @@ declare class Ctx {
|
|
|
647
689
|
methodSessionFreeVideo(name?: string): string;
|
|
648
690
|
methodSessionCaptionAudio(name?: string): string;
|
|
649
691
|
methodSessionCaptionArgsAudio(name?: string): string;
|
|
650
|
-
|
|
651
|
-
|
|
692
|
+
methodSessionCommandCaptionAudio(name?: string): string;
|
|
693
|
+
methodSessionCommandCaptionArgsAudio(name?: string): string;
|
|
652
694
|
methodSessionFreeAudio(name?: string): string;
|
|
653
695
|
methodSessionCaptionDocument(name?: string): string;
|
|
654
696
|
methodSessionCaptionArgsDocument(name?: string): string;
|
|
@@ -922,175 +964,183 @@ declare class Gramstax<ICtx extends Ctx = Ctx> {
|
|
|
922
964
|
name: string;
|
|
923
965
|
routeName: string;
|
|
924
966
|
}>;
|
|
967
|
+
handleCommandCaptionArgsVoice: Record<string, {
|
|
968
|
+
name: string;
|
|
969
|
+
routeName: string;
|
|
970
|
+
}>;
|
|
925
971
|
};
|
|
926
972
|
routeStaticSession: {
|
|
927
|
-
|
|
973
|
+
handleSessionCallbackData: Record<string, {
|
|
928
974
|
name: string;
|
|
929
975
|
routeName: string;
|
|
930
976
|
}>;
|
|
931
|
-
|
|
977
|
+
handleSessionText: Record<string, {
|
|
932
978
|
name: string;
|
|
933
979
|
routeName: string;
|
|
934
980
|
}>;
|
|
935
|
-
|
|
981
|
+
handleSessionCommandText: Record<string, {
|
|
936
982
|
name: string;
|
|
937
983
|
routeName: string;
|
|
938
984
|
}>;
|
|
939
|
-
|
|
985
|
+
handleSessionCaptionPhoto: Record<string, {
|
|
940
986
|
name: string;
|
|
941
987
|
routeName: string;
|
|
942
988
|
}>;
|
|
943
|
-
|
|
989
|
+
handleSessionCommandCaptionPhoto: Record<string, {
|
|
944
990
|
name: string;
|
|
945
991
|
routeName: string;
|
|
946
992
|
}>;
|
|
947
|
-
|
|
993
|
+
handleSessionCaptionVideo: Record<string, {
|
|
948
994
|
name: string;
|
|
949
995
|
routeName: string;
|
|
950
996
|
}>;
|
|
951
|
-
|
|
997
|
+
handleSessionCommandCaptionVideo: Record<string, {
|
|
952
998
|
name: string;
|
|
953
999
|
routeName: string;
|
|
954
1000
|
}>;
|
|
955
|
-
|
|
1001
|
+
handleSessionCaptionAudio: Record<string, {
|
|
956
1002
|
name: string;
|
|
957
1003
|
routeName: string;
|
|
958
1004
|
}>;
|
|
959
|
-
|
|
1005
|
+
handleSessionCommandCaptionAudio: Record<string, {
|
|
960
1006
|
name: string;
|
|
961
1007
|
routeName: string;
|
|
962
1008
|
}>;
|
|
963
|
-
|
|
1009
|
+
handleSessionCaptionDocument: Record<string, {
|
|
964
1010
|
name: string;
|
|
965
1011
|
routeName: string;
|
|
966
1012
|
}>;
|
|
967
|
-
|
|
1013
|
+
handleSessionCommandCaptionDocument: Record<string, {
|
|
968
1014
|
name: string;
|
|
969
1015
|
routeName: string;
|
|
970
1016
|
}>;
|
|
971
|
-
|
|
1017
|
+
handleSessionCaptionAnimation: Record<string, {
|
|
972
1018
|
name: string;
|
|
973
1019
|
routeName: string;
|
|
974
1020
|
}>;
|
|
975
|
-
|
|
1021
|
+
handleSessionCommandCaptionAnimation: Record<string, {
|
|
976
1022
|
name: string;
|
|
977
1023
|
routeName: string;
|
|
978
1024
|
}>;
|
|
979
|
-
|
|
1025
|
+
handleSessionCaptionVoice: Record<string, {
|
|
980
1026
|
name: string;
|
|
981
1027
|
routeName: string;
|
|
982
1028
|
}>;
|
|
983
|
-
|
|
1029
|
+
handleSessionCommandCaptionVoice: Record<string, {
|
|
984
1030
|
name: string;
|
|
985
1031
|
routeName: string;
|
|
986
1032
|
}>;
|
|
987
|
-
|
|
1033
|
+
handleSessionArgsCallbackData: Record<string, {
|
|
988
1034
|
name: string;
|
|
989
1035
|
routeName: string;
|
|
990
1036
|
}>;
|
|
991
|
-
|
|
1037
|
+
handleSessionArgsText: Record<string, {
|
|
992
1038
|
name: string;
|
|
993
1039
|
routeName: string;
|
|
994
1040
|
}>;
|
|
995
|
-
|
|
1041
|
+
handleSessionCommandArgsText: Record<string, {
|
|
996
1042
|
name: string;
|
|
997
1043
|
routeName: string;
|
|
998
1044
|
}>;
|
|
999
|
-
|
|
1045
|
+
handleSessionCaptionArgsPhoto: Record<string, {
|
|
1000
1046
|
name: string;
|
|
1001
1047
|
routeName: string;
|
|
1002
1048
|
}>;
|
|
1003
|
-
|
|
1049
|
+
handleSessionCommandCaptionArgsPhoto: Record<string, {
|
|
1004
1050
|
name: string;
|
|
1005
1051
|
routeName: string;
|
|
1006
1052
|
}>;
|
|
1007
|
-
|
|
1053
|
+
handleSessionCaptionArgsVideo: Record<string, {
|
|
1008
1054
|
name: string;
|
|
1009
1055
|
routeName: string;
|
|
1010
1056
|
}>;
|
|
1011
|
-
|
|
1057
|
+
handleSessionCommandCaptionArgsVideo: Record<string, {
|
|
1012
1058
|
name: string;
|
|
1013
1059
|
routeName: string;
|
|
1014
1060
|
}>;
|
|
1015
|
-
|
|
1061
|
+
handleSessionCaptionArgsAudio: Record<string, {
|
|
1016
1062
|
name: string;
|
|
1017
1063
|
routeName: string;
|
|
1018
1064
|
}>;
|
|
1019
|
-
|
|
1065
|
+
handleSessionCommandCaptionArgsAudio: Record<string, {
|
|
1020
1066
|
name: string;
|
|
1021
1067
|
routeName: string;
|
|
1022
1068
|
}>;
|
|
1023
|
-
|
|
1069
|
+
handleSessionCaptionArgsDocument: Record<string, {
|
|
1024
1070
|
name: string;
|
|
1025
1071
|
routeName: string;
|
|
1026
1072
|
}>;
|
|
1027
|
-
|
|
1073
|
+
handleSessionCommandCaptionArgsDocument: Record<string, {
|
|
1028
1074
|
name: string;
|
|
1029
1075
|
routeName: string;
|
|
1030
1076
|
}>;
|
|
1031
|
-
|
|
1077
|
+
handleSessionCaptionArgsAnimation: Record<string, {
|
|
1032
1078
|
name: string;
|
|
1033
1079
|
routeName: string;
|
|
1034
1080
|
}>;
|
|
1035
|
-
|
|
1081
|
+
handleSessionCommandCaptionArgsAnimation: Record<string, {
|
|
1036
1082
|
name: string;
|
|
1037
1083
|
routeName: string;
|
|
1038
1084
|
}>;
|
|
1039
|
-
|
|
1085
|
+
handleSessionCaptionArgsVoice: Record<string, {
|
|
1086
|
+
name: string;
|
|
1087
|
+
routeName: string;
|
|
1088
|
+
}>;
|
|
1089
|
+
handleSessionCommandCaptionArgsVoice: Record<string, {
|
|
1040
1090
|
name: string;
|
|
1041
1091
|
routeName: string;
|
|
1042
1092
|
}>;
|
|
1043
|
-
|
|
1093
|
+
handleSessionFreeText: Record<string, {
|
|
1044
1094
|
name: string;
|
|
1045
1095
|
routeName: string;
|
|
1046
1096
|
}>;
|
|
1047
|
-
|
|
1097
|
+
handleSessionFreePhoto: Record<string, {
|
|
1048
1098
|
name: string;
|
|
1049
1099
|
routeName: string;
|
|
1050
1100
|
}>;
|
|
1051
|
-
|
|
1101
|
+
handleSessionFreeVideo: Record<string, {
|
|
1052
1102
|
name: string;
|
|
1053
1103
|
routeName: string;
|
|
1054
1104
|
}>;
|
|
1055
|
-
|
|
1105
|
+
handleSessionFreeAudio: Record<string, {
|
|
1056
1106
|
name: string;
|
|
1057
1107
|
routeName: string;
|
|
1058
1108
|
}>;
|
|
1059
|
-
|
|
1109
|
+
handleSessionFreeDocument: Record<string, {
|
|
1060
1110
|
name: string;
|
|
1061
1111
|
routeName: string;
|
|
1062
1112
|
}>;
|
|
1063
|
-
|
|
1113
|
+
handleSessionFreeAnimation: Record<string, {
|
|
1064
1114
|
name: string;
|
|
1065
1115
|
routeName: string;
|
|
1066
1116
|
}>;
|
|
1067
|
-
|
|
1117
|
+
handleSessionFreeVoice: Record<string, {
|
|
1068
1118
|
name: string;
|
|
1069
1119
|
routeName: string;
|
|
1070
1120
|
}>;
|
|
1071
|
-
|
|
1121
|
+
handleSessionFreeVideoNote: Record<string, {
|
|
1072
1122
|
name: string;
|
|
1073
1123
|
routeName: string;
|
|
1074
1124
|
}>;
|
|
1075
|
-
|
|
1125
|
+
handleSessionFreeSticker: Record<string, {
|
|
1076
1126
|
name: string;
|
|
1077
1127
|
routeName: string;
|
|
1078
1128
|
}>;
|
|
1079
|
-
|
|
1129
|
+
handleSessionFreeLocation: Record<string, {
|
|
1080
1130
|
name: string;
|
|
1081
1131
|
routeName: string;
|
|
1082
1132
|
}>;
|
|
1083
|
-
|
|
1133
|
+
handleSessionFreeContact: Record<string, {
|
|
1084
1134
|
name: string;
|
|
1085
1135
|
routeName: string;
|
|
1086
1136
|
}>;
|
|
1087
1137
|
};
|
|
1088
1138
|
listRouteStatic: readonly ["handleCallbackData", "handleText", "handleCommandText", "handleCaptionPhoto", "handleCommandCaptionPhoto", "handleCaptionVideo", "handleCommandCaptionVideo", "handleCaptionAudio", "handleCommandCaptionAudio", "handleCaptionDocument", "handleCommandCaptionDocument", "handleCaptionAnimation", "handleCommandCaptionAnimation", "handleCaptionVoice", "handleCommandCaptionVoice"];
|
|
1089
|
-
listRouteStaticIntent: readonly ["handleArgsCallbackData", "handleArgsText", "handleCommandArgsText", "handleCaptionArgsPhoto", "handleCommandCaptionArgsPhoto", "handleCaptionArgsVideo", "handleCommandCaptionArgsVideo", "handleCaptionArgsAudio", "handleCommandCaptionArgsAudio", "handleCaptionArgsDocument", "handleCommandCaptionArgsDocument", "handleCaptionArgsAnimation", "handleCommandCaptionArgsAnimation", "handleCaptionArgsVoice", "
|
|
1090
|
-
listRouteStaticSession: readonly ["
|
|
1139
|
+
listRouteStaticIntent: readonly ["handleArgsCallbackData", "handleArgsText", "handleCommandArgsText", "handleCaptionArgsPhoto", "handleCommandCaptionArgsPhoto", "handleCaptionArgsVideo", "handleCommandCaptionArgsVideo", "handleCaptionArgsAudio", "handleCommandCaptionArgsAudio", "handleCaptionArgsDocument", "handleCommandCaptionArgsDocument", "handleCaptionArgsAnimation", "handleCommandCaptionArgsAnimation", "handleCaptionArgsVoice", "handleCommandCaptionArgsVoice"];
|
|
1140
|
+
listRouteStaticSession: readonly [...("handleSessionCallbackData" | "handleSessionText" | "handleSessionCommandText" | "handleSessionCaptionPhoto" | "handleSessionCommandCaptionPhoto" | "handleSessionCaptionVideo" | "handleSessionCommandCaptionVideo" | "handleSessionCaptionAudio" | "handleSessionCommandCaptionAudio" | "handleSessionCaptionDocument" | "handleSessionCommandCaptionDocument" | "handleSessionCaptionAnimation" | "handleSessionCommandCaptionAnimation" | "handleSessionCaptionVoice" | "handleSessionCommandCaptionVoice" | "handleSessionArgsCallbackData" | "handleSessionArgsText" | "handleSessionCommandArgsText" | "handleSessionCaptionArgsPhoto" | "handleSessionCommandCaptionArgsPhoto" | "handleSessionCaptionArgsVideo" | "handleSessionCommandCaptionArgsVideo" | "handleSessionCaptionArgsAudio" | "handleSessionCommandCaptionArgsAudio" | "handleSessionCaptionArgsDocument" | "handleSessionCommandCaptionArgsDocument" | "handleSessionCaptionArgsAnimation" | "handleSessionCommandCaptionArgsAnimation" | "handleSessionCaptionArgsVoice" | "handleSessionCommandCaptionArgsVoice")[], "handleSessionFreeText", "handleSessionFreePhoto", "handleSessionFreeVideo", "handleSessionFreeAudio", "handleSessionFreeDocument", "handleSessionFreeAnimation", "handleSessionFreeVoice", "handleSessionFreeVideoNote", "handleSessionFreeSticker", "handleSessionFreeLocation", "handleSessionFreeContact"];
|
|
1091
1141
|
lenListRouteStatic: 15;
|
|
1092
1142
|
lenListRouteStaticIntent: 15;
|
|
1093
|
-
lenListRouteStaticSession:
|
|
1143
|
+
lenListRouteStaticSession: number;
|
|
1094
1144
|
};
|
|
1095
1145
|
_pageRoutes(ctx: ICtx, fromListener: `callbackdata` | keyof typeof Gramstax.prototype.pages.routeDynamicSpesific): Promise<any>;
|
|
1096
1146
|
hookBeforeRoute(ctx: ICtx, listenerName: string): Promise<boolean>;
|