Closed jurgob closed 8 years ago
@jurgob Hi!
You need to update your node to latest version. (6.2.2 now)
yep, updating to node 6 ha fixed the problem. Maybe it should be mentioned in the ReadMe
now I can receive the message, but when I try to do $.sendMessage('pong') I get the following error:
Cant find controller for update Update {
_updateId: '******,
_message:
Message {
_messageId: 11,
_from:
User {
_id: '******,
_firstName: '******',
_lastName: ''******',
_username: ''******' },
_date: '******,
_chat:
Chat {
_id: -'******,
_type: 'group',
_title: 'test',
_username: null,
_firstName: null,
_lastName: null },
_forwardFrom: null,
_forwardFromChat: null,
_forwardDate: null,
_replyToMessage: null,
_editDate: null,
_text: '/chat_id@circle_bot',
_entities: [ [Object] ],
_audio: null,
_document: null,
_photo: null,
_sticker: null,
_video: null,
_voice: null,
_caption: null,
_contact: null,
_location: null,
_venue: null,
_newChatMember: null,
_leftChatMember: null,
_newChatTitle: null,
_newChatPhoto: null,
_deleteChatPhoto: null,
_groupChatCreated: null,
_supergroupChatCreated: null,
_channelChatCreated: null,
_migrateToChatId: null,
_migrateFromChatId: null,
_pinnedMessage: null },
_editedMessage: null,
_inlineQuery: null,
_chosenInlineResult: null,
_callbackQuery: null }
@jurgob Its not an error, its just a warning that you dont have a controller for such messages
ok, but I don't see the "pong" response on my chat. I'm running on my localhost, is this the problem?
sorry, my fault, you are right
@jurgob According to the warning - your code not going to be executed.
If I try to run the example, I get this error:
my node version is 5.9.1