Fetching direct messages is time consuming and inefficient. From looking through the documentation, I don't think a feature exists that allows to receive notifications.
Notifications are sent through Firebase Cloud Messaging. Messages could be received on port while the program is running. We could either define callbacks or define some type of await messages() structure.
Fetching direct messages is time consuming and inefficient. From looking through the documentation, I don't think a feature exists that allows to receive notifications.
Notifications are sent through Firebase Cloud Messaging. Messages could be received on port while the program is running. We could either define callbacks or define some type of await messages() structure.
Has there been any attemps at this?