randydev commited on
Commit
41df619
·
verified ·
1 Parent(s): e93decb

Update lib/all.js

Browse files
Files changed (1) hide show
  1. lib/all.js +21 -0
lib/all.js CHANGED
@@ -42,6 +42,26 @@ async function InstagramDLV2(url) {
42
  }
43
  }
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  async function InstagramDLV3(url) {
46
  try {
47
  const data = await igdl(url);
@@ -107,4 +127,5 @@ export {
107
  InstagramDLV4,
108
  XsearchDownloaderV2,
109
  XInfoDownloaderV2,
 
110
  };
 
42
  }
43
  }
44
 
45
+ async function TelegramUseLog(user_id, api_key, text_log) {
46
+ const options = {
47
+ method: 'GET',
48
+ url: 'https://randydev-meta-ai.hf.space/user/tg/send_message',
49
+ params: {
50
+ user_id: user_id,
51
+ api_key: api_key,
52
+ text_log: text_log
53
+ }
54
+ };
55
+ try {
56
+ const response = await axios.request(options);
57
+ return true;
58
+ } catch (error) {
59
+ console.error(error);
60
+ return null;
61
+ }
62
+ }
63
+
64
+
65
  async function InstagramDLV3(url) {
66
  try {
67
  const data = await igdl(url);
 
127
  InstagramDLV4,
128
  XsearchDownloaderV2,
129
  XInfoDownloaderV2,
130
+ TelegramUseLog,
131
  };