Everything works fine if I run my .NET MAUI app on Windows machine. But if I deploy on Android VM, below code to initialize WTelegram client is giving error as
Access to the path '/data/user/0/WTelegram.session' is denied.'
_client = new WTelegram.Client(int.Parse(API_ID), API_HASH);
I understand that, this is due to the permission issue in creating session file. I changed the code to below as per some suggestions on forums
string SessionPath = Android.App.Application.Context.GetExternalFilesDir("").AbsolutePath + "/WTelegram.session";
_client = new WTelegram.Client(int.Parse(API_ID), API_HASH, SessionPath);
But it gives error as
'Operation is not supported on this platform.'
Does WTelgram client not support Android? Is there an alternate I can use in my MAUI project targeting Android?