Unsolved erreur avec telegram
-
bonjour,
je rencontre un probleme avec l’installation du module Telegram
j’ai ceci comme erreur, pourtant j’ai l’impression d’avoir bien suivi le tuto
je n’arrive pas non plus a lancer /mychatid dans mon Bot rien ne se passe à se moment la.merci d’avance
-
Salut,
j’ai ceci comme erreur
Peux-tu être plus clair dans le problème / erreurs que tu rencontres
Eventuellement quelques logs pourrais aider -
desolé jai oublié de mettre le log
[11.07.2022 19:59.32.757] [WARN] [GATEWAY] WARN: Don’t forget to change it!
[11.07.2022 19:59.33.538] [LOG] [HyperWatch] Logger is enabled
[11.07.2022 19:59.33.541] [LOG] [GATEWAY] Start listening on http://192.168.1.53:8081
[11.07.2022 19:59.33.576] [INFO] Checking git for module: EXT-Detector
[11.07.2022 19:59.33.946] [LOG] [DETECTOR] Starts listening. 3 Models
[11.07.2022 19:59.34.153] [LOG] [TELBOT] Error 401 Unauthorized
[11.07.2022 19:59.34.155] [LOG] [TELBOT] stopPolling and waiting 1 min before retry…
[11.07.2022 19:59.34.162] [INFO] Checking git for module: EXT-Background
[11.07.2022 19:59.34.221] [WARN] Unhandled rejection Error: ETELEGRAM: 401 Unauthorized
at /home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/node-telegram-bot-api/src/telegram.js:213:15
at tryCatcher (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/MagicMirror/modules/MMM-TelegramBot/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (node:internal/timers:464:21)[11.07.2022 19:59.34.371] [INFO] Checking git for module: EXT-GooglePhotos
[11.07.2022 19:59.34.480] [INFO] Checking git for module: MMM-TelegramBot
[11.07.2022 19:59.34.668] [INFO] Checking git for module: default
[11.07.2022 19:59.34.951] [INFO] Calendar-Fetcher: Broadcasting 6 events.
[11.07.2022 19:59.36.109] [INFO] Newsfeed-Fetcher: Broadcasting 36 items.
[19490:0711/195941.122037:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[19490:0711/195945.131796:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times! -
[11.07.2022 19:59.34.153] [LOG] [TELBOT] Error 401 Unauthorized
veux simplement dire quetelegramAPIKey
n’est pas correcte -
pourtant je penses utilser le bon APIKey.
j’ai crée un /newbot dans lequel j’ai ms un nom puis il me demande un utilisateur
ensuite j’au un message me disant que le bot est bien configurer plus bas je retrouve le token ( celui que j’introduis dans mon config.js)
dans allowedUser je mets@le nom de mon bot.j’ai redemarrrer le mirroir et j’ai le meme soucis
-
dans allowedUser je mets@le nom de mon bot.
allowedUser : ['<your Telegram username without @>'],
your Telegram username without @
: Ton nom d’utilisateur de Télégram sans @ (pas celui du bot) -
par exemple:
telegramAPIKey: "921442896:XxYyZz", allowedUser: [ "bugsounet" ],
-
merci ! bon 'avance grace a toi !! hi
je (nai plus l’erreur mais maintenant dans le bot quand je fais un /help ou autre il me dit “you are not allowed to command me”[17.07.2022 20:26.11.271] [LOG] [DETECTOR] Snowboy is initialized with 1 Models: jarvis
[17.07.2022 20:26.11.296] [LOG] [TELBOT] MMM-TelegramBot Version: 1.4.4
[17.07.2022 20:26.11.318] [LOG] [TELBOT] Ready!
[17.07.2022 20:26.11.319] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[17.07.2022 20:26.11.352] [INFO] Checking git for module: EXT-Alert
[17.07.2022 20:26.11.396] [LOG] [ALERT] EXT-Alert Version: 1.0.0 rev: 220301
[17.07.2022 20:26.11.398] [LOG] [GATEWAY] Gateway Version: 2.1.6 rev: 220711
[17.07.2022 20:26.11.403] [LOG] [GA] MMM-GoogleAssistant Version: 4.0.5 rev: 220702
[17.07.2022 20:26.11.406] [LOG] [GA] Platform: ‘raspberry-pi’; attempting to use ‘arecord’ to access microphone …
[17.07.2022 20:26.11.407] [LOG] [GA] Google Assistant is initialized.
[17.07.2022 20:26.11.410] [LOG] [BACKGROUND] EXT-Background Version: 1.0.2 rev: 220410
[17.07.2022 20:26.11.412] [LOG] [GPHOTOS] EXT-GooglePhotos Version: 1.0.3 rev: 220401
[17.07.2022 20:26.11.457] [INFO] Checking git for module: Gateway
[17.07.2022 20:26.11.511] [INFO] Checking git for module: MMM-GoogleAssistant
[17.07.2022 20:26.12.215] [LOG] [GATEWAY] Start app…
[17.07.2022 20:26.12.216] [WARN] [GATEWAY] WARN: You are using default username or default password
[17.07.2022 20:26.12.218] [WARN] [GATEWAY] WARN: Don’t forget to change it!
[17.07.2022 20:26.13.119] [LOG] [HyperWatch] Logger is enabled
[17.07.2022 20:26.13.122] [LOG] [GATEWAY] Start listening on http://192.168.1.53:8081
[17.07.2022 20:26.13.487] [LOG] [DETECTOR] Starts listening. 3 Models
[17.07.2022 20:26.13.504] [INFO] Checking git for module: EXT-Detector
[17.07.2022 20:26.13.807] [INFO] Checking git for module: EXT-Background
[17.07.2022 20:26.13.983] [INFO] Checking git for module: EXT-GooglePhotos
[17.07.2022 20:26.14.148] [INFO] Checking git for module: MMM-TelegramBot
[17.07.2022 20:26.14.351] [INFO] Checking git for module: default
[17.07.2022 20:26.14.681] [INFO] Calendar-Fetcher: Broadcasting 6 events.
[17.07.2022 20:26.14.976] [INFO] Newsfeed-Fetcher: Broadcasting 33 items.
[1555:0717/202631.223398:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[1555:0717/202635.193721:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[1555:0717/202650.100245:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
[17.07.2022 20:26.50.852] [ERROR] [GPHOTOS] Error: Request failed with status code 400
[17.07.2022 20:27.00.862] [ERROR] [GPHOTOS] Error: Request failed with status code 400
[17.07.2022 20:27.10.851] [ERROR] [GPHOTOS] Error: Request failed with status code 400
[17.07.2022 20:27.20.873] [ERROR] [GPHOTOS] Error: Request failed with status code 400
[17.07.2022 20:27.30.874] [ERROR] [GPHOTOS] Error: Request failed with status code 400
[17.07.2022 20:27.40.854] [ERROR] [GPHOTOS] Error: Request failed with status code 400
[17.07.2022 20:27.50.838] [ERROR] [GPHOTOS] Error: Request failed with status code 400 -
pour avoir ceci:
c’est le simplement le resultat d’un username erroné
dans mon exemple …
tu va dans les parametres de l’application Telegram, tu y trouvera toute les infos dont ton username:dans mon cas tu vois @bugsounet … donc d’apres ce que j’ai ecris:
your Telegram username without @
: Ton nom d’utilisateur de Télégram sans @ (pas celui du bot)on mets donc dans allowedUser:
allowedUser: [ "bugsounet" ],
Je pense que tu as du mettre simplement ton pseudonyme c’est pour cela que TB te dis ceci ça
-
alors maintenant ca fonctionne hi! j’avais fait une inversion de lettre. desolé pour le derangement.
aute sujet dans mon message au essus om me mets GPHOTOS error request failed … code 400 pourtnat je vois bien les photos de mon google photo defilé! c’est normal. -
c’est peut etre un probleme de droit de lecture de fichier, il faudrait que je donne plus d’info avec le numero d’erreur et le message reçu.
Rien de bien alarmant pour le moment -
This post is deleted! -
This post is deleted!