Bugsounet Coding

    • Register
    • Login
    • Search
    This Forum is now reserved to registred users!

    Solved Keep messages up

    MMM-TelegramBot
    2
    7
    70
    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.
    • A
      aunrea last edited by

      Is there a way to keep the message up until a new message is sent. I need the message to stay visible for a longer time than it does now.

      1 Reply Last reply Reply Quote 0
      • bugsounet
        bugsounet Main Coder last edited by bugsounet

        it’s explain in wiki …

            {
              disabled: false,
              module: "MMM-TelegramBot",
              position: "top_right", // needed for telecast !
              config: {
                telegramAPIKey : "your_api_key",
                allowedUser : ['Your_username'], // This is NOT the username of bot.
                adminChatId : <your_Chat ID>,
                telecast: <your_Chat ID>, // <-- same like adminChatId field
                telecastLimit: 3, <-- nb max of message displayed on the screen
                telecastLife: 0, <-- nb of ms to display the message before clean it (0 to keep on the screen)
                //... and continue config from wiki of needed
              }
            },
        

        to display a message on the screen. open a dialogue with it and directly tape a message OR use /telecast your message

        Note: It can be a audio message, image, emoji, …

        1 Reply Last reply Reply Quote 0
        • bugsounet
          bugsounet Main Coder last edited by

          Not Tested, but i think you can try this fetaure in config:

          telecastLife: 0,

          Note: the value 0 is unlimited time

          1 Reply Last reply Reply Quote 0
          • A
            aunrea last edited by

            Which command are you suppose to use to show messages on the mirror? I have been using /alert and it always disappears after a while, but it also hides all other modules. I tried /notification and /telecast but it doesn’t do anything. I don’t get anything that looks like the screenshot in the module description.

            1 Reply Last reply Reply Quote 0
            • bugsounet
              bugsounet Main Coder last edited by bugsounet

              it’s explain in wiki …

                  {
                    disabled: false,
                    module: "MMM-TelegramBot",
                    position: "top_right", // needed for telecast !
                    config: {
                      telegramAPIKey : "your_api_key",
                      allowedUser : ['Your_username'], // This is NOT the username of bot.
                      adminChatId : <your_Chat ID>,
                      telecast: <your_Chat ID>, // <-- same like adminChatId field
                      telecastLimit: 3, <-- nb max of message displayed on the screen
                      telecastLife: 0, <-- nb of ms to display the message before clean it (0 to keep on the screen)
                      //... and continue config from wiki of needed
                    }
                  },
              

              to display a message on the screen. open a dialogue with it and directly tape a message OR use /telecast your message

              Note: It can be a audio message, image, emoji, …

              1 Reply Last reply Reply Quote 0
              • bugsounet
                bugsounet Main Coder last edited by

                5d3dcad8-9654-48da-b0ff-affb610d1389-image.png

                1 Reply Last reply Reply Quote 0
                • A
                  aunrea last edited by

                  Sorry. Somehow I didn’t see the config page in the wiki. Only the config info on the install page which doesn’t show it all.

                  telecastLife: 0,

                  only shows it in a flash. Now that I see the config info for the time limit I found a time limit that works for me. Thank you for the help.

                  1 Reply Last reply Reply Quote 0
                  • Topic has been marked as solved  A aunrea 
                  • bugsounet
                    bugsounet Main Coder last edited by

                    wiki > MMM-TelegramBot > Configuration : There

                    1 Reply Last reply Reply Quote 0
                    • Moved from by  bugsounet bugsounet 
                    • First post
                      Last post
                    Powered by NodeBB | @bugsounet ©2022