redai-automation-web-sdk 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -139,7 +139,7 @@ var HttpClient = class {
139
139
  timeout: this.config.timeout || 3e4,
140
140
  headers: {
141
141
  "Content-Type": "application/json",
142
- "User-Agent": this.config.userAgent || "redai-automation-web-sdk/1.11.0",
142
+ "User-Agent": this.config.userAgent || "redai-automation-web-sdk/1.12.0",
143
143
  ...this.config.apiKey && { Authorization: `Bearer ${this.config.apiKey}` }
144
144
  }
145
145
  });
@@ -385,7 +385,7 @@ var DEFAULT_CONFIG = {
385
385
  timeout: 3e4,
386
386
  retryCount: 0,
387
387
  retryDelay: 0,
388
- userAgent: "redai-automation-web-sdk/1.11.0",
388
+ userAgent: "redai-automation-web-sdk/1.12.0",
389
389
  logging: false
390
390
  };
391
391
  var ThreadType = /* @__PURE__ */ ((ThreadType4) => {
@@ -3848,6 +3848,15 @@ var TelegramPersonalMessagingService = class {
3848
3848
  async getMessages(request) {
3849
3849
  return this.getHistory(request);
3850
3850
  }
3851
+ /**
3852
+ * Tải ảnh đại diện (avatar) của cuộc trò chuyện hoặc người dùng (Base64)
3853
+ */
3854
+ async getAvatar(request) {
3855
+ return this.httpClient.post(
3856
+ "/v1/telegram-personal/messaging/avatar",
3857
+ request
3858
+ );
3859
+ }
3851
3860
  };
3852
3861
 
3853
3862
  // src/client/AutomationWebClient.ts
@@ -4193,7 +4202,7 @@ var AutomationWebClient = class {
4193
4202
  * Get SDK version
4194
4203
  */
4195
4204
  getVersion() {
4196
- return "1.11.0";
4205
+ return "1.12.0";
4197
4206
  }
4198
4207
  /**
4199
4208
  * Test connection to automation-web API