gram-js / gramjs

NodeJS/Browser MTProto API Telegram client library,
MIT License
1.25k stars 178 forks source link

Auth: please provide better example #722

Open vvmspace opened 4 days ago

vvmspace commented 4 days ago

In your example:

client.start({
phoneNumber: ...,
password: ...,
phoneCode: ...
})

It is not friendly for server side: Phone should be in one method and phoneCode should be in another method

How to split this?

vvmspace commented 3 hours ago

Please)