Comments (3)
Hi. TeleBot requires Node.js version 6.0 and beyond. Please check your version.
from telebot.
Updated to Node 6.5.0 when I start it now I get:
/node_modules/telebot/lib/telebot.js:304
for (let type of types) {
^
TypeError: types[Symbol.iterator] is not a function
at TeleBot.on (/Users/renevlugt/Development/albys_bot/node_modules/telebot/lib/telebot.js:304:20)
at Object.<anonymous> (/Users/renevlugt/Development/albys_bot/index.js:13:5)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
If I change that to for(let type in types)
it's starting correctly, but it doesn't seem to recieve any messages. Tried both bot.on('message') and bot.on('text'). I can send messages though.
from telebot.
Actually turns out that was a mistake in my script, 'text' works fine but the code before it where they type was a regex broke it. Also came to the conclusion that if you enter an incorrect api token it tries to fall back to webhooks and fails. A more graceful way to notify a dev of his mistake might be better.
from telebot.
Related Issues (20)
- I want to add the Top Referral button but how can I get the referral list like this picture. (Node.js)
- sendMediaGroup Bad Request: expected an Array of InputMedia HOT 1
- stop/interupt askUser Plugin
- How to set webhook ? HOT 9
- do i run telebot nodejs version on auto.js environment
- Some docs for v2 (beta)
- Any suggestion on how I can setup telebot to work with AWS Lambda HOT 1
- How can I stop the bot from receiving messages when the script was off?? HOT 3
- How to set cooldown for commands?
- Conflict: terminated by other getUpdates request; make sure that only one bot instance is running
- How to shielding symbols? HOT 1
- It's possible to use ask user plugin in a group?
- Poll messages aren't correct HOT 3
- Название вопроса
- Название вопроса 1
- message_thread_id in sendmessenger HOT 2
- Bot crashes when trying to send an audio file. HOT 1
- Initialize only with App Id and App Hash
- namedButtons don't work for multiple users HOT 1
- [bot.error.event] TypeError: bot.send_message is not a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telebot.