MMRIZE / MMM-TelegramBot

TelegramBot module for remote-controlling MagicMirror
MIT License
26 stars 8 forks source link

You are not allowed to command me. Ask Admin #65

Closed JohnLucaJF closed 3 years ago

JohnLucaJF commented 3 years ago

Hi @bugsounet ,

I have problem when setting up MMM-TelegramBot.

I go into my bot and type /mychatid and get above error,

I see other people have this problem, but couldnt find out what they did to fix it.

Im sure being stupid and missing something, but i cannot see it.!

Thanks

John

bugsounet commented 3 years ago

hi,

and ? no others informations for helping ?

humm... i says that because i try /clairvoyance and it's failed too...

JohnLucaJF commented 3 years ago

Sorry, this is the config

`      {
                    module: 'MMM-TelegramBot',
                    position: 'top_center',
                    config: {
                            verbose:true,
                            telegramAPIKey : 'MyKey',
                            allowedUser : ['John'], // This is NOT the username of bot.
                            }
            },

` When I run MM and goto Telegram app and type /mychatid it connects but get above error. Also it doesnt except other commands like /help or /commands - they return nothing.

Logs show.

pi@raspberrypi:~/MagicMirror $ npm start mm

magicmirror@2.13.0 start /home/pi/MagicMirror DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js "mm"

[2020-10-11 20:30:15.257] [LOG] Starting MagicMirror: v2.13.0 [2020-10-11 20:30:15.268] [LOG] Loading config ... [2020-10-11 20:30:15.283] [LOG] Loading module helpers ... [2020-10-11 20:30:15.286] [LOG] No helper found for module: alert. [2020-10-11 20:30:15.288] [LOG] No helper found for module: clock. [2020-10-11 20:30:15.290] [LOG] No helper found for module: currentweather. [2020-10-11 20:30:15.291] [LOG] No helper found for module: weatherforecast. [2020-10-11 20:30:16.146] [LOG] Initializing new module helper ... [2020-10-11 20:30:16.147] [LOG] Module helper loaded: newsfeed [2020-10-11 20:30:17.386] [LOG] Initializing new module helper ... [2020-10-11 20:30:17.387] [LOG] Module helper loaded: MMM-Spotify [2020-10-11 20:30:17.393] [LOG] Initializing new module helper ... [2020-10-11 20:30:17.393] [LOG] Module helper loaded: mmm-hue-lights [2020-10-11 20:30:18.204] [LOG] Initializing new module helper ... [2020-10-11 20:30:18.205] [LOG] Module helper loaded: MMM-UpdateNotification [2020-10-11 20:30:18.356] [LOG] Initializing new module helper ... [2020-10-11 20:30:18.357] [LOG] Module helper loaded: MMM-Tools [2020-10-11 20:30:18.583] [LOG] Initializing new module helper ... [2020-10-11 20:30:18.584] [LOG] Module helper loaded: MMM-synology-ds [2020-10-11 20:30:18.586] [LOG] No helper found for module: MMM-PlexNowPlaying. [2020-10-11 20:30:18.949] [LOG] Initializing new module helper ... [2020-10-11 20:30:18.950] [LOG] Module helper loaded: MMM-CalendarExt2 [2020-10-11 20:30:18.957] [LOG] Initializing new module helper ... [2020-10-11 20:30:18.958] [LOG] Module helper loaded: MMM-homeassistant-sensors [2020-10-11 20:30:20.138] [LOG] Initializing new module helper ... [2020-10-11 20:30:20.139] [LOG] Module helper loaded: MMM-Parcel [2020-10-11 20:30:20.416] [LOG] Initializing new module helper ... [2020-10-11 20:30:20.417] [LOG] Module helper loaded: internet-monitor [2020-10-11 20:30:20.418] [LOG] No helper found for module: MMM-pages. [2020-10-11 20:30:21.425] [LOG] Initializing new module helper ... [2020-10-11 20:30:21.425] [LOG] Module helper loaded: MMM-Xbox [2020-10-11 20:30:21.430] [LOG] Initializing new module helper ... [2020-10-11 20:30:21.430] [LOG] Module helper loaded: MMM-Memo [2020-10-11 20:30:23.011] [LOG] Initializing new module helper ... [2020-10-11 20:30:23.012] [LOG] Module helper loaded: MMM-TelegramBot [2020-10-11 20:30:29.348] [LOG] Initializing new module helper ... [2020-10-11 20:30:29.349] [LOG] Module helper loaded: MMM-GoogleAssistant [2020-10-11 20:30:29.350] [LOG] All module helpers loaded. [2020-10-11 20:30:29.743] [LOG] Starting server on port 6523 ... [2020-10-11 20:30:29.747] [INFO] You're using a full whitelist configuration to allow for all IPs [2020-10-11 20:30:29.760] [LOG] Server started ... [2020-10-11 20:30:29.761] [LOG] Connecting socket for: newsfeed [2020-10-11 20:30:29.763] [LOG] Starting node helper for: newsfeed [2020-10-11 20:30:29.764] [LOG] Connecting socket for: MMM-Spotify [2020-10-11 20:30:29.765] [LOG] Connecting socket for: mmm-hue-lights [2020-10-11 20:30:29.766] [LOG] Starting node_helper for module [mmm-hue-lights] [2020-10-11 20:30:29.767] [LOG] Connecting socket for: MMM-UpdateNotification [2020-10-11 20:30:29.772] [LOG] [UN] MMM-UpdateNotification Version: 1.1.1 [2020-10-11 20:30:29.773] [LOG] [UN] MagicMirror is running on pid: 1665 [2020-10-11 20:30:29.776] [LOG] Connecting socket for: MMM-Tools [2020-10-11 20:30:29.779] [LOG] [Tools] MMM-Tools Version: 2.0.3 [2020-10-11 20:30:29.780] [LOG] Connecting socket for: MMM-synology-ds [2020-10-11 20:30:29.781] [LOG] Connecting socket for: MMM-CalendarExt2 [2020-10-11 20:30:29.782] [LOG] Connecting socket for: MMM-homeassistant-sensors [2020-10-11 20:30:29.783] [LOG] Connecting socket for: MMM-Parcel [2020-10-11 20:30:29.784] [LOG] Starting node_helper for: MMM-Parcel [2020-10-11 20:30:29.788] [LOG] Connecting socket for: internet-monitor [2020-10-11 20:30:29.789] [LOG] internet-monitor helper started ... [2020-10-11 20:30:29.790] [LOG] Connecting socket for: MMM-Xbox [2020-10-11 20:30:29.791] [LOG] Connecting socket for: MMM-Memo [2020-10-11 20:30:29.794] [LOG] Connecting socket for: MMM-TelegramBot [2020-10-11 20:30:29.797] [LOG] Connecting socket for: MMM-GoogleAssistant [2020-10-11 20:30:29.800] [LOG] Sockets connected & modules started ... [2020-10-11 20:30:30.065] [LOG] Message undefined: no "force_trans.json" translation file found. This is no problem [2020-10-11 20:30:30.073] [LOG] Launching application. [2020-10-11 20:30:34.983] [LOG] Create new news fetcher for url: http://feeds.bbci.co.uk/news/england/rss.xml - Interval: 300000 [2020-10-11 20:30:35.476] [INFO] Newsfeed-Fetcher: Broadcasting 30 items. [2020-10-11 20:30:35.511] [LOG] MMM-synology-ds : Retrieving settings [2020-10-11 20:30:35.900] [LOG] starting internet monitor node helper [2020-10-11 20:30:36.653] [LOG] [TELBOT] MMM-TelegramBot Version: 1.3.7 [2020-10-11 20:30:36.699] [LOG] [TELBOT] Ready! [2020-10-11 20:30:37.114] [LOG] [SPOTIFY] MMM-Spotify Version: 1.5.2 [2020-10-11 20:30:37.380] [LOG] [CALEXT2] calendar:Luca's_School >> Scanning start with interval:1800000 [2020-10-11 20:30:37.386] [LOG] [CALEXT2] calendar:Family_Calendar >> Scanning start with interval:1800000 [2020-10-11 20:30:37.389] [LOG] [CALEXT2] calendar:UK_Holidays >> Scanning start with interval:1800000 [2020-10-11 20:30:37.392] [LOG] [CALEXT2] calendar:Gym_Calendar >> Scanning start with interval:1800000 [2020-10-11 20:30:37.395] [LOG] [CALEXT2] calendar:Work_Calendar >> Scanning start with interval:1800000 [2020-10-11 20:30:37.398] [LOG] [CALEXT2] calendar:Personal_Calendar >> Scanning start with interval:1800000 [2020-10-11 20:30:37.400] [LOG] [CALEXT2] calendar:ExpWork_Calendar >> Scanning start with interval:1800000 [2020-10-11 20:30:37.570] [LOG] [ASSISTANT] MMM-GoogleAssistant Version: 2.4.13 [2020-10-11 20:30:37.572] [LOG] [ASSISTANT] Activate delay is set to 250 ms [2020-10-11 20:30:37.575] [LOG] [SNOWBOY] Checking models [2020-10-11 20:30:37.576] [LOG] [SNOWBOY] Model selected: jarvis [2020-10-11 20:30:37.576] [LOG] [SNOWBOY] Sensitivity set: 0.7,0.7 [2020-10-11 20:30:37.583] [LOG] [ASSISTANT] RECIPE_LOADED: with-MMM-Spotify.js [2020-10-11 20:30:37.589] [LOG] [ASSISTANT] RECIPE_LOADED: with-MMM-Memo.js [2020-10-11 20:30:37.590] [LOG] [ASSISTANT] NO_ACTION_TO_MANAGE [2020-10-11 20:30:37.591] [LOG] [ASSISTANT] Use native program (mpg321) for audio response [2020-10-11 20:30:37.592] [LOG] [SOUND] mpg321 Initialized [2020-10-11 20:30:37.596] [LOG] [NPM] Initialized v0.9.9 [2020-10-11 20:30:37.610] [LOG] [NPM] Found: 6/14 @bugsounet library [MMM-GoogleAssistant] [2020-10-11 20:30:37.870] [LOG] [ASSISTANT] Google Assistant is initialized. [2020-10-11 20:30:38.096] [LOG] [CALEXT2] calendar:ExpWork_Calendar >> Scanned: 22, Selected: 22 [2020-10-11 20:30:38.959] [LOG] [CALEXT2] calendar:UK_Holidays >> Scanned: 35, Selected: 35 [2020-10-11 20:30:38.997] [LOG] [TELBOT] ERROR { ok: false, error_code: 400, description: 'Bad Request: chat_id is empty' } [2020-10-11 20:30:39.100] [LOG] [SNOWBOY] Starts listening. [2020-10-11 20:30:39.188] [LOG] [LPCM16] ~v1.0.1~ Start listening 1 channels, use arecord with sample rate 16000 [2020-10-11 20:30:39.435] [LOG] [CALEXT2] calendar:Gym_Calendar >> Scanned: 10, Selected: 10 [2020-10-11 20:30:39.549] [LOG] [NPM] Details for MMM-GoogleAssistant [ { name: '@bugsounet/npmcheck', installed: '0.9.9', latest: '0.9.9' }, { name: '@bugsounet/native-sound', installed: '1.0.0', latest: '1.0.0' }, { name: '@bugsounet/google-assistant', installed: '1.1.0', latest: '1.1.0' }, { name: '@bugsounet/node-buffertomp3', installed: '1.0.5', latest: '1.0.5' }, { name: '@bugsounet/node-lpcm16', installed: '1.0.1', latest: '1.0.1' }, { name: '@bugsounet/snowboy', installed: '1.6.3', latest: '1.6.3' } ] [2020-10-11 20:30:39.565] [LOG] [NPM] Check... MMM-GoogleAssistant [2020-10-11 20:30:39.567] [LOG] [NPM] No update needed for MMM-GoogleAssistant [2020-10-11 20:30:40.087] [LOG] [CALEXT2] calendar:Work_Calendar >> Scanned: 153, Selected: 153 [2020-10-11 20:30:40.105] [LOG] [TELBOT] ERROR { ok: false, error_code: 400, description: 'Bad Request: chat_id is empty' } [2020-10-11 20:30:40.687] [LOG] [CALEXT2] calendar:Personal_Calendar >> Scanned: 136, Selected: 136 [2020-10-11 20:30:41.295] [LOG] [CALEXT2] calendar:Luca's_School >> Scanned: 115, Selected: 115 [2020-10-11 20:30:41.337] [LOG] [TELBOT] ERROR { ok: false, error_code: 400, description: 'Bad Request: chat_id is empty' } [2020-10-11 20:30:42.607] [LOG] [CALEXT2] calendar:Family_Calendar >> Scanned: 113, Selected: 113 [2020-10-11 20:30:43.767] [LOG] [TELBOT] ERROR { ok: false, error_code: 400, description: 'Bad Request: chat_id is empty' } [2020-10-11 20:30:44.065] [LOG] [TELBOT] ERROR { ok: false, error_code: 400, description: 'Bad Request: chat_id is empty' } [2020-10-11 20:30:44.198] [LOG] [TELBOT] ERROR { ok: false, error_code: 400, description: 'Bad Request: chat_id is empty' } [2020-10-11 20:30:44.806] [LOG] [TELBOT] ERROR { ok: false, error_code: 400, description: 'Bad Request: chat_id is empty' } [2020-10-11 20:30:46.492] [LOG] [TELBOT] ERROR { ok: false, error_code: 400, description: 'Bad Request: chat_id is empty' } [2020-10-11 20:30:50.114] [LOG] [TELBOT] ERROR { ok: false, error_code: 413, description: 'Request Entity Too Large' } [2020-10-11 20:30:54.941] [LOG] MMM-synology-ds : No connexion to synology, trying to reconnect. [2020-10-11 20:30:54.942] [LOG] MMM-synology-ds : Connecting to Synology : 192.168.1.202:5025 [2020-10-11 20:30:54.943] [LOG] MMM-synology-ds : Protocol: HTTP [2020-10-11 20:30:54.943] [LOG] MMM-synology-ds : User: admin [2020-10-11 20:30:54.944] [LOG] MMM-synology-ds : Password: ***** [2020-10-11 20:30:57.797] [LOG] MMM-synology-ds : Connected succesfully! [2020-10-11 20:31:01.669] [LOG] [TELBOT] ERROR { ok: false, error_code: 413, description: 'Request Entity Too Large' }

<--- Last few GCs --->

[1665:0x674e000] 68947 ms: Mark-sweep 216.1 (220.8) -> 216.0 (219.3) MB, 1792.2 / 0.0 ms (+ 0.3 ms in 26 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 1834 ms) (average mu = 0.221, current mu = 0.092) allocation fa[1665:0x674e000] 70903 ms: Mark-sweep 216.1 (219.3) -> 215.9 (219.3) MB, 1954.7 / 0.0 ms (average mu = 0.129, current mu = 0.001) allocation failure scavenge might not succeed

<--- JS stacktrace --->

==== JS stack trace =========================================

0: ExitFrame [pc: 0x1e3e4c4]
1: StubFrame [pc: 0x1e3f600]

Security context: 0x51090b21 2: encode(aka encode) [0x3d3dd59d] [/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/qs/lib/utils.js:~118] [pc=0x21a5a338](this=0x54cc0289 ,0x5e38009d <Very long string[13039102]>) 3: stringify(aka stringify) [0x3d3e0259] [/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/qs/lib/stringify.js:62] [by...

Thanks

John

bugsounet commented 3 years ago

allowedUser : ['John']

verify your username, i think there is a problem with this

JohnLucaJF commented 3 years ago

All working Thanks