Update packages including Telegraf

This commit is contained in:
Tony Stipanic 2021-08-18 22:12:42 +02:00
parent dc54c50c39
commit d6e4592cf4
No known key found for this signature in database
GPG Key ID: 3026BCCB6C9CC6BD
3 changed files with 3127 additions and 3656 deletions

6697
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -23,19 +23,19 @@
},
"author": "Travis Ralston",
"dependencies": {
"@angular/localize": "^12.1.1",
"@angular/localize": "^12.2.2",
"@fortawesome/angular-fontawesome": "^0.9.0",
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-brands-svg-icons": "^5.15.3",
"@fortawesome/free-regular-svg-icons": "^5.15.3",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
"@popperjs/core": "^2.9.2",
"@popperjs/core": "^2.9.3",
"body-parser": "^1.19.0",
"config": "^3.3.6",
"express": "^4.17.1",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
"matrix-bot-sdk": "^0.3.8",
"matrix-bot-sdk": "^0.5.19",
"matrix-js-snippets": "^0.2.8",
"memory-cache": "^0.2.0",
"mime": "^2.5.2",
@ -44,7 +44,7 @@
"ngx-ui-switch": "^12.0.1",
"pg": "^8.7.1",
"pg-hstore": "^2.3.4",
"postcss": "^8.3.5",
"postcss": "^8.3.6",
"random-string": "^0.2.0",
"request": "^2.88.2",
"request-promise": "^4.2.6",
@ -52,10 +52,10 @@
"semver": "^7.3.5",
"sequelize": "6.6.2",
"sequelize-typescript": "^2.1.0",
"sharp": "^0.28.3",
"sharp": "^0.29.0",
"spotify-uri": "^2.2.0",
"sqlite3": "^5.0.2",
"telegraf": "^3.30.1",
"telegraf": "^4.4.1",
"typescript": "^4.3.5",
"typescript-rest": "^3.0.4",
"umzug": "^3.0.0-beta.16",
@ -63,29 +63,29 @@
"xng-breadcrumb": "^6.7.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^12.1.1",
"@angular-devkit/core": "^12.1.1",
"@angular-eslint/builder": "12.3.0",
"@angular-eslint/eslint-plugin": "12.3.0",
"@angular-eslint/eslint-plugin-template": "12.3.0",
"@angular-eslint/schematics": "12.3.0",
"@angular-eslint/template-parser": "12.3.0",
"@angular/animations": "^12.1.1",
"@angular/cli": "^12.1.1",
"@angular/common": "^12.1.1",
"@angular/compiler": "^12.1.1",
"@angular/compiler-cli": "^12.1.1",
"@angular/core": "^12.1.1",
"@angular/forms": "^12.1.1",
"@angular/platform-browser": "^12.1.1",
"@angular/platform-browser-dynamic": "^12.1.1",
"@angular/router": "^12.1.1",
"@angular-devkit/build-angular": "^12.2.1",
"@angular-devkit/core": "^12.2.1",
"@angular-eslint/builder": "^12.3.1",
"@angular-eslint/eslint-plugin": "^12.3.1",
"@angular-eslint/eslint-plugin-template": "^12.3.1",
"@angular-eslint/schematics": "^12.3.1",
"@angular-eslint/template-parser": "^12.3.1",
"@angular/animations": "^12.2.2",
"@angular/cli": "^12.2.1",
"@angular/common": "^12.2.2",
"@angular/compiler": "^12.2.2",
"@angular/compiler-cli": "^12.2.2",
"@angular/core": "^12.2.2",
"@angular/forms": "^12.2.2",
"@angular/platform-browser": "^12.2.2",
"@angular/platform-browser-dynamic": "^12.2.2",
"@angular/router": "^12.2.2",
"@angularclass/hmr": "^3.0.0",
"@angularclass/hmr-loader": "^3.0.4",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@babel/core": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@ckeditor/ckeditor5-angular": "^2.0.2",
"@ckeditor/ckeditor5-build-classic": "^29.0.0",
"@ckeditor/ckeditor5-build-classic": "^29.1.0",
"@fortawesome/fontawesome": "^1.1.8",
"@fortawesome/fontawesome-free-brands": "^5.0.13",
"@fortawesome/fontawesome-free-regular": "^5.0.13",
@ -97,26 +97,26 @@
"@types/jquery": "^3.5.6",
"@types/node": "^14.17.4",
"@types/validator": "^13.6.3",
"@typescript-eslint/eslint-plugin": "4.28.2",
"@typescript-eslint/parser": "4.28.2",
"@typescript-eslint/eslint-plugin": "^4.29.2",
"@typescript-eslint/parser": "^4.29.2",
"angular2-template-loader": "^0.6.2",
"angular2-toaster": "^11.0.1",
"bootstrap": "^5.0.2",
"bootstrap": "^5.1.0",
"copy-webpack-plugin": "^9.0.1",
"core-js": "^3.15.2",
"css-loader": "^5.2.7",
"cssnano": "^5.0.6",
"core-js": "^3.16.2",
"css-loader": "^6.2.0",
"cssnano": "^5.0.8",
"dom-to-image": "^2.6.0",
"embed-video": "^2.0.4",
"eslint": "^7.26.0",
"eslint-webpack-plugin": "^2.5.4",
"eslint": "^7.32.0",
"eslint-webpack-plugin": "^3.0.1",
"goby": "^1.1.2",
"html-loader": "^2.1.2",
"html-webpack-plugin": "^5.3.2",
"iso-639-1": "^2.1.9",
"jquery": "^3.6.0",
"json-loader": "^0.5.7",
"mini-css-extract-plugin": "^2.1.0",
"mini-css-extract-plugin": "^2.2.0",
"postcss-cssnext": "^3.1.0",
"postcss-import": "^14.0.2",
"postcss-loader": "^6.1.1",
@ -129,14 +129,14 @@
"screenfull": "^5.1.0",
"shelljs": "^0.8.4",
"spinkit": "^2.0.1",
"style-loader": "^3.1.0",
"style-loader": "^3.2.1",
"ts-helpers": "^1.1.2",
"ts-loader": "^9.2.3",
"ts-node": "^10.1.0",
"ts-loader": "^9.2.5",
"ts-node": "^10.2.1",
"ts-node-dev": "^1.1.8",
"webpack": "^5.44.0",
"webpack-cli": "^4.7.2",
"webpack-dev-server": "^3.11.2",
"webpack": "^5.50.0",
"webpack-cli": "^4.8.0",
"webpack-dev-server": "^4.0.0",
"zone.js": "^0.11.4"
}
}

View File

@ -1,6 +1,6 @@
import Telegraf, { Telegram } from "telegraf";
import config from "../config";
import * as path from "path";
import { Telegraf, Telegram } from "telegraf";
export interface TelegramStickerPack {
name: string;
@ -30,7 +30,7 @@ export class TelegramBot {
for (const tgSticker of set.stickers) {
pack.stickers.push({
url: await this.bot.getFileLink(tgSticker.file_id),
url: await (await this.bot.getFileLink(tgSticker.file_id)).toString(),
emoji: tgSticker.emoji,
});
}