{"id":13830240,"url":"https://github.com/slametps/MMM-TelegramBot","last_synced_at":"2025-07-09T11:32:19.987Z","repository":{"id":136058344,"uuid":"107149093","full_name":"slametps/MMM-TelegramBot","owner":"slametps","description":"TelegramBot module for remote-controlling MagicMirror","archived":false,"fork":false,"pushed_at":"2017-10-24T07:44:11.000Z","size":26,"stargazers_count":2,"open_issues_count":0,"forks_count":13,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-11-20T12:09:38.841Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slametps.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-10-16T15:47:20.000Z","updated_at":"2024-05-07T20:56:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"77c01ddc-2e2d-49b8-824f-2ed1f223da8a","html_url":"https://github.com/slametps/MMM-TelegramBot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/slametps/MMM-TelegramBot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slametps%2FMMM-TelegramBot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slametps%2FMMM-TelegramBot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slametps%2FMMM-TelegramBot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slametps%2FMMM-TelegramBot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slametps","download_url":"https://codeload.github.com/slametps/MMM-TelegramBot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slametps%2FMMM-TelegramBot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264450556,"owners_count":23610194,"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":[],"created_at":"2024-08-04T10:00:57.680Z","updated_at":"2025-07-09T11:32:19.704Z","avatar_url":"https://github.com/slametps.png","language":"JavaScript","funding_links":[],"categories":["Home Automation \u0026 Notifications"],"sub_categories":[],"readme":"# MMM-TelegramBot\nTelegramBot module for MagicMirror\n\n## Feature\n- You can remote-control your `MagicMirror` and modules within `Telegram`.\n- The Bot is implemented in this module thus you don't need to manage antoher daemon.\n- Other module developers can add their commands easily. (See the Wiki : https://github.com/eouia/MMM-TelegramBot/wiki )\n\n\n## Installation\n### 1) Create Telegram Bot\n**Ref : https://core.telegram.org/bots#6-botfather**\n1. Open your browser in Desktop PC(or your mirror or your phone, anywhere) and Navigate to https://telegram.me/botfather\n2. Click `Send Message` button, then your telegram will be opened in your phone or your PC which `Telegram` is already installed on. Meet `BotFather`.\n3. Command `/newbot`, give a `name` to the bot created, give an `username`. `username` should end with `bot`. (e.g. `MyMagicMirrorBot` or `mystupidslave-bot`... )\n4. After created, you can get API Token. It looks like `110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw`. Remember that.\n5. Read messages from `BotFather`. You can find your bot and change chat room of your Bot. Type anything, but your bot will not react yet.\n\n### 2) Install Module\n1. In your mirror, open terminal and execute below;\n```\ncd ~/MagicMirror/modules\ngit clone https://github.com/eouia/MMM-TelegramBot.git\ncd MMM-TelegramBot\nnpm install\n```\n\n### 3) Configuration (Pre-use)\n1. Open `config.js` of `MagicMirror`, add these;\n```\n{\n  module: 'MMM-TelegramBot',\n  config: {\n    telegramAPIKey : '\u003cyour Telegram API Token\u003e',\n    allowedUser : ['\u003cyour Telegram username without @\u003e'], // This is NOT the username of bot.\n  }\n},\n\n```\n2. restart your `MagicMirror`.\n\n### 4) Back to your Bot and test\n1. Back to the chat room with your Bot in Telegram, try `/help` or `/commands`. Your bot will react!\n2. Now,try `/mychatid`. This command will show the id of this chat room. The `chat id` looks like `12345678`. Remember that. We will use this id for admin.\n\n### 5) Register admin Chat id\n1. Open `config.js` again.\n```\n{\n  module: 'MMM-TelegramBot',\n  config: {\n    telegramAPIKey : '\u003cyour Telegram API Token\u003e',\n    allowedUser : ['\u003cyour Telegram username without @\u003e'],\n    adminChatId : \u003cyour admin chat id\u003e,\n  }\n},\n\n```\n2. Restart your `MagicMirror`.\n3. You can get welcome message in your admin chat room. Now you can use Bot!\n\n## More Information\nSee the [Wiki](https://github.com/eouia/MMM-TelegramBot/wiki)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslametps%2FMMM-TelegramBot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslametps%2FMMM-TelegramBot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslametps%2FMMM-TelegramBot/lists"}