kaufman-bot
telegraf
kaufman-bot | telegraf | |
---|---|---|
12 | 14 | |
23 | 7,759 | |
- | 2.5% | |
0.0 | 8.7 | |
over 1 year ago | 3 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kaufman-bot
-
Add "demo-taxi-orders" command in Telegram bot on NestJS
https://github.com/EndyKaufman/kaufman-bot/tree/master/libs/demo-taxi-orders/server/src/lib - source code of command
-
Add support use inlineKeyboard in Telegram bot on NestJS
https://github.com/EndyKaufman/kaufman-bot - source code of bot
-
Add schematics for create empty kaufman-bot applications and library in Telegram bot on NestJS
{ "name": "@kaufman-bot/schematics", "description": "The Nx Plugin for Nest that contains executors and generators for allowing your workspace to create KaufmanBot APIs.", "license": "MIT", "author": "EndyKaufman ", "keywords": [ "Monorepo", "Node", "Nest", "CLI", "kaufman-bot", "nx", "schematics", "nests", "telegram" ], "bugs": { "url": "https://github.com/EndyKaufman/kaufman-bot/issues" }, "homepage": "https://github.com/EndyKaufman/kaufman-bot", "repository": { "type": "git", "url": "git+https://github.com/EndyKaufman/kaufman-bot.git" }, "maintainers": [ { "name": "EndyKaufman", "email": "[email protected]" } ], "readme": "README.md", "main": "./index.js", "typings": "./index.d.ts", "schematics": "./generators.json", "dependencies": { "@nrwl/devkit": "13.8.1", "@nrwl/linter": "13.8.1", "@nrwl/node": "13.8.1", "@nrwl/js": "^13.10.2", "@nrwl/jest": "13.8.1", "@nestjs/schematics": "^8.0.0" }, "version": "2.2.2", "i18n": [ { "scope": "schematics", "path": "src/i18n", "strategy": "join" } ] }
-
Publish all the libraries in Telegram bot on NestJS to the npm registry
{ "name": "@kaufman-bot/core-server", "description": "Core commands and tools", "license": "MIT", "author": "EndyKaufman ", "keywords": [ "kaufman-bot", "nx", "nests", "telegram", "core" ], "bugs": { "url": "https://github.com/EndyKaufman/kaufman-bot/issues" }, "homepage": "https://github.com/EndyKaufman/kaufman-bot", "repository": { "type": "git", "url": "git+https://github.com/EndyKaufman/kaufman-bot.git" }, "maintainers": [ { "name": "EndyKaufman", "email": "[email protected]" } ], "readme": "README.md", "i18n": [ { "scope": "core-server", "path": "src/i18n", "strategy": "join" }, { "scope": "core-server-getText", "path": "src/i18n/getText", "strategy": "join" } ], "version": "2.1.0", "peerDependencies": { "@nestjs/common": "^8.0.0", "nestjs-custom-injector": "^1.0.1", "nestjs-translates": "^1.0.3", "class-validator-multi-lang": "^0.130.201", "micromatch": "^4.0.5", "mustache": "^4.2.0", "telegraf": "^4.7.0" } }
-
Append standard-version and create changelog with released features and fixes in Telegram bot on NestJS
{ "name": "kaufman-bot", "version": "1.4.0-alpha.13", "description": "Example of simple bot for telegram", "keywords": [ "telegram", "telegram-bot", "nestjs", "custom-injector" ], "license": "MIT", "author": "EndyKaufman ", "engines": { "node": ">=16", "npm": ">=7" }, "bugs": { "url": "https://github.com/EndyKaufman/kaufman-bot/issues" }, "homepage": "https://github.com/EndyKaufman/kaufman-bot", "repository": { "type": "git", "url": "git+https://github.com/EndyKaufman/kaufman-bot.git" }, "maintainers": [ { "name": "EndyKaufman", "email": "[email protected]" } ], "scripts": { "rucken": "rucken", "nx": "nx", "start": "echo $GOOGLE_CREDENTIALS | base64 --decode > ./$GOOGLE_APPLICATION_CREDENTIALS && node dist/apps/server/main.js", "build": "npm run nx -- build server", "test": "nx test", "serve": "npm run nx -- serve server", "serve:local": "export $(xargs < ./.env.local) > /dev/null 2>&1 && npm run serve", "prepare": "husky install", "lint": "npm run tsc:lint && nx workspace-lint && npm run nx -- run-many --target=lint --all", "lint:fix": "npm run tsc:lint && nx workspace-lint --fix && nx run-many --target=lint --all --fix && nx format:write --all", "tsc:lint": "tsc --noEmit -p tsconfig.base.json", "generate": "npm run prisma:generate && npm run rucken -- prepare --locales=en,ru && npm run lint:fix", "docker:dev:down": "export $(xargs < ./.env.local) > /dev/null 2>&1 && ./docker/dev/docker-compose-down.sh", "docker:dev:restart": "npm run docker:dev:down && npm run docker:dev:up", "docker:dev:up": "export $(xargs < ./.env.local) > /dev/null 2>&1 && ./docker/dev/docker-compose-up.sh", "docker:dev:clean-down": "export $(xargs < ./.env.local) > /dev/null 2>&1 && ./docker/dev/docker-compose-clean-down.sh", "docker:dev:clean-restart": "npm run docker:dev:clean-down && npm run docker:dev:up", "docker:prod:build-sources": "npm run build", "docker:prod:down": "export $(xargs < ./.env.local) > /dev/null 2>&1 && ./docker/prod/docker-compose-down.sh", "docker:prod:restart": "npm run docker:prod:down && npm run docker:prod:up", "docker:prod:up": "export $(xargs < ./.env.local) > /dev/null 2>&1 && npm run docker:prod:build-sources && ./docker/prod/docker-compose-up.sh", "docker:prod:clean-down": "export $(xargs < ./.env.local) > /dev/null 2>&1 && ./docker/prod/docker-compose-clean-down.sh", "docker:prod:clean-restart": "npm run docker:prod:clean-down && npm run docker:prod:up", "flyway": "flyway -c .flyway.js", "migrate": "npm run flyway -- migrate", "migrate:local": "export $(xargs < ./.env.local) > /dev/null 2>&1 && export DATABASE_URL=$SERVER_POSTGRES_URL && npm run migrate", "prisma": "prisma", "prisma:pull": "npm run -- prisma db pull && npm run prisma:generate", "prisma:pull:local": "export $(xargs < ./.env.local) > /dev/null 2>&1 && export DATABASE_URL=$SERVER_POSTGRES_URL && npm run -- prisma db pull && npm run prisma:generate", "prisma:generate": "npm run -- prisma generate", "postinstall": "npm run generate", "app:build": "npm run generate && npm run build && npm run app:build-changelog", "app:release": "standard-version", "app:create-release": "npm run app:build && npm run app:release && git push --follow-tags origin feature/73", "app:build-changelog": "./node_modules/.bin/cp-cli ./CHANGELOG.md ./dist/libs/kaufman-bot/CHANGELOG.md" }, "private": true, "devDependencies": { "@nestjs/schematics": "^8.0.0", "@nestjs/testing": "^8.0.0", "@nrwl/cli": "13.8.1", "@nrwl/eslint-plugin-nx": "13.8.1", "@nrwl/jest": "13.8.1", "@nrwl/linter": "13.8.1", "@nrwl/nest": "13.8.1", "@nrwl/node": "13.8.1", "@nrwl/tao": "13.8.1", "@nrwl/workspace": "13.8.1", "@types/jest": "27.0.2", "@types/micromatch": "^4.0.2", "@types/mustache": "^4.1.2", "@types/node": "14.14.33", "@types/uuid": "^8.3.4", "@typescript-eslint/eslint-plugin": "~5.10.0", "@typescript-eslint/parser": "~5.10.0", "cp-cli": "^2.0.0", "eslint": "~8.7.0", "eslint-config-prettier": "8.1.0", "husky": "^7.0.4", "jest": "27.2.3", "lint-staged": "^12.3.3", "node-flywaydb": "^3.0.7", "prettier": "2.5.1", "prisma": "^3.11.1", "rucken": "^3.5.3", "standard-version": "^9.3.2", "ts-jest": "27.0.5", "typescript": "~4.3.5" }, "dependencies": { "@google-cloud/dialogflow": "^4.7.0", "@nestjs/common": "^8.0.0", "@nestjs/core": "^8.0.0", "@nestjs/platform-express": "^8.0.0", "@prisma/client": "^3.11.1", "axios": "^0.26.0", "charset": "^1.0.1", "cheerio": "^1.0.0-rc.10", "class-transformer": "^0.5.1", "class-transformer-global-storage": "^0.4.1-1", "class-validator-multi-lang": "^0.130.201", "connection-string": "^4.3.5", "encoding": "^0.1.13", "env-var": "^7.1.1", "html-to-text": "^8.1.0", "jschardet": "^3.0.0", "micromatch": "^4.0.5", "mustache": "^4.2.0", "nestjs-custom-injector": "^1.0.1", "nestjs-telegraf": "^2.4.0", "nestjs-translates": "^1.0.3", "pg": "^8.7.3", "pg-promise": "^10.11.1", "reflect-metadata": "^0.1.13", "rxjs": "^7.0.0", "telegraf": "^4.7.0", "tslib": "^2.0.0", "uuid": "^8.3.2" }, "lint-staged": { "*.{js,ts}": "eslint --fix", "*.{js,ts,css,scss,md,yml,yaml,prisma}": "prettier --ignore-unknown --write" } }
-
Hide system commands from users and add bot description to Telegram bot on NestJS
In next post I append semver and create changelog with released features and fixes, and maybe I close issue https://github.com/EndyKaufman/kaufman-bot/issues/73...
-
Create a database in dokku infra and set up run flyway migration from github runner
root@vps17825:~/actions-runner# ./config.sh --url https://github.com/EndyKaufman/kaufman-bot --token TOKEN_FOR_RUNNER -------------------------------------------------------------------------------- | ____ _ _ _ _ _ _ _ _ | | / ___(_) |_| | | |_ _| |__ / \ ___| |_(_) ___ _ __ ___ | | | | _| | __| |_| | | | | '_ \ / _ \ / __| __| |/ _ \| '_ \/ __| | | | |_| | | |_| _ | |_| | |_) | / ___ \ (__| |_| | (_) | | | \__ \ | | \____|_|\__|_| |_|\__,_|_.__/ /_/ \_\___|\__|_|\___/|_| |_|___/ | | | | Self-hosted runner registration | | | -------------------------------------------------------------------------------- # Authentication √ Connected to GitHub # Runner Registration Enter the name of the runner group to add this runner to: [press Enter for Default] Enter the name of runner: [press Enter for vps17825] develop-vps This runner will have the following labels: 'self-hosted', 'Linux', 'X64' Enter any additional labels (ex. label-1,label-2): [press Enter to skip] develop-vps √ Runner successfully added √ Runner connection is good # Runner settings Enter name of work folder: [press Enter for _work] √ Settings Saved. root@vps17825:~/actions-runner#
-
Add dev and prod infrastructure on docker compose for NestJS application
https://github.com/EndyKaufman/kaufman-bot - source code of bot
- Use nestjs-custom-injector to create dynamic handlers in NestJS when creating a telegram bot
- Add new dictionaries with translations to NestJS application using poedit.net
telegraf
-
Is there any telegram bot to forward any message given to an special channel?
Simply use telegraf : https://telegraf.js.org/
-
I own an advertisement group and would like two things.. a bot that prevents people from using advertisements more than a thousand characters... and a bot for English only groups. anyone?
this is pretty simple , you can create a bot yourself which simply listens for every message checks length and if exceeded deletes the message (bot must be added as admin ingroup and shows have read permission in bot settings) , I would suggest you to use https://github.com/telegraf/telegraf for the code,
-
How to create a Telegram Bot using NodeJS
In this project we will use the Telegraf library to create the bot. To install it, you can use the npm install command.
-
🥳 KaufmanBot v 3.2.0 🥳
Changed the main library for working with telegram from https://telegraf.js.org to https://grammy.dev, updated the source code for better work with typings
-
Telegram Bots for Begginers
Of course, it's good to write API requests yourself. It reduces the dependency on third-party libraries and allows you to control the behavior of the code more. But when there are more such methods than twenty, it already increases the size of the code. It becomes difficult to manage all the logic. This is where third-party libraries(frameworks) come to the rescue. After choosing a language, you can consider the options of different libraries from the list here, on the official Telegram page. For JavaScript I recommend using node-telegram-bot-api and telegraf. For Python you can take pyTelegramBotAPI and aiogram(highly recommended).
-
Show HN: We are trying to (finally) get tail-calls into the WebAssembly standard
It’s an expressive type system, but ime it allows developers to go crazy on type interdependencies and general entanglement, so you can’t just go to the “header” and quickly figure out what your method or a return value really is, despite TS has structural typing.
E.g. look at this: https://github.com/telegraf/telegraf/blob/v4/src/telegram-ty...
-
Newbie Help: Telegraf telegram bot with async/fetch, media send and async management
The bot uses telegraf framework, which is an overlay for the original telegram api, which is a nightmare in code form.
- Desarrollando un Bot para Telegram
-
Telegram celebrates 700M Users and introduces Telegram Premium
Honestly I found their API one of the worst ones I've ever used. The documentation is lacking, and they have some unintuitive quirks like posting messages with http GET requests and randomly concatenating strings in params (botNAMEOFBOT anyone?).
I didn't enjoy using it without a third party library [1].
Sending a single message is easy, but using the rest of telegram's features is "meh" when using pure API calls.
If you want to see a well designed API, you should take a look at FTX or Stripe. I love those two :)
[1] https://telegraf.js.org
-
Telegraf VS Node-Telegram-Bot-API
Today the most popular ways to build telegram chat bots in node js are Telegraf and Node-Telegram-Bot-Api. The second is more popular by weekly downloads(250.000), but in this post I don't want to equalize them by stats. I want to talk about my experience with them, in which cases I used them and show you really nice guide, especially for Telegraf, cause they haven't readable docs for newbies or people who don't use typescript.
What are some alternatives?
telegram-bot-starter - Telegram bot starter based on grammY
node-telegram-bot-api - Telegram Bot API for NodeJS
schematics-example
node-telegram-bot-boilerplate - 🤖 Create telegram bot with this friendly nodejs boilerplate
TediCross - Bot which bridges Telegram chats with Discord channels
pyTelegramBotAPI - Python Telegram bot api.
raspberry-instock-check - 🔔 Get an alert on Telegram when there are Raspberry in stock ready to buy
Express - Fast, unopinionated, minimalist web framework for node.
telegram-bot-api - Telegram Bot API server
aiogram - aiogram is a modern and fully asynchronous framework for Telegram Bot API written in Python using asyncio
ps5-stock-alert - Be smart about hunting for a PS5
wishBasket-bot - This bot helps you to create and share wish-lists, now no one will fail with a gift 🧺