I need to fix this. this sends screenshot of all open charts in that account, i want to send only one chart which is chart open, thanks for

 
if (TimeCurrent() >= lastscreenshotsend + 1800  )
  //if (lastscreenshotsend + 3600 != Time[0] )
     {
     photosend == 0;
     
     string token = "1454697537:AAG7f8tMvGXSh9G-dmTIZCPhMeB_jBQSwsQ";  
     SendScreenShot(-1001331438105,"Deposit : $ "+DoubleToString(openingdeposit,2)+ "\n" +
                  "Profit : "+DoubleToString((100*(AccountBalance()-openingdeposit)/openingdeposit),2)+" %"+ "\n" +
                  "Balance : $ "+DoubleToString(AccountBalance(),2)+ "\n" +
                  "Account Number: "+AccountNumber()+ "\n" +
                  "Account Name: "+AccountName()+ "\n" +AccountServer()+ "\n" +WindowExpertName()+ "\n" +"Time Frame ",PERIOD_M15,1366,768,true,"1454697537:AAG7f8tMvGXSh9G-dmTIZCPhMeB_jBQSwsQ");
             
     
     lastscreenshotsend = TimeCurrent();
     }


int SendScreenShot(const long _chat_id,
                        const string _symbol,
                        const ENUM_TIMEFRAMES _period,
                                int x_axis,
                                int y_axis,
                                bool current_chart,
                                string token)
{
CCustomBot bot;
bot.Token(token);

int result=0;
long chart_id;
if(!current_chart)
chart_id=ChartOpen(_symbol,_period);
else
chart_id=ChartID();

if(chart_id==0)
return(ERR_CHART_NOT_FOUND);

if(!current_chart)
ChartSetInteger(ChartID(),CHART_BRING_TO_TOP,true);

//--- updates chart
int wait=60;
while(--wait>0)
{
if(SeriesInfoInteger(_symbol,_period,SERIES_SYNCHRONIZED))
        break;
Sleep(500);
}
string filename;
if(!current_chart)
{
ChartRedraw(chart_id);
Sleep(500);
ChartSetInteger(chart_id,CHART_SHOW_GRID,false);
ChartSetInteger(chart_id,CHART_SHOW_PERIOD_SEP,false);
filename=StringFormat("%s%d.gif",_symbol,_period);
}
else
{
        filename=StringFormat("%s%d.gif",Symbol(),Period());
}

if(FileIsExist(filename))
FileDelete(filename);

if(!current_chart)
ChartRedraw(chart_id);

Sleep(100);

//if (photosend == 0)
   {
   if(ChartScreenShot(chart_id,filename,x_axis,y_axis,ALIGN_RIGHT))
      {
      Sleep(100);
      
      bot.SendChatAction(_chat_id,ACTION_UPLOAD_PHOTO);
      
      //--- waitng 30 sec for save screenshot
      wait=60;
      while(!FileIsExist(filename) && --wait>0)
        Sleep(500);
      
      //---
      if(FileIsExist(filename))
        {
        string screen_id;
        result=bot.SendPhoto(screen_id,_chat_id,filename,_symbol+"_"+StringSubstr(EnumToString(_period),7));
        //photosend = 1;
        
        
        }
      
      }
    }  

if(!current_chart)
ChartClose(chart_id);

return(result);
}