-
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
1 parent
4e2d45a
commit 2173bd9
Showing
3 changed files
with
870 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const express = require("express"); | ||
const { Bot } = require("grammy"); | ||
|
||
const bot = new Bot("TOPSECRET:TOKEN"); | ||
const app = express(); | ||
|
||
app.use(express.json()); | ||
|
||
app.listen(3000, () => { | ||
console.log("Server is running on port 3000"); | ||
}); |
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,20 @@ | ||
{ | ||
"name": "backend", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "node index.js" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"dependencies": { | ||
"express": "^4.19.2", | ||
"grammy": "^1.28.0", | ||
"http-proxy-middleware": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/express": "^4.17.21" | ||
} | ||
} |
Oops, something went wrong.