webfast 0.1.47 → 0.1.48
Sign up to get free protection for your applications and to get access to all the features.
- package/modules/bots/applications/telegram/middleware/message/location.js +1 -1
- package/modules/bots/applications/telegram/middleware/message/photo.js +1 -1
- package/modules/bots/applications/telegram/middleware/message/start.js +1 -1
- package/modules/bots/applications/telegram/que.js +1 -1
- package/modules/bots/applications/telegram.js +7 -7
- package/package.json +1 -1
@@ -6,7 +6,7 @@ module.exports = async function(req,res,body,params,command,middleValue) {
|
|
6
6
|
locSendMessage = `Thank you for sending your location\n ${middleValue.location.longitude}\n${middleValue.location.latitude}`;
|
7
7
|
}
|
8
8
|
|
9
|
-
const scripting = await program.modules.telegram.script.function.check(program,command,middleValue.
|
9
|
+
const scripting = await program.modules.telegram.script.function.check(program,command,middleValue.from.id,middleValue,body);
|
10
10
|
console.log(scripting);
|
11
11
|
|
12
12
|
return {
|
@@ -45,7 +45,7 @@ module.exports = async function(program,req,res,body,params,command,middleValue)
|
|
45
45
|
|
46
46
|
locSendMessage = `Image succesfull received`;
|
47
47
|
|
48
|
-
const scripting = await program.modules.telegram.script.function.check(program,command,middleValue.
|
48
|
+
const scripting = await program.modules.telegram.script.function.check(program,command,middleValue.from.id,middleValue,body);
|
49
49
|
console.log(scripting);
|
50
50
|
|
51
51
|
// Send back
|
@@ -5,7 +5,7 @@ module.exports = async function(req,res,body,params,command,middleValue,received
|
|
5
5
|
// Do the script thing
|
6
6
|
if (middleValue.text.startsWith(`/`)) {
|
7
7
|
middleValue.text = `start`;
|
8
|
-
const scripting = await program.modules.telegram.script.function.check(program,command,middleValue.
|
8
|
+
const scripting = await program.modules.telegram.script.function.check(program,command,middleValue.from.id,middleValue,received);
|
9
9
|
console.log(`Scripting`);
|
10
10
|
|
11
11
|
if (scripting == true) {
|
@@ -214,7 +214,7 @@ module.exports = {
|
|
214
214
|
}
|
215
215
|
buttons = JSON.parse(buttons);
|
216
216
|
}
|
217
|
-
await program.modules.telegram.functions.send(program,toSend,middleValue.
|
217
|
+
await program.modules.telegram.functions.send(program,toSend,middleValue.from.id,buttons);
|
218
218
|
|
219
219
|
// set que uuid
|
220
220
|
program.modules.telegram.functions.que.line[chatID] = current;
|
@@ -125,7 +125,7 @@ module.exports = async function(program,folder) {
|
|
125
125
|
case `message`:
|
126
126
|
console.log(`We have response, check for response message`);
|
127
127
|
const message = respFunc[action];
|
128
|
-
await program.modules.telegram.functions.send(program,message,middleValue.
|
128
|
+
await program.modules.telegram.functions.send(program,message,middleValue.from.id);
|
129
129
|
break;
|
130
130
|
default:
|
131
131
|
console.error(`Missing Response Action Telegram: ${action}`);
|
@@ -154,7 +154,7 @@ module.exports = async function(program,folder) {
|
|
154
154
|
case `message`:
|
155
155
|
console.log(`We have response, check for response message`);
|
156
156
|
const message = respFunc[action];
|
157
|
-
await program.modules.telegram.functions.send(program,message,middleValue.
|
157
|
+
await program.modules.telegram.functions.send(program,message,middleValue.from.id);
|
158
158
|
break;
|
159
159
|
default:
|
160
160
|
console.error(`Missing Response Action Telegram: ${action}`);
|
@@ -163,7 +163,7 @@ module.exports = async function(program,folder) {
|
|
163
163
|
} catch (err) {
|
164
164
|
//console.error(err);
|
165
165
|
//console.error(`Error For Telegram Function`);
|
166
|
-
await program.modules.telegram.functions.send(program,`Unknown Command: ${command}`,middleValue.
|
166
|
+
await program.modules.telegram.functions.send(program,`Unknown Command: ${command}`,middleValue.from.id);
|
167
167
|
}
|
168
168
|
}
|
169
169
|
|
@@ -189,7 +189,7 @@ module.exports = async function(program,folder) {
|
|
189
189
|
case `message`:
|
190
190
|
console.log(`We have response, check for response message`);
|
191
191
|
const message = respFunc[action];
|
192
|
-
await program.modules.telegram.functions.send(program,message,middleValue.
|
192
|
+
await program.modules.telegram.functions.send(program,message,middleValue.from.id);
|
193
193
|
break;
|
194
194
|
default:
|
195
195
|
console.error(`Missing Response Action Telegram: ${action}`);
|
@@ -198,9 +198,9 @@ module.exports = async function(program,folder) {
|
|
198
198
|
//console.error(err);
|
199
199
|
//console.error(`Error For Telegram Function`);
|
200
200
|
console.log(`Checking for script`);
|
201
|
-
const scripting = await program.modules.telegram.script.function.check(program,command,middleValue.
|
201
|
+
const scripting = await program.modules.telegram.script.function.check(program,command,middleValue.from.id,middleValue,received);
|
202
202
|
/*
|
203
|
-
await program.modules.telegram.functions.send(program,`${command}`,middleValue.
|
203
|
+
await program.modules.telegram.functions.send(program,`${command}`,middleValue.from.id,[
|
204
204
|
[
|
205
205
|
{ text: 'EventGO!', web_app : { url : 'https://cloud.eventgo.today/events/list'}},
|
206
206
|
{ text: 'Create Event', callback_data: 'create_event' },
|
@@ -237,7 +237,7 @@ module.exports = async function(program,folder) {
|
|
237
237
|
case `message`:
|
238
238
|
console.log(`We have response, check for response message`);
|
239
239
|
const message = respFunc[action];
|
240
|
-
await program.modules.telegram.functions.send(program,message,middleValue.
|
240
|
+
await program.modules.telegram.functions.send(program,message,middleValue.from.id);
|
241
241
|
break;
|
242
242
|
default:
|
243
243
|
console.error(`Missing Response Action Telegram: ${action}`);
|