TelegramApi/TelegramResponse.mq5
super.admin 9ec2446d5f convert
2025-05-30 16:28:38 +02:00

21 lines
612 B
MQL5

class TelegramResponse
{
protected:
string lastError;
char result[];
string headers;
public:
void TelegramResponse() {
lastError = NULL;
}
void setLastError(string _lastError) { lastError = _lastError; }
string getLastError() { return lastError; }
void setResult(const char &_result[]) { ArrayCopy(result, _result); }
void getResult(char &_result[]) { ArrayCopy(_result, result); }
void setHeaders(string _headers) { headers = _headers; }
string getHeaders() { return headers; }
};