kmein / menstruation-telegram Goto Github PK
View Code? Open in Web Editor NEWBerlin Uni-Mensa Telegram Bot
License: GNU General Public License v3.0
Berlin Uni-Mensa Telegram Bot
License: GNU General Public License v3.0
Current behavior:
Currently you can only subscribe to the complete menu with /subscribe.
Requested behavior:
Subscription with filters
e.g. /subscribe ๐ฑ 3โฌ
python-telegram-bot 12 is out.
Therefore, we must pin the version to 11.1 or make the following changes to the code:
https://github.com/python-telegram-bot/python-telegram-bot/wiki/Transition-guide-to-Version-12.0
Pinning will work in the requirements.txt with:
python-telegram-bot==11.1
We should do this in dev and master.
If someone subscribes to the menu and then stops the bot, the following exception appears:
bot_1 | INFO:root:No date found in ''
bot_1 | INFO:root:{'allergen': ['23']}
bot_1 | INFO:root:Requesting http://api:8000/menu?XXXXXXXXXXXXXX
bot_1 | ERROR:JobQueue:An uncaught error was raised while executing job XXXXXXXXX
bot_1 | Traceback (most recent call last):
bot_1 | File "/usr/local/lib/python3.7/site-packages/telegram/ext/jobqueue.py", line 245, in tick
bot_1 | job.run(self.bot)
bot_1 | File "/usr/local/lib/python3.7/site-packages/telegram/ext/jobqueue.py", line 372, in run
bot_1 | self.callback(bot, self)
bot_1 | File "bot.py", line 235, in <lambda>
bot_1 | updater.bot, update.message.chat_id, Query.from_text(filter_text)
bot_1 | File "bot.py", line 90, in send_menu
bot_1 | bot.send_message(chat_id, emojize(reply), parse_mode=ParseMode.MARKDOWN)
bot_1 | File "/usr/local/lib/python3.7/site-packages/telegram/bot.py", line 65, in decorator
bot_1 | result = func(self, *args, **kwargs)
bot_1 | File "/usr/local/lib/python3.7/site-packages/telegram/bot.py", line 90, in decorator
bot_1 | result = self._request.post(url, data, timeout=kwargs.get('timeout'))
bot_1 | File "/usr/local/lib/python3.7/site-packages/telegram/utils/request.py", line 309, in post
bot_1 | headers={'Content-Type': 'application/json'})
bot_1 | File "/usr/local/lib/python3.7/site-packages/telegram/utils/request.py", line 221, in _request_wrapper
bot_1 | raise Unauthorized(message)
bot_1 | telegram.error.Unauthorized: Forbidden: bot was blocked by the user
https://github.com/kmein/menstruation/blob/0e50e91fa59fcec9f9dd8674c7cf56880f67d53a/frontend.py#L8 is an issue for me. de_DE.UTF-8
works for me though. Pull request?
GDOM complains about not finding module schema
. Changing https://github.com/syrusakbary/gdom/blob/f832c915f8cc39510f5bc734a2665715acbc747b/gdom/cmd.py#L9 to from .schema import schema
(inserting the dot) fixes that. Do you know why? A Python 2/3 problem?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.