{"id":20442485,"url":"https://github.com/plibither8/mhr","last_synced_at":"2025-04-12T23:35:21.194Z","repository":{"id":107607881,"uuid":"337444778","full_name":"plibither8/mhr","owner":"plibither8","description":"🔗 A simple URL shortener, controlled via a Telegram bot","archived":false,"fork":false,"pushed_at":"2022-08-26T09:11:48.000Z","size":339,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T23:35:10.898Z","etag":null,"topics":["lowdb","telegram","telegram-bot","url-shortener"],"latest_commit_sha":null,"homepage":"https://mhr.cx","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/plibither8.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}},"created_at":"2021-02-09T15:14:15.000Z","updated_at":"2023-12-09T14:34:21.000Z","dependencies_parsed_at":"2023-03-09T08:30:47.639Z","dependency_job_id":null,"html_url":"https://github.com/plibither8/mhr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fmhr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fmhr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fmhr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/plibither8%2Fmhr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/plibither8","download_url":"https://codeload.github.com/plibither8/mhr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647257,"owners_count":21139081,"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","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":["lowdb","telegram","telegram-bot","url-shortener"],"created_at":"2024-11-15T09:40:40.174Z","updated_at":"2025-04-12T23:35:21.190Z","avatar_url":"https://github.com/plibither8.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mhr\n\n\u003e 🔗 A simple URL shortener, controlled via a Telegram bot.\n\nmhr = mihir, but shortened (\\*_\\*).\n\n## Setup\n\n### Create a Telegram Bot\n\nYou would first need to create a Telegram bot and get the bot's access token. Fortunately, it's pretty simple and easy: you can create one with [@BotFather](https://t.me/BotFather).\n\nMake sure to take note of the token received! It should look like this: `3141592653:KAS_JFD04YEGFxbQV4FTPetQpZefUhr37HC`.\n\n### Get your Telegram Chat ID\n\nThe `chat_id` identifies you on Telegram. You can get it by `/start`ing a chat with [@RawDataBot](https://t.me/RawDataBot) or [some other ways](https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id). It can be a positive or negative number.\n\n### Setup the Server\n\n1. Clone this repo: `git clone https://github.com/plibither8/mhr`\n2. Install dependencies: `npm install`\n3. Create `config.ts` file from [`config.example.ts`](config.example.ts) file: `cp config.example.ts config.ts`\n4. Edit the `config.ts` file with **your values**\n5. Start up the server and use the bot: `npm start`\n6. Party hard.\n\n## Usage\n\nOpen the chat with your bot and `/start` it.\n\nInteract with your Telegram bot to create, read, update or delete the aliases. Following are the available commands:\n\n| Command       | Description                                           |\n|---------------|-------------------------------------------------------|\n| **`/help`**   | Show list of commands and help information.           |\n| **`/cancel`** | Cancel the ongoing operation.                         |\n| **`/urls`**   | Show list of shortened URLs along with their aliases. |\n| **`/new`**    | Create a new alias for a URL.                         |\n| **`/update`** | Update the target URL for an existing alias.          |\n| **`/delete`** | Delete an alias and redirection.                      |\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplibither8%2Fmhr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplibither8%2Fmhr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplibither8%2Fmhr/lists"}