Closed open-sudo closed 1 year ago
Please I need an Example that shows how to receive a file from a user in a chat session. The documentation has examples of sending files but I could not find examples of receiving them. If you could share an example that would be much appreciated.
Use the onNewMessage listener, check it the category of the message is media, if it is cast info.message().content() to MediaMessage and download it.
Thanks. That helped a lot.
Please I need an Example that shows how to receive a file from a user in a chat session. The documentation has examples of sending files but I could not find examples of receiving them. If you could share an example that would be much appreciated.