Size: a a a

2017 January 13

j

jeny@^=# in Dev Chat
Выгледит как хуй
источник

AG

Alexander Grebenschikov in Dev Chat
Зато у него есть отправка файла из буфера
источник

RC

Ricardo Carvalho in Dev Chat
Any link or example on how to receive image and not text as "TextCommand('xxxxx', 'handler')" ? I need to send an image to the Bot and 'handle' it. Thanks
источник

。◕‿◕。 in Dev Chat
Ricardo Carvalho
Any link or example on how to receive image and not text as "TextCommand('xxxxx', 'handler')" ? I need to send an image to the Bot and 'handle' it. Thanks
You should try 'bot.on("photo")'
источник

1

1C-Bitrix in Dev Chat
:) Как принять файл в telegram-node-bot?
источник

1

1C-Bitrix in Dev Chat
В каком смысле принять?
источник

1

1C-Bitrix in Dev Chat
Ты его получить хочешь и какие-то действия с ним сделать, или че?
источник

1

1C-Bitrix in Dev Chat
да, получить.
источник

1

1C-Bitrix in Dev Chat
Ну можешь конечно
источник

1

1C-Bitrix in Dev Chat
источник

1

1C-Bitrix in Dev Chat
ну там-то понятно. вопрос был как в этом фреймворке это сделать
источник

1

1C-Bitrix in Dev Chat
Так бля, берешь и делаешь
источник

1

1C-Bitrix in Dev Chat
Тебе че файл сложно получить и провести с ним действия?
источник

1

1C-Bitrix in Dev Chat
tg.api.getFile($.message.document.fileId)
           .then((file) => {
               //сохраняешь файл так, как позволит религия
           })
источник

RC

Ricardo Carvalho in Dev Chat
。◕‿◕。
You should try 'bot.on("photo")'
Thanks !
источник

AK

Artem Kulikov in Dev Chat
Спасибо
источник
2017 January 14

DB

Davide Benato in Dev Chat
hi! I'm trying to use telegram-node-bot
I have a question though, I want to set a timeout and do some action every X seconds.

Right now I only have 1 worker but if I do something like this:
function a() {
       console.log("callback")
   }
setInterval(a, 1 * 1000);
I see the output twice every second.
I just need the function to be called once, because I need to send some messages if some condition happens
источник

DB

Davide Benato in Dev Chat
can you advise how to use the framework to achieve that?
источник

DB

Davide Benato in Dev Chat
I really just need one worker to check this function :)
источник

。◕‿◕。 in Dev Chat
Upload your code to pastebin.com so we can review it
источник