{"id":23652259,"url":"https://github.com/desnlee/telegram-forward-bot","last_synced_at":"2025-09-01T02:32:15.663Z","repository":{"id":144951494,"uuid":"439734899","full_name":"DesnLee/Telegram-Forward-Bot","owner":"DesnLee","description":"A telegram PM bot based on NTBA built with Node.js .   基于NTBA使用node构建的电报私聊机器人。    ","archived":false,"fork":false,"pushed_at":"2022-02-18T14:08:15.000Z","size":821,"stargazers_count":12,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T08:45:34.909Z","etag":null,"topics":["telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DesnLee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-18T23:24:56.000Z","updated_at":"2024-01-25T09:04:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6a15592-e056-41b7-bf8d-4fc622dcfe5f","html_url":"https://github.com/DesnLee/Telegram-Forward-Bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DesnLee/Telegram-Forward-Bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesnLee%2FTelegram-Forward-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesnLee%2FTelegram-Forward-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesnLee%2FTelegram-Forward-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesnLee%2FTelegram-Forward-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DesnLee","download_url":"https://codeload.github.com/DesnLee/Telegram-Forward-Bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DesnLee%2FTelegram-Forward-Bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273065039,"owners_count":25039274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-01T02:00:09.058Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["telegram","telegram-bot"],"created_at":"2024-12-28T16:52:54.797Z","updated_at":"2025-09-01T02:32:15.653Z","avatar_url":"https://github.com/DesnLee.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eTelegram-Forward-Bot\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\nTelegram-Forward-Bot built with Node.js based on [Node-Telegram-Bot-API](https://github.com/yagop/node-telegram-bot-api)\n\nThis project relies on [Node.js](https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions) and [MongoDB](https://docs.mongodb.com/manual/administration/install-community/), so if you don't have both of these installed, please first install.\n\n\u003c/div\u003e\n\n# Start with single file\n\nIf you just want to use this bot, you can choose to download 2 runtime files to\nuse it.\n\nThe main file below is built with [vercel/ncc](https://github.com/vercel/ncc)\nand does not require any other dependencies to be installed. Of course, you still need to install [Node.js](https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions)\nand [MongoDB](https://docs.mongodb.com/manual/administration/install-community/).\n\n- configuration file: https://raw.githubusercontent.com/DesnLee/Telegram-Forward-Bot/master/dist/env/config.yaml\n- main file: https://raw.githubusercontent.com/DesnLee/Telegram-Forward-Bot/master/dist/index.js\n\n\u003e **Please Note:** \n\u003e \n\u003e the configuration file must be in a directory named \"env\" and place the env directory at the same level as the main file. \n\u003e \n\u003e After download, you should complete the configuration file.\n\n# Start with build\n```shell\ngit clone https://github.com/DesnLee/Telegram-Forward-Bot.git \u0026\u0026 cd Telegram-Forward-Bot\n```\n\n## Install Dependencies\n\n```sh\n yarn install    # npm install\n```\n\n## Config\n\nin ./env/config.yaml\n\n```yaml\n# Please keep the following double quotes\n\n# Your mongodb address like 'mongodb://user:pwd@127.0.0.1:27017/ForwardBotDB'\ndatabase_url : \"\"\n\n# The bot token that you get from BotFather\nbot_token :    \"\"\n\n# Your telegram number ID, no quotes like 123456789\nme :\n\n# Need notification, true / false\nnotice :       true\n\n# Auto-reply message when the user sends the following commands, can use Markdown format\nmsg :\n  start : \"*Hello，welcome!*\\n\\nThis is my bot, and can forwards your messages to me\"\n\n# Don't change the following options!!\nparse :\n  html : { parse_mode : 'HTML' }\n  mark : { parse_mode : 'Markdown' }\n  mark2 : { parse_mode : 'MarkdownV2' }\n```\n\n## build\n\n```shell\nyarn build    # npm run build\n```\n\n## run\n\n```shell\ncd dist \u0026\u0026 node index.js\n```\n\n## Usage\n\n- You can reply to the forwarded message to reply to the original message, currently supports text, stickers, photos.\n- Reply  `!ban` or `!unban` to a forwarded message will add/remove someone to the blacklist, and when someone is blacklisted, the bot will not forward his/her messages to you.\n- Reply  `!info` to a forwarded message will show you the userinfo whose sent the message.\n- Reply `!del` or `!del all` to a message you sent earlier and the message will\n  be deleted from the chat history between the bot and you and the sender of the\n  message.\n- \n## Use the PM2 daemon\n\n### install PM2\n\n```shell\nnpm install pm2 -g\n```\n\n### use PM2\n\n```shell\n# start\npm2 start /Absolute/Path/To/index.js\n\n# save status\npm2 save\n\n# Boot up\npm2 startup\n```\n\n## License\n\n**The MIT License (MIT)**\n\nCopyright © 2021 Alex Lee\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesnlee%2Ftelegram-forward-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesnlee%2Ftelegram-forward-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesnlee%2Ftelegram-forward-bot/lists"}