mtproto-core icon indicating copy to clipboard operation
mtproto-core copied to clipboard

How do you read incoming messages?

Open ghost opened this issue 3 years ago • 2 comments

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).

ghost avatar Apr 08 '21 10:04 ghost

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

malufett avatar Apr 20 '21 20:04 malufett

How do you filter with channel name ? Thanks

ffbboy30 avatar Jun 09 '21 14:06 ffbboy30