fix
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
export * from "./qrCodePlacements";
|
export { qrCodePlacements, type QrCodePlacement } from "./qrCodePlacements";
|
||||||
export * from "./EPOCH";
|
export { EPOCH } from "./EPOCH";
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"target": "ES2020",
|
"target": "ESNext",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ export interface QRCodeDocument extends BaseDocument {
|
|||||||
/** Тип объекта, для которого создан QR‑код, например "car" */
|
/** Тип объекта, для которого создан QR‑код, например "car" */
|
||||||
placement: "car" | "pet" | "door" | "store" | "restaurant_table" | "other";
|
placement: "car" | "pet" | "door" | "store" | "restaurant_table" | "other";
|
||||||
|
|
||||||
/** Доступные действия для гостей (например, ["send_message"]) */
|
/** Доступные действия для гостей (например, ["sendMessage"]) */
|
||||||
actions: string[];
|
actions: ("sendMessage" | "viewContactInfo")[];
|
||||||
|
|
||||||
/** Предустановленное сообщение для гостей */
|
/** Предустановленное сообщение для гостей */
|
||||||
predefinedMessages?: string[];
|
predefinedMessages?: string[];
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"outDir": "./dist",
|
"outDir": "./dist",
|
||||||
"target": "ES2020",
|
"target": "ESNext",
|
||||||
"module": "ESNext",
|
"module": "ESNext",
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ export async function newQRCodeConversation(
|
|||||||
await ctx.reply("Выберите доступные действия:", {
|
await ctx.reply("Выберите доступные действия:", {
|
||||||
reply_markup: {
|
reply_markup: {
|
||||||
inline_keyboard: buildActionsKeyboard([
|
inline_keyboard: buildActionsKeyboard([
|
||||||
{ action: "send_message", label: "Отправить сообщение" },
|
{ action: "sendMessage", label: "Отправить сообщение" },
|
||||||
{ action: "show_phone", label: "Показать номер телефона" },
|
{ action: "viewContactInfo", label: "Посмотреть контактные данные" },
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user