gramstax 0.8.20 → 0.8.22

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.
@@ -413,8 +413,8 @@ declare class Ctx {
413
413
  get msgCaption(): string;
414
414
  get msgCaptionArgs(): string[];
415
415
  get msgCaptionArg(): string;
416
- get msgCaptionCommandArgs(): string[];
417
- get msgCaptionCommandArg(): string;
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,47 +545,48 @@ declare class Ctx {
545
545
  handleFreeLocation?(): Promise<any>;
546
546
  handleFreeContact?(): Promise<any>;
547
547
  handleFree?(): Promise<any>;
548
- isSessionCallbackData(): boolean;
549
- isSessionArgsCallbackData(): boolean;
550
- isSessionText(): boolean;
551
- isSessionArgsText(): boolean;
552
- isSessionCommandText(): boolean;
553
- isSessionCommandArgsText(): boolean;
554
- isSessionFreeText(): boolean;
555
- isSessionCaptionPhoto(): boolean;
556
- isSessionCaptionArgsPhoto(): boolean;
557
- isSessionCommandCaptionPhoto(): boolean;
558
- isSessionCommandCaptionArgsPhoto(): boolean;
559
- isSessionFreePhoto(): boolean;
560
- isSessionCaptionVideo(): boolean;
561
- isSessionCaptionArgsVideo(): boolean;
562
- isSessionCommandCaptionVideo(): boolean;
563
- isSessionCommandCaptionArgsVideo(): boolean;
564
- isSessionFreeVideo(): boolean;
565
- isSessionCaptionAudio(): boolean;
566
- isSessionCaptionArgsAudio(): boolean;
567
- isSessionCaptionCommandAudio(): boolean;
568
- isSessionCaptionCommandArgsAudio(): boolean;
569
- isSessionFreeAudio(): boolean;
570
- isSessionCaptionDocument(): boolean;
571
- isSessionCaptionArgsDocument(): boolean;
572
- isSessionCommandCaptionDocument(): boolean;
573
- isSessionCommandCaptionArgsDocument(): boolean;
574
- isSessionFreeDocument(): boolean;
575
- isSessionCaptionAnimation(): boolean;
576
- isSessionCaptionArgsAnimation(): boolean;
577
- isSessionCommandCaptionAnimation(): boolean;
578
- isSessionCommandCaptionArgsAnimation(): boolean;
579
- isSessionFreeAnimation(): boolean;
580
- isSessionCaptionVoice(): boolean;
581
- isSessionCaptionArgsVoice(): boolean;
582
- isSessionCommandCaptionVoice(): boolean;
583
- isSessionCommandCaptionArgsVoice(): boolean;
584
- isSessionFreeVoice(): boolean;
585
- isSessionFreeVideoNote(): boolean;
586
- isSessionFreeSticker(): boolean;
587
- isSessionFreeLocation(): boolean;
588
- isSessionFreeContact(): boolean;
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>;
589
590
  setSessionCallbackData(params?: any): Promise<boolean | null>;
590
591
  setSessionArgsCallbackData(params?: any): Promise<boolean | null>;
591
592
  setSessionText(params?: any): Promise<boolean | null>;
@@ -605,8 +606,8 @@ declare class Ctx {
605
606
  setSessionFreeVideo(params?: any): Promise<boolean | null>;
606
607
  setSessionCaptionAudio(params?: any): Promise<boolean | null>;
607
608
  setSessionCaptionArgsAudio(params?: any): Promise<boolean | null>;
608
- setSessionCaptionCommandAudio(params?: any): Promise<boolean | null>;
609
- setSessionCaptionCommandArgsAudio(params?: any): Promise<boolean | null>;
609
+ setSessionCommandCaptionAudio(params?: any): Promise<boolean | null>;
610
+ setSessionCommandCaptionArgsAudio(params?: any): Promise<boolean | null>;
610
611
  setSessionFreeAudio(params?: any): Promise<boolean | null>;
611
612
  setSessionCaptionDocument(params?: any): Promise<boolean | null>;
612
613
  setSessionCaptionArgsDocument(params?: any): Promise<boolean | null>;
@@ -647,8 +648,8 @@ declare class Ctx {
647
648
  methodSessionFreeVideo(name?: string): string;
648
649
  methodSessionCaptionAudio(name?: string): string;
649
650
  methodSessionCaptionArgsAudio(name?: string): string;
650
- methodSessionCaptionCommandAudio(name?: string): string;
651
- methodSessionCaptionCommandArgsAudio(name?: string): string;
651
+ methodSessionCommandCaptionAudio(name?: string): string;
652
+ methodSessionCommandCaptionArgsAudio(name?: string): string;
652
653
  methodSessionFreeAudio(name?: string): string;
653
654
  methodSessionCaptionDocument(name?: string): string;
654
655
  methodSessionCaptionArgsDocument(name?: string): string;
@@ -922,175 +923,183 @@ declare class Gramstax<ICtx extends Ctx = Ctx> {
922
923
  name: string;
923
924
  routeName: string;
924
925
  }>;
926
+ handleCommandCaptionArgsVoice: Record<string, {
927
+ name: string;
928
+ routeName: string;
929
+ }>;
925
930
  };
926
931
  routeStaticSession: {
927
- handleCallbackData: Record<string, {
932
+ handleSessionCallbackData: Record<string, {
928
933
  name: string;
929
934
  routeName: string;
930
935
  }>;
931
- handleText: Record<string, {
936
+ handleSessionText: Record<string, {
932
937
  name: string;
933
938
  routeName: string;
934
939
  }>;
935
- handleCommandText: Record<string, {
940
+ handleSessionCommandText: Record<string, {
936
941
  name: string;
937
942
  routeName: string;
938
943
  }>;
939
- handleCaptionPhoto: Record<string, {
944
+ handleSessionCaptionPhoto: Record<string, {
940
945
  name: string;
941
946
  routeName: string;
942
947
  }>;
943
- handleCommandCaptionPhoto: Record<string, {
948
+ handleSessionCommandCaptionPhoto: Record<string, {
944
949
  name: string;
945
950
  routeName: string;
946
951
  }>;
947
- handleCaptionVideo: Record<string, {
952
+ handleSessionCaptionVideo: Record<string, {
948
953
  name: string;
949
954
  routeName: string;
950
955
  }>;
951
- handleCommandCaptionVideo: Record<string, {
956
+ handleSessionCommandCaptionVideo: Record<string, {
952
957
  name: string;
953
958
  routeName: string;
954
959
  }>;
955
- handleCaptionAudio: Record<string, {
960
+ handleSessionCaptionAudio: Record<string, {
956
961
  name: string;
957
962
  routeName: string;
958
963
  }>;
959
- handleCommandCaptionAudio: Record<string, {
964
+ handleSessionCommandCaptionAudio: Record<string, {
960
965
  name: string;
961
966
  routeName: string;
962
967
  }>;
963
- handleCaptionDocument: Record<string, {
968
+ handleSessionCaptionDocument: Record<string, {
964
969
  name: string;
965
970
  routeName: string;
966
971
  }>;
967
- handleCommandCaptionDocument: Record<string, {
972
+ handleSessionCommandCaptionDocument: Record<string, {
968
973
  name: string;
969
974
  routeName: string;
970
975
  }>;
971
- handleCaptionAnimation: Record<string, {
976
+ handleSessionCaptionAnimation: Record<string, {
972
977
  name: string;
973
978
  routeName: string;
974
979
  }>;
975
- handleCommandCaptionAnimation: Record<string, {
980
+ handleSessionCommandCaptionAnimation: Record<string, {
976
981
  name: string;
977
982
  routeName: string;
978
983
  }>;
979
- handleCaptionVoice: Record<string, {
984
+ handleSessionCaptionVoice: Record<string, {
980
985
  name: string;
981
986
  routeName: string;
982
987
  }>;
983
- handleCommandCaptionVoice: Record<string, {
988
+ handleSessionCommandCaptionVoice: Record<string, {
984
989
  name: string;
985
990
  routeName: string;
986
991
  }>;
987
- handleArgsCallbackData: Record<string, {
992
+ handleSessionArgsCallbackData: Record<string, {
988
993
  name: string;
989
994
  routeName: string;
990
995
  }>;
991
- handleArgsText: Record<string, {
996
+ handleSessionArgsText: Record<string, {
992
997
  name: string;
993
998
  routeName: string;
994
999
  }>;
995
- handleCommandArgsText: Record<string, {
1000
+ handleSessionCommandArgsText: Record<string, {
996
1001
  name: string;
997
1002
  routeName: string;
998
1003
  }>;
999
- handleCaptionArgsPhoto: Record<string, {
1004
+ handleSessionCaptionArgsPhoto: Record<string, {
1000
1005
  name: string;
1001
1006
  routeName: string;
1002
1007
  }>;
1003
- handleCommandCaptionArgsPhoto: Record<string, {
1008
+ handleSessionCommandCaptionArgsPhoto: Record<string, {
1004
1009
  name: string;
1005
1010
  routeName: string;
1006
1011
  }>;
1007
- handleCaptionArgsVideo: Record<string, {
1012
+ handleSessionCaptionArgsVideo: Record<string, {
1008
1013
  name: string;
1009
1014
  routeName: string;
1010
1015
  }>;
1011
- handleCommandCaptionArgsVideo: Record<string, {
1016
+ handleSessionCommandCaptionArgsVideo: Record<string, {
1012
1017
  name: string;
1013
1018
  routeName: string;
1014
1019
  }>;
1015
- handleCaptionArgsAudio: Record<string, {
1020
+ handleSessionCaptionArgsAudio: Record<string, {
1016
1021
  name: string;
1017
1022
  routeName: string;
1018
1023
  }>;
1019
- handleCommandCaptionArgsAudio: Record<string, {
1024
+ handleSessionCommandCaptionArgsAudio: Record<string, {
1020
1025
  name: string;
1021
1026
  routeName: string;
1022
1027
  }>;
1023
- handleCaptionArgsDocument: Record<string, {
1028
+ handleSessionCaptionArgsDocument: Record<string, {
1024
1029
  name: string;
1025
1030
  routeName: string;
1026
1031
  }>;
1027
- handleCommandCaptionArgsDocument: Record<string, {
1032
+ handleSessionCommandCaptionArgsDocument: Record<string, {
1028
1033
  name: string;
1029
1034
  routeName: string;
1030
1035
  }>;
1031
- handleCaptionArgsAnimation: Record<string, {
1036
+ handleSessionCaptionArgsAnimation: Record<string, {
1032
1037
  name: string;
1033
1038
  routeName: string;
1034
1039
  }>;
1035
- handleCommandCaptionArgsAnimation: Record<string, {
1040
+ handleSessionCommandCaptionArgsAnimation: Record<string, {
1036
1041
  name: string;
1037
1042
  routeName: string;
1038
1043
  }>;
1039
- handleCaptionArgsVoice: Record<string, {
1044
+ handleSessionCaptionArgsVoice: Record<string, {
1045
+ name: string;
1046
+ routeName: string;
1047
+ }>;
1048
+ handleSessionCommandCaptionArgsVoice: Record<string, {
1040
1049
  name: string;
1041
1050
  routeName: string;
1042
1051
  }>;
1043
- handleFreeText: Record<string, {
1052
+ handleSessionFreeText: Record<string, {
1044
1053
  name: string;
1045
1054
  routeName: string;
1046
1055
  }>;
1047
- handleFreePhoto: Record<string, {
1056
+ handleSessionFreePhoto: Record<string, {
1048
1057
  name: string;
1049
1058
  routeName: string;
1050
1059
  }>;
1051
- handleFreeVideo: Record<string, {
1060
+ handleSessionFreeVideo: Record<string, {
1052
1061
  name: string;
1053
1062
  routeName: string;
1054
1063
  }>;
1055
- handleFreeAudio: Record<string, {
1064
+ handleSessionFreeAudio: Record<string, {
1056
1065
  name: string;
1057
1066
  routeName: string;
1058
1067
  }>;
1059
- handleFreeDocument: Record<string, {
1068
+ handleSessionFreeDocument: Record<string, {
1060
1069
  name: string;
1061
1070
  routeName: string;
1062
1071
  }>;
1063
- handleFreeAnimation: Record<string, {
1072
+ handleSessionFreeAnimation: Record<string, {
1064
1073
  name: string;
1065
1074
  routeName: string;
1066
1075
  }>;
1067
- handleFreeVoice: Record<string, {
1076
+ handleSessionFreeVoice: Record<string, {
1068
1077
  name: string;
1069
1078
  routeName: string;
1070
1079
  }>;
1071
- handleFreeVideoNote: Record<string, {
1080
+ handleSessionFreeVideoNote: Record<string, {
1072
1081
  name: string;
1073
1082
  routeName: string;
1074
1083
  }>;
1075
- handleFreeSticker: Record<string, {
1084
+ handleSessionFreeSticker: Record<string, {
1076
1085
  name: string;
1077
1086
  routeName: string;
1078
1087
  }>;
1079
- handleFreeLocation: Record<string, {
1088
+ handleSessionFreeLocation: Record<string, {
1080
1089
  name: string;
1081
1090
  routeName: string;
1082
1091
  }>;
1083
- handleFreeContact: Record<string, {
1092
+ handleSessionFreeContact: Record<string, {
1084
1093
  name: string;
1085
1094
  routeName: string;
1086
1095
  }>;
1087
1096
  };
1088
1097
  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", "handleCommandCaptionArgsAnimation"];
1090
- listRouteStaticSession: readonly ["handleCallbackData", "handleText", "handleCommandText", "handleCaptionPhoto", "handleCommandCaptionPhoto", "handleCaptionVideo", "handleCommandCaptionVideo", "handleCaptionAudio", "handleCommandCaptionAudio", "handleCaptionDocument", "handleCommandCaptionDocument", "handleCaptionAnimation", "handleCommandCaptionAnimation", "handleCaptionVoice", "handleCommandCaptionVoice", "handleArgsCallbackData", "handleArgsText", "handleCommandArgsText", "handleCaptionArgsPhoto", "handleCommandCaptionArgsPhoto", "handleCaptionArgsVideo", "handleCommandCaptionArgsVideo", "handleCaptionArgsAudio", "handleCommandCaptionArgsAudio", "handleCaptionArgsDocument", "handleCommandCaptionArgsDocument", "handleCaptionArgsAnimation", "handleCommandCaptionArgsAnimation", "handleCaptionArgsVoice", "handleCommandCaptionArgsAnimation", "handleFreeText", "handleFreePhoto", "handleFreeVideo", "handleFreeAudio", "handleFreeDocument", "handleFreeAnimation", "handleFreeVoice", "handleFreeVideoNote", "handleFreeSticker", "handleFreeLocation", "handleFreeContact"];
1098
+ listRouteStaticIntent: readonly ["handleArgsCallbackData", "handleArgsText", "handleCommandArgsText", "handleCaptionArgsPhoto", "handleCommandCaptionArgsPhoto", "handleCaptionArgsVideo", "handleCommandCaptionArgsVideo", "handleCaptionArgsAudio", "handleCommandCaptionArgsAudio", "handleCaptionArgsDocument", "handleCommandCaptionArgsDocument", "handleCaptionArgsAnimation", "handleCommandCaptionArgsAnimation", "handleCaptionArgsVoice", "handleCommandCaptionArgsVoice"];
1099
+ 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
1100
  lenListRouteStatic: 15;
1092
1101
  lenListRouteStaticIntent: 15;
1093
- lenListRouteStaticSession: 41;
1102
+ lenListRouteStaticSession: number;
1094
1103
  };
1095
1104
  _pageRoutes(ctx: ICtx, fromListener: `callbackdata` | keyof typeof Gramstax.prototype.pages.routeDynamicSpesific): Promise<any>;
1096
1105
  hookBeforeRoute(ctx: ICtx, listenerName: string): Promise<boolean>;