Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client.sendCodeToPhone fails with TypeError: undefined is not a function #9

Open
0x15 opened this issue Aug 20, 2015 · 4 comments
Open

Comments

@0x15
Copy link

0x15 commented Aug 20, 2015

This looks like the same issue as #8, but I am using NodeJS version 0.12.7, which should be supported (?)

Provide your phone number in order to receive the verification code from Telegram
Phone number, must have the international code: +xxxxxxxxxxx
/usr/local/lib/node_modules/termgram/lib/client-proxy.js:73
                            client.sendCodeToPhone(phoneNumber, fulfill);
                                   ^
TypeError: undefined is not a function
    at /usr/local/lib/node_modules/termgram/lib/client-proxy.js:73:36
    at Client.<anonymous> (/usr/local/lib/node_modules/termgram/lib/client-proxy.js:124:13)
    at Client.g (events.js:199:16)
    at Client.emit (events.js:104:17)
    at null._onTimeout (/usr/local/lib/node_modules/termgram/node_modules/telegram.link/lib/utility.js:58:26)
    at Timer.listOnTimeout (timers.js:119:15)
@enricostara
Copy link
Owner

Please, try to update the project to the last version and let me know. Consider anyway this example application not yet stable and complete.

@fazo96
Copy link

fazo96 commented Aug 25, 2015

Hello, I really love that you're building a node library and a command line client for telegram!

I'm trying to run termgram, but I have the same problem as @0x15:

Provide your phone number in order to receive the verification code from Telegram
Phone number, must have the international code: +39xxxxxxxxxx
/home/fazo/.npm_prefix/lib/node_modules/termgram/lib/client-proxy.js:75
                            client.sendCodeToPhone(phoneNumber, fulfill);
                                   ^
TypeError: undefined is not a function
    at /home/fazo/.npm_prefix/lib/node_modules/termgram/lib/client-proxy.js:75:36
    at Client.<anonymous> (/home/fazo/.npm_prefix/lib/node_modules/termgram/lib/client-proxy.js:126:13)
    at Client.g (events.js:199:16)
    at Client.emit (events.js:104:17)
    at null._onTimeout (/home/fazo/.npm_prefix/lib/node_modules/termgram/node_modules/telegram.link/lib/utility.js:58:26)
    at Timer.listOnTimeout (timers.js:119:15)

This was obtained by cloning the repo, npm install -g the code directly from master and running termgram. I got the same error by downloading the latest release from npm.

@tomcpc
Copy link

tomcpc commented Sep 9, 2015

I can't get past the phone number request as well. I get either the message saying it is not an international number, or I get stuck with an " undefined '+55xxxxxxxxxx' ".

@fazo96
Copy link

fazo96 commented Sep 9, 2015

@tomcpc I'm sorry, I tried to fix termgram but it didn't work out. If you want to see a working client, try my own

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants