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

Invalid user_id specified #14

Open
atatat123 opened this issue Nov 28, 2024 · 2 comments
Open

Invalid user_id specified #14

atatat123 opened this issue Nov 28, 2024 · 2 comments

Comments

@atatat123
Copy link

Hope you can help me out..

Got the right channel in the config:

SUPPORT_CHANNEL='testtestabcd2'

username of the channel is: @testtestabcd2

but still getting this error;

2024-11-28 17:17:27,631 INFO [bot] (main.py::67) Successfully loaded modules: ['admin', 'broadcast', 'dashboard', 'leaderboard', 'leave_members', 'settings', 'shill', 'start']
2024-11-28 17:17:27,632 INFO [bot] (main.py:main:62) Using long polling.
2024-11-28 17:17:30,062 ERROR [bot] (main.py:error_handler:38) Exception while handling an update:
Traceback (most recent call last):

File "/home/atnt/.local/lib/python3.10/site-packages/telegram/ext/utils/promise.py", line 96, in run
self._result = self.pooled_function(*self.args, **self.kwargs)

File "/home/atnt/python-ref-bot/Telegram-Referral-Bot/src/bot/modules/helper_funcs/decorators.py", line 18, in command_func
return func(update, context, *args, **kwargs)
| | | | -> {}
| | | -> ()
| | -> <telegram.ext.callbackcontext.CallbackContext object at 0x7f068e3c3a00>
| -> <telegram.update.Update object at 0x7f068e3b4400>
-> <function start at 0x7f068e3d8790>

File "/home/atnt/python-ref-bot/Telegram-Referral-Bot/src/bot/modules/start.py", line 17, in start
is_in_grp=context.bot.get_chat_member(f"@{SUPPORT_CHANNEL}",update.effective_message.chat_id)
| | | -> <property object at 0x7f06908c84a0>
| | -> <telegram.update.Update object at 0x7f068e3b4400>
| -> <property object at 0x7f069001bfb0>
-> <telegram.ext.callbackcontext.CallbackContext object at 0x7f068e3c3a00>

File "/home/atnt/.local/lib/python3.10/site-packages/telegram/bot.py", line 130, in decorator
result = func(*args, **kwargs)
File "/home/atnt/.local/lib/python3.10/site-packages/telegram/bot.py", line 3186, in get_chat_member
result = self._post('getChatMember', data, timeout=timeout, api_kwargs=api_kwargs)
File "/home/atnt/.local/lib/python3.10/site-packages/telegram/bot.py", line 295, in _post
return self.request.post(
File "/home/atnt/.local/lib/python3.10/site-packages/telegram/utils/request.py", line 356, in post
result = self._request_wrapper(
File "/home/atnt/.local/lib/python3.10/site-packages/telegram/utils/request.py", line 279, in _request_wrapper
raise BadRequest(message)

telegram.error.BadRequest: Invalid user_id specified

@itsAPK
Copy link
Owner

itsAPK commented Nov 30, 2024

is group is private

@atatat123
Copy link
Author

atatat123 commented Nov 30, 2024 via email

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