-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Rogério Munhoz
committed
Jul 3, 2023
1 parent
a42ccb9
commit 356010b
Showing
24 changed files
with
343 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
deno 1.29.2 | ||
deno 1.34.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
"typescript.tsdk": "node_modules/typescript/lib", | ||
"deno.enable": true, | ||
"deno.unstable": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,24 @@ | ||
{ | ||
"importMap": "import-map.json", | ||
"tasks": { | ||
"polling": "deno run -A --watch polling.ts", | ||
"server": "deno run -A server.ts", | ||
"quality": "deno lint && deno fmt && deno check polling.ts && deno check server.ts" | ||
}, | ||
"lint": { | ||
"files": { | ||
"exclude": [ | ||
"dist", | ||
"node_modules", | ||
"sessions", | ||
".vercel" | ||
] | ||
} | ||
"exclude": [ | ||
"dist", | ||
"node_modules", | ||
"sessions", | ||
".vercel" | ||
] | ||
}, | ||
"fmt": { | ||
"options": { | ||
"lineWidth": 120 | ||
}, | ||
"files": { | ||
"exclude": [ | ||
"dist", | ||
"node_modules", | ||
"sessions", | ||
".vercel" | ||
] | ||
} | ||
"lineWidth": 120, | ||
"exclude": [ | ||
"dist", | ||
"node_modules", | ||
"sessions", | ||
".vercel" | ||
] | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export * from "https://esm.sh/[email protected]"; | ||
export { evaluate, round } from "https://esm.sh/[email protected]"; | ||
export * from "https://lib.deno.dev/[email protected]/encoding/base64.ts"; | ||
export * from "https://lib.deno.dev/x/grammy@v1/mod.ts"; | ||
export { conversations, createConversation } from "https://lib.deno.dev/x/grammy_conversations@v1/mod.ts"; | ||
export type { Conversation, ConversationFlavor } from "https://lib.deno.dev/x/grammy_conversations@v1/mod.ts"; | ||
export * from "https://lib.deno.dev/x/grammy_storages@v2/file/src/mod.ts"; | ||
export { Collection, MongoClient } from "https://lib.deno.dev/x/[email protected]/mod.ts"; | ||
export * from "https://lib.deno.dev/x/pix@v2/mod.ts"; | ||
export { json, serve } from "https://lib.deno.dev/x/[email protected]/mod.ts"; | ||
export * from "https://lib.deno.dev/x/zod@v3/mod.ts"; | ||
export * from "https://raw.githubusercontent.com/denorg/qrcode/87101e061a7b1f9f9d5ddb304ca8c9e99262e9e1/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
import { Bot } from "grammy"; | ||
import { AppContext } from "../bot.ts"; | ||
import { Bot } from "../deps.ts"; | ||
|
||
export function install(bot: Bot<AppContext>) { | ||
bot | ||
.filter((ctx) => !ctx.session.pixKey) | ||
.inlineQuery(/[\d.,]+/gi, (ctx) => | ||
ctx.answerInlineQuery([], { | ||
switch_pm_text: "Clique aqui pra se cadastrar", | ||
switch_pm_parameter: ctx.inlineQuery.query, | ||
button: { text: "Clique aqui pra se cadastrar", start_parameter: ctx.inlineQuery.query }, | ||
cache_time: 0, | ||
})); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters