Closed ibortnik closed 3 years ago
I wish to get new messages as they arrive in a chat. I see types:::UpdateNewMessage but no update_new_message() function..
types:::UpdateNewMessage
update_new_message()
What do I use UpdateNewMessage with?
UpdateNewMessage
You can get new messages with mpsc::channel if you pass sender to ClientBuilder::with_updates_sender. See this for more details.
ClientBuilder::with_updates_sender
Thanks!
I wish to get new messages as they arrive in a chat. I see
types:::UpdateNewMessage
but noupdate_new_message()
function..What do I use
UpdateNewMessage
with?