zerobias / telegram-mtproto

Telegram client api (MTProto) library
MIT License
617 stars 136 forks source link

Pulling messages from a Channel, without having 2fa? #187

Closed napindc closed 6 years ago

napindc commented 6 years ago

I have a node server, and I want to constantly monitor a private telegram channel that I’m in. When new messages are sent to the channel, I want my node server to take the text of that message and do something with it.

However, is this possible given all the examples have 2fa in it? I don’t want to pause my server every now and then, and rerun it with a new 2fa code.

goodmind commented 6 years ago
client.bus.untypedMessage.observe(data => {});
goodmind commented 6 years ago

@napindc don't authenticate on each request

goodmind commented 6 years ago

@napindc there is examples without 2fa