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

Telegram - Rewrite as a bot that posts the menu to a channel #1

Open
BayMinimum opened this issue Nov 29, 2017 · 5 comments
Open

Telegram - Rewrite as a bot that posts the menu to a channel #1

BayMinimum opened this issue Nov 29, 2017 · 5 comments

Comments

@BayMinimum
Copy link
Owner

BayMinimum/MealBotMax#1

@boghison Actual changes have to be made here, because of the strange anatomy..my bad;(

@bgdncz
Copy link

bgdncz commented Nov 29, 2017

Is it ok if I rewrite the telegram bot to simply push the new menu out at a specified time daily? In that way, no changes have to be made here, I think (?)

@BayMinimum
Copy link
Owner Author

No, all the periodic stuffs happen here, because of free server quota. So, telegram_bot.js in this repo has to be edited. Currently, it sends private message to everyone. This part should be changed to push to the channel. (you may make use of a environment variable for specific information of channel and I'll add it)

@bgdncz
Copy link

bgdncz commented Nov 30, 2017

Hmm... To be completely honest, the structure is a bit too convoluted for me to understand. However, I wrote an example of how it could be implemented in boghison/MealBotMax. You can check it out, if you want

@BayMinimum
Copy link
Owner Author

Ok, I've checked that. It seems your code cannot be applied directly to the current mechanics of the bot, but can you grant me to modify your code and use it if I attribute your code?

@bgdncz
Copy link

bgdncz commented Dec 1, 2017

Yes, of course 💯

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

No branches or pull requests

2 participants