From 947f90e588d3a03ed955897bdc4f0ef2086086dd Mon Sep 17 00:00:00 2001 From: Suissa Date: Sun, 16 Apr 2017 03:50:05 -0300 Subject: [PATCH 1/2] printscreen --- readme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readme.md b/readme.md index 20c843c..ce58669 100644 --- a/readme.md +++ b/readme.md @@ -283,6 +283,8 @@ Para criarmos um comando para fazer uma busca usaremos o [axios](https://www.npm Porém quando requisitamos `nomadev` ao Google e pegamos o atributo `href`: +![print screen](http://i.imgur.com/ksgH8Pj.png) + ```js http.get( URL_BASE + match[ 1 ] ) From 061b155c7edde2d261f48bb746cac51ef2e4d76a Mon Sep 17 00:00:00 2001 From: dbby69 Date: Sat, 23 Nov 2024 15:38:48 +0000 Subject: [PATCH 2/2] Update index.js --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 9f1b40b..f08a858 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ const TelegramBot = require( `node-telegram-bot-api` ) -const TOKEN = `275399831:AAHvjSOiGLxgXmff9wgdECdrZXfMtvnKURw` +const TOKEN = `7765965277:AAGCZ1PW6yz0mj8b-KcHPR2QPhxfVGhRWjw` const bot = new TelegramBot( TOKEN, { polling: true } ) @@ -9,6 +9,7 @@ bot.on( 'message', ( msg, match ) => { }) + // const log = ( msg ) => console.log( msg ) // const logSuccess = ( data ) => console.log( `Success: `, data ) @@ -51,4 +52,4 @@ bot.on( 'message', ( msg, match ) => { // .then( logSuccess ) // .catch( logError ) -// bot.onText( /\/ask (.*)/, sendMessage ) \ No newline at end of file +// bot.onText( /\/ask (.*)/, sendMessage )