send messages to telegram from RQCP (ReadQrcodeChatPage) with link to MQCP (ManageQrcodeChatPage)
Deploy app frontend / app frontend (push) Successful in 2m43s
Deploy db-migrations / db-migrations (push) Successful in 1m8s
Deploy service message-delivery-method-web-push / service message-delivery-method-web-push (push) Successful in 1m30s
Deploy service tg-bot / service tg-bot (push) Failing after 1m54s

This commit is contained in:
2024-12-14 23:58:29 +02:00
parent 90fe585ff8
commit d71b405277
22 changed files with 396 additions and 127 deletions
@@ -2,7 +2,7 @@ import { type QRCodeDocument } from "@hereconnect/types";
import { Conversation } from "@grammyjs/conversations";
import { InputFile } from "grammy";
import type { MyContext } from "../../types/myContext";
import { qrCodePlacements } from "../../models/types";
import { qrCodePlacements } from "../../types/models";
import {
buildPlacementKeyboard,
buildActionsKeyboard,
@@ -11,11 +11,8 @@ import { createQRCode } from "../../api/qrCodes";
import { generateQRCodeImage } from "../../services/qrGenerator";
import { selectMultipleActions } from "./selectMultipleActions";
// Тип разговора (конверсии)
type MyConversation = Conversation<MyContext>;
export async function newQRCodeConversation(
conversation: MyConversation,
conversation: Conversation<MyContext>,
ctx: MyContext,
) {
if (!ctx.userDoc) {