• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-TelegramBot : Control MM on Telegram

Scheduled Pinned Locked Moved System
47 Posts 20 Posters 17.6k Views 21 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Offline
    A Former User
    last edited by Aug 25, 2017, 6:34 PM

    MMM-TelegramBot

    TelegramBot module for MagicMirror

    Screenshot

    0_1503685975119_IMG_3757.PNG
    0_1503685939141_IMG_3753.PNG

    Feature

    • You can remote-control your MagicMirror and modules within Telegram.
    • The Bot is implemented in this module thus you don’t need to manage antoher daemon.
    • Other module developers can add their commands easily. (See the Wiki : https://github.com/eouia/MMM-TelegramBot/wiki )

    Download:

    [card:eouia/MMM-TelegramBot]

    1 Reply Last reply Reply Quote 3
    • ? Offline
      A Former User
      last edited by A Former User Aug 25, 2017, 6:43 PM Aug 25, 2017, 6:37 PM

      How can I resize screenshot… :(

      M 1 Reply Last reply Aug 26, 2017, 1:01 AM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @Guest
        last edited by Aug 26, 2017, 1:01 AM

        @Sean said in MMM-TelegramBot : Control MM on Telegram:

        How can I resize screenshot… :(

        Don’t! It looks great! :^)

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 0
        • K Offline
          krisalexroberts
          last edited by Aug 26, 2017, 8:12 AM

          I think this is one of the best modules I’ve seen in a long time - now… how do we get developers to add support?

          ? 1 Reply Last reply Aug 27, 2017, 8:04 AM Reply Quote 0
          • ? Offline
            A Former User @krisalexroberts
            last edited by Aug 27, 2017, 8:04 AM

            @krisalexroberts By pledging? :)

            1 Reply Last reply Reply Quote 0
            • M Offline
              michael5r Module Developer
              last edited by Dec 16, 2018, 4:41 PM

              This is a great module - I’m adding Telegram support to all my modules shortly :thumbs_up:

              1 Reply Last reply Reply Quote 0
              • L Offline
                lolobyte
                last edited by lolobyte Jan 14, 2019, 11:16 PM Jan 14, 2019, 11:14 PM

                Hello,

                can somebody help me with this module?

                here is my config.js entry including the MMM-Tools. Tools are running very well.

                               {
                                        module: 'MMM-Tools',
                                        position: 'bottom_right',
                                        config: {
                                                device : "RPI", // "RPI" is also available
                                                refresh_interval_ms : 10000,
                                                warning_interval_ms : 1000 * 60 * 5,
                                                enable_warning : true,
                                                warning : {
                                                        CPU_TEMPERATURE : 65,
                                                        GPU_TEMPERATURE : 65,
                                                        CPU_USAGE : 75,
                                                        STORAGE_USED_PERCENT : 80,
                                                        MEMORY_USED_PERCENT : 80
                                                        },
                                                warning_text: {
                                                        CPU_TEMPERATURE : "The temperature of CPU is over %VAL%",
                                                        GPU_TEMPERATURE : "The temperature of GPU is over %VAL%",
                                                        CPU_USAGE : "The usage of CPU is over %VAL%",
                                                        STORAGE_USED_PERCENT : "The storage is used over %VAL% percent",
                                                        MEMORY_USED_PERCENT : "The memory is used over %VAL% percent",
                                                        },
                                                },
                                },
                                {
                                        module: 'MMM-TelegramBot',
                                        config: {
                                                telegramAPIKey : 'xxxxxxxxxxxxxxxmy_API_keyxxxxxxxxxxxxxxxxxxxx',
                                                allowedUser : ['my_Telegram_username without @'], // This is NOT the username of bot.
                                                },
                                },
                
                

                The logs of MM2!

                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   chat_id: undefined,
                0|mm  |   text: 'Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.' }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   chat_id: undefined,
                0|mm  |   text: 'Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.' }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","text":"`ERROR`\\n```\\nBad Request: chat_id is empty\\n```\\nat\\n```\\n{\\"type\\":\\"TEXT\\",\\"chat_id\\":null,\\"text\\":\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\"}\\n```","option":{"disable_notification":false,"parse_mode":"Markdown","chat_id":"","text":"`ERROR`\\n```\\nBad Request: chat_id is empty\\n```\\nat\\n```\\n{\\"type\\":\\"TEXT\\",\\"chat_id\\":null,\\"text\\":\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\"}\\n```"}}\n```',
                0|mm  |   option:
                0|mm  |    { disable_notification: false,
                0|mm  |      parse_mode: 'Markdown',
                0|mm  |      chat_id: '',
                0|mm  |      text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","text":"`ERROR`\\n```\\nBad Request: chat_id is empty\\n```\\nat\\n```\\n{\\"type\\":\\"TEXT\\",\\"chat_id\\":null,\\"text\\":\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\"}\\n```","option":{"disable_notification":false,"parse_mode":"Markdown","chat_id":"","text":"`ERROR`\\n```\\nBad Request: chat_id is empty\\n```\\nat\\n```\\n{\\"type\\":\\"TEXT\\",\\"chat_id\\":null,\\"text\\":\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\"}\\n```"}}\n```' } }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   chat_id: undefined,
                0|mm  |   text: 'Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.' }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","chat_id":null,"text":"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren."}\n```',
                0|mm  |   option:
                0|mm  |    { disable_notification: false,
                0|mm  |      parse_mode: 'Markdown',
                0|mm  |      chat_id: '',
                0|mm  |      text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","chat_id":null,"text":"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren."}\n```' } }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   chat_id: undefined,
                0|mm  |   text: 'Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.' }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","text":"`ERROR`\\n```\\nBad Request: chat_id is empty\\n```\\nat\\n```\\n{\\"type\\":\\"TEXT\\",\\"text\\":\\"`ERROR`\\\\n```\\\\nBad Request: chat_id is empty\\\\n```\\\\nat\\\\n```\\\\n{\\\\\\"type\\\\\\":\\\\\\"TEXT\\\\\\",\\\\\\"chat_id\\\\\\":null,\\\\\\"text\\\\\\":\\\\\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\\\\\"}\\\\n```\\",\\"option\\":{\\"disable_notification\\":false,\\"parse_mode\\":\\"Markdown\\",\\"chat_id\\":\\"\\",\\"text\\":\\"`ERROR`\\\\n```\\\\nBad Request: chat_id is empty\\\\n```\\\\nat\\\\n```\\\\n{\\\\\\"type\\\\\\":\\\\\\"TEXT\\\\\\",\\\\\\"chat_id\\\\\\":null,\\\\\\"text\\\\\\":\\\\\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\\\\\"}\\\\n```\\"}}\\n```","option":{"disable_notification":false,"parse_mode":"Markdown","chat_id":"","text":"`ERROR`\\n```\\nBad Request: chat_id is empty\\n```\\nat\\n```\\n{\\"type\\":\\"TEXT\\",\\"text\\":\\"`ERROR`\\\\n```\\\\nBad Request: chat_id is empty\\\\n```\\\\nat\\\\n```\\\\n{\\\\\\"type\\\\\\":\\\\\\"TEXT\\\\\\",\\\\\\"chat_id\\\\\\":null,\\\\\\"text\\\\\\":\\\\\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\\\\\"}\\\\n```\\",\\"option\\":{\\"disable_notification\\":false,\\"parse_mode\\":\\"Markdown\\",\\"chat_id\\":\\"\\",\\"text\\":\\"`ERROR`\\\\n```\\\\nBad Request: chat_id is empty\\\\n```\\\\nat\\\\n```\\\\n{\\\\\\"type\\\\\\":\\\\\\"TEXT\\\\\\",\\\\\\"chat_id\\\\\\":null,\\\\\\"text\\\\\\":\\\\\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\\\\\"}\\\\n```\\"}}\\n```"}}\n```',
                0|mm  |   option:
                0|mm  |    { disable_notification: false,
                0|mm  |      parse_mode: 'Markdown',
                0|mm  |      chat_id: '',
                0|mm  |      text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","text":"`ERROR`\\n```\\nBad Request: chat_id is empty\\n```\\nat\\n```\\n{\\"type\\":\\"TEXT\\",\\"text\\":\\"`ERROR`\\\\n```\\\\nBad Request: chat_id is empty\\\\n```\\\\nat\\\\n```\\\\n{\\\\\\"type\\\\\\":\\\\\\"TEXT\\\\\\",\\\\\\"chat_id\\\\\\":null,\\\\\\"text\\\\\\":\\\\\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\\\\\"}\\\\n```\\",\\"option\\":{\\"disable_notification\\":false,\\"parse_mode\\":\\"Markdown\\",\\"chat_id\\":\\"\\",\\"text\\":\\"`ERROR`\\\\n```\\\\nBad Request: chat_id is empty\\\\n```\\\\nat\\\\n```\\\\n{\\\\\\"type\\\\\\":\\\\\\"TEXT\\\\\\",\\\\\\"chat_id\\\\\\":null,\\\\\\"text\\\\\\":\\\\\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\\\\\"}\\\\n```\\"}}\\n```","option":{"disable_notification":false,"parse_mode":"Markdown","chat_id":"","text":"`ERROR`\\n```\\nBad Request: chat_id is empty\\n```\\nat\\n```\\n{\\"type\\":\\"TEXT\\",\\"text\\":\\"`ERROR`\\\\n```\\\\nBad Request: chat_id is empty\\\\n```\\\\nat\\\\n```\\\\n{\\\\\\"type\\\\\\":\\\\\\"TEXT\\\\\\",\\\\\\"chat_id\\\\\\":null,\\\\\\"text\\\\\\":\\\\\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\\\\\"}\\\\n```\\",\\"option\\":{\\"disable_notification\\":false,\\"parse_mode\\":\\"Markdown\\",\\"chat_id\\":\\"\\",\\"text\\":\\"`ERROR`\\\\n```\\\\nBad Request: chat_id is empty\\\\n```\\\\nat\\\\n```\\\\n{\\\\\\"type\\\\\\":\\\\\\"TEXT\\\\\\",\\\\\\"chat_id\\\\\\":null,\\\\\\"text\\\\\\":\\\\\\"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.\\\\\\"}\\\\n```\\"}}\\n```"}}\n```' } }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","text":"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren."}\n```',
                0|mm  |   option:
                0|mm  |    { disable_notification: false,
                0|mm  |      parse_mode: 'Markdown',
                0|mm  |      chat_id: '',
                0|mm  |      text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","text":"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren."}\n```' } }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   chat_id: undefined,
                0|mm  |   text: 'Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.' }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","text":"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren."}\n```',
                0|mm  |   option:
                0|mm  |    { disable_notification: false,
                0|mm  |      parse_mode: 'Markdown',
                0|mm  |      chat_id: '',
                0|mm  |      text: '`ERROR`\n```\nBad Request: chat_id is empty\n```\nat\n```\n{"type":"TEXT","text":"Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren."}\n```' } }
                0|mm  | [TELBOT] Error: ETELEGRAM
                0|mm  | { ok: false,
                0|mm  |   error_code: 400,
                0|mm  |   description: 'Bad Request: chat_id is empty' }
                0|mm  | ERR_RESPONSE { type: 'TEXT',
                0|mm  |   chat_id: undefined,
                0|mm  |   text: 'Ein Fehler ist aufgetreten. Bitte den Admin kontaktieren.' }
                ^C
                
                

                and it’s never ending.

                What is wrong?

                ? 1 Reply Last reply Jan 14, 2019, 11:22 PM Reply Quote 0
                • ? Offline
                  A Former User @lolobyte
                  last edited by Jan 14, 2019, 11:22 PM

                  @lolobyte
                  Your telegrambot config is not completed. Read instructions of module on github

                  1 Reply Last reply Reply Quote 0
                  • L Offline
                    lolobyte
                    last edited by Jan 14, 2019, 11:38 PM

                    Hi, i know.

                    But ongoing with step 4 is not possible because Telegranm don’t know the /commands or the /mychatid command!

                    This is the reson why i don’t have actually the adminChatId.

                    ? 1 Reply Last reply Jan 15, 2019, 7:29 AM Reply Quote 0
                    • ? Offline
                      A Former User @lolobyte
                      last edited by A Former User Jan 15, 2019, 7:29 AM Jan 15, 2019, 7:29 AM

                      @lolobyte
                      To make things simple, Disable other modules except MMM-TelegramBot.
                      Then execute MM again. Show me which logs are displayed.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 1 / 5
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy