alik0211 / mtproto-core

Telegram API JS (MTProto) client library for Node.js and browser
https://mtproto-core.js.org
GNU General Public License v3.0
631 stars 113 forks source link

How do you read incoming messages? #175

Open ghost opened 3 years ago

ghost commented 3 years ago

I'm new to mtproto, sorry if this is obvious, but how do I read incoming messages? This seems like something that should be super easy, but the docs are pretty ass (imo).

malufett commented 3 years ago

check this https://mtproto-core.js.org/docs/setup-handle-updates here is where you can receive the incoming messages in real time..or you can use messages.getHistory and messages.getDialogs to get messages per user

ffbboy30 commented 3 years ago

How do you filter with channel name ? Thanks