You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am a beginner and when i try to run the code, below error comes out. May I know if any access right i need to grant on it?
2022-01-10 12:27:02,116 - forwarder - INFO - Modules to load: ['auto_forward', 'misc']
2022-01-10 12:27:02,119 - forwarder - INFO - Successfully loaded modules: ['auto_forward', 'misc']
2022-01-10 12:27:02,120 - forwarder - INFO - Using long polling.
2022-01-10 12:27:02,120 - apscheduler.scheduler - INFO - Scheduler started
Traceback (most recent call last):
File "C:\Users\AT\PycharmProjects\Futu\Telegram\forwarder_main_.py", line 83, in
main()
File "C:\Users\AT\PycharmProjects\Futu\Telegram\forwarder_main_.py", line 76, in main
updater.start_polling(timeout=15, read_latency=4)
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\ext\updater.py", line 422, in start_polling
self._init_thread(self.dispatcher.start, "dispatcher", ready=dispatcher_ready)
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\ext\updater.py", line 342, in _init_thread
name=f"Bot:{self.bot.id}:{name}",
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 365, in id
return self.bot.id
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 359, in bot
self._bot = self.get_me()
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 130, in decorator
result = func(*args, **kwargs)
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 446, in get_me
result = self._post('getMe', timeout=timeout, api_kwargs=api_kwargs)
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 295, in _post
return self.request.post(
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\utils\request.py", line 356, in post
result = self._request_wrapper(
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\utils\request.py", line 277, in _request_wrapper
raise Unauthorized(message)
telegram.error.Unauthorized: Unauthorized
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Dear all
I am a beginner and when i try to run the code, below error comes out. May I know if any access right i need to grant on it?
2022-01-10 12:27:02,116 - forwarder - INFO - Modules to load: ['auto_forward', 'misc']
2022-01-10 12:27:02,119 - forwarder - INFO - Successfully loaded modules: ['auto_forward', 'misc']
2022-01-10 12:27:02,120 - forwarder - INFO - Using long polling.
2022-01-10 12:27:02,120 - apscheduler.scheduler - INFO - Scheduler started
Traceback (most recent call last):
File "C:\Users\AT\PycharmProjects\Futu\Telegram\forwarder_main_.py", line 83, in
main()
File "C:\Users\AT\PycharmProjects\Futu\Telegram\forwarder_main_.py", line 76, in main
updater.start_polling(timeout=15, read_latency=4)
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\ext\updater.py", line 422, in start_polling
self._init_thread(self.dispatcher.start, "dispatcher", ready=dispatcher_ready)
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\ext\updater.py", line 342, in _init_thread
name=f"Bot:{self.bot.id}:{name}",
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 365, in id
return self.bot.id
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 359, in bot
self._bot = self.get_me()
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 130, in decorator
result = func(*args, **kwargs)
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 446, in get_me
result = self._post('getMe', timeout=timeout, api_kwargs=api_kwargs)
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\bot.py", line 295, in _post
return self.request.post(
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\utils\request.py", line 356, in post
result = self._request_wrapper(
File "C:\Users\AT\PycharmProjects\Futu\Telegram\venv\lib\site-packages\telegram\utils\request.py", line 277, in _request_wrapper
raise Unauthorized(message)
telegram.error.Unauthorized: Unauthorized
Beta Was this translation helpful? Give feedback.
All reactions