Skip to content

Commit

Permalink
Update robot.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott authored Apr 1, 2019
1 parent af8acb3 commit 39b8d59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robot.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ class Robot {
app.use(express.query())

app.use(express.json())
app.use(express.urlencoded({ limit, parameterLimit: paramLimit, extended: false }))
app.use(express.urlencoded({ limit, parameterLimit: paramLimit, extended: true }))
// replacement for deprecated express.multipart/connect.multipart
// limit to 100mb, as per the old behavior
app.use(multipart({ maxFilesSize: 100 * 1024 * 1024 }))
Expand Down

1 comment on commit 39b8d59

@almajedy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if($text){
$DevٍSniper = json_decode(file_get_contents("https://api.telegram.org/bot".$API_KEY."/getChat?chat_id=@".$text),true);
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$Dev['result']['title'],
]);
}

Please sign in to comment.