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

bot not working. #1

Open
Rat-S opened this issue Jun 24, 2021 · 2 comments
Open

bot not working. #1

Rat-S opened this issue Jun 24, 2021 · 2 comments

Comments

@Rat-S
Copy link

Rat-S commented Jun 24, 2021

i tried to use the bot, but I got the error as below:

$ python main.py 
  File "main.py", line 26
    def __init__(self, updater: Updater):
                              ^
SyntaxError: invalid syntax

Thank you.

@Rat-S
Copy link
Author

Rat-S commented Jun 24, 2021

Or:

$ python3 main.py 
{'can_read_all_group_messages': True, 'username': '*_bot', 'supports_inline_queries': False, 'id': ****, 'is_bot': True, 'first_name': '**', 'can_join_groups': True}
Traceback (most recent call last):
  File "main.py", line 123, in <module>
    main()
  File "main.py", line 107, in main
    updater.job_queue.run_repeating(jarvis.events, interval, first=0)
  File "/home/pi/.local/lib/python3.7/site-packages/telegram/ext/jobqueue.py", line 301, in run_repeating
    **job_kwargs,
  File "/home/pi/.local/lib/python3.7/site-packages/apscheduler/schedulers/base.py", line 434, in add_job
    job = Job(self, **job_kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/apscheduler/job.py", line 49, in __init__
    self._modify(id=id or uuid4().hex, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/apscheduler/job.py", line 180, in _modify
    check_callable_args(func, args, kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/apscheduler/util.py", line 402, in check_callable_args
    ', '.join(unsatisfied_args))
ValueError: The following arguments have not been supplied: job

@lorey
Copy link
Owner

lorey commented Jun 26, 2021

Hi @Rat-S, sorry it's not working. This is four years old now and I would not expect it to still work. Back then, it was also just a quick project. Maybe you can make use of the concepts, but this is not anywhere near stable.

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

No branches or pull requests

2 participants