dyrkin / luxmed-bot

Non official telegram bot for Portal Pacjenta LUX MED
https://telegram.me/luxmedbot
MIT License
116 stars 22 forks source link

No information if luxmed account is blocked #6

Closed gelmiro closed 5 years ago

gelmiro commented 6 years ago

Hi, I had situation when my luxmed account has been blocked. (maybe to many periodic request when monitoring is working?) I had active one monitoring and I didn't know that bot have problem with login due to moment when I tried login via browser to check something. I think that bot can observe when account is blocked, or password is incorrect from some reason and inform user about this.

dyrkin commented 6 years ago

First of all, I'm sorry to hear this.

Monitoring initializes in such way: When user creates monitoring app creates a scheduled task with:

So, monitoring never starts immediately. Usually it's delayed and period of repeated queries can't be less than 10 minutes. I did this because I don't want to DDOS luxmed server.

I never had an issue with blocked account. Could you please attach some logs and I'll add support for notifying users when account is blocked.

Or if you know what to do you can make pull-request with support of such situations