SendPhoto to telegram desktop

 

Hello every one, I got trouble below codes. I don't know why runtime errors said 

File is not exists

I hope someone enlighten me what's going on. Thanks.


here is my code:

string myJPG=name + ".jpg";
string Lpath=TerminalInfoString(TERMINAL_DATA_PATH)+"\\MQL5\\Files\\";
int pic=bot.SendPhoto(myJPG, InpChannelName, Lpath);
if(pic==0)
   Print("Photo ID: ", myJPG);
else
   {Print(Lpath); Print(GetErrorDescription(pic));}

runtime error:

2022.12.14 14:06:56.430 eZL (XAUUSD,M5) Screenshot for telegram XAUUSD080656.jpg

2022.12.14 14:07:06.484 eZL (XAUUSD,M5) C:\Users\PC7\AppData\Roaming\MetaQuotes\Terminal\6EA7BE164E8F5F3CA00F9F9ADD421C04\MQL5\Files\

2022.12.14 14:07:06.484 eZL (XAUUSD,M5) File is not exists


same runtime error

int pic=bot.SendPhoto(InpChannelName, Lpath+myJPG,name);

Reason: