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-Telegram

    Scheduled Pinned Locked Moved Troubleshooting
    5 Posts 2 Posters 964 Views 2 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.
    • J Offline
      James Farmer
      last edited by James Farmer

      @Bugsounet
      Hello,

      I’m having trouble this module to work,

      Instruction says

      Command /newbot, give a name to the bot created, give an username. username should end with bot. (e.g. MyMagicMirrorBot or mystupidslave-bot… )

      so i use example johnsmith for name and johnsmithmmbot for username.

                     {
                              disabled: false,
                              module: 'MMM-TelegramBot',
                              position: 'top_center',
                              config: {
                                      verbose: true,
                                      telegramAPIKey : 'mykey',
                                      allowedUser : ['johnsmith'], // This is NOT the username of bot.
                                      }
                      },
      

      but i get error :

      [2020-11-02 13:21:06.815] [LOG] [TELBOT] ERROR {
      ok: false,
      error_code: 400,
      description: ‘Bad Request: chat_id is empty’

      I am not sure allowedUser is correct ?

      When i goto my Telegram bot, and type /mychatid, i get “You are not allowed to command me, ask admin”

      Thankyou

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User
        last edited by

        @James-Farmer said in MMM-Telegram:

        allowedUser : [‘johnsmith’], // This is NOT the username of bot.

        Hi, i think you have make a mismake in your username.
        i think johnsmith is your pseudonym
        allowedUser is the real Telegram Username (your username start with an @)

        you can see your user name in your profil of Telegram application
        example: if you username is @johnsmith14586 so allowedUser: ['johnsmith14586'],

        1 Reply Last reply Reply Quote 0
        • J Offline
          James Farmer
          last edited by

          @Bugsounet

          Hi, thanksyou for coming back to me, Sorry i couldn’t find Telegram username.

          So i look here

          telegram.png

          I cant see any other username with @ only username of bot ?

          sorry if im being stupid.

          Thanks

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User
            last edited by

            3 lines to the left of search > parameters > edit profils

            and you will see your username with @

            1 Reply Last reply Reply Quote 1
            • J Offline
              James Farmer
              last edited by

              @Bugsounet I found it…!! and it is all now working

              Thankyou for the help.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • 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