Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save and serve files from telegram #32

Closed
wants to merge 0 commits into from
Closed

Conversation

vitalyster
Copy link
Contributor

subj

@@ -2,6 +2,9 @@
// core
//

const http = global.http = require('connect');
Copy link
Collaborator

Choose a reason for hiding this comment

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

What's the purpose of global.http?

return next();
});
}
return next();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd prefer that to be optional. Let's disable the functionality if files.directory is not defined.


const config = require('../app-config').telegram;
const httpd = require('../app-config').http;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nah, let's write const {telegram, http} = require('../app-config');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants