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

Fix telegram watcher #354

Merged
merged 9 commits into from
Feb 13, 2023
Merged

Fix telegram watcher #354

merged 9 commits into from
Feb 13, 2023

Conversation

Reckless-Satoshi
Copy link
Collaborator

What does this PR do?

Adds some bug fixes over @Gravity2106 's PR #343

Telegram watcher now saves error logs and indicates the user how to enable Telegram if the bot is initialized incorrectly.

Checklist before merging

  • Make sure you have installed and initialized pre-commit. pip install pre-commit and pre-commit install

Gravity2106 and others added 9 commits January 31, 2023 21:15
It is used "startswith()" to check if the text start with  "/start".
"filter()" instead of "get()" to avoid an exception if there is no profile asociated with a token.
"attempts -= 1" instead of "attempts = attempts - 1"
An "error.log" file is created if "response = self.session.get" does not work
Added instructions for the user if the format is not correct
@Reckless-Satoshi Reckless-Satoshi mentioned this pull request Feb 13, 2023
1 task
@Reckless-Satoshi Reckless-Satoshi merged commit 1c696be into main Feb 13, 2023
@Reckless-Satoshi Reckless-Satoshi deleted the fix-telegram-watcher branch February 13, 2023 13:13
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.

2 participants