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

The reply is not getting the contacting user #5

Open
Abduvakilov opened this issue May 14, 2021 · 9 comments
Open

The reply is not getting the contacting user #5

Abduvakilov opened this issue May 14, 2021 · 9 comments

Comments

@Abduvakilov
Copy link

The app is deployed on heroku. If a user that needs support starts the bot the bot is messaging hand emoji and I am getting the contacted user info. I am getting forwarded messages of users from the bot. But if I reply to the forwarded message my message is being forwarded to myself and the owner of the message is not gettin my message.
I have tried to restart all dynos. How can I fix the problem?

@DavianMachete
Copy link

I have the same problem...

@Hazerott
Copy link

same

@Akiyamka
Copy link

Akiyamka commented Aug 28, 2021

Same, trace

ERROR:telegram.ext.dispatcher:No error handlers are registered, logging exception.
Traceback (most recent call last):
   File "/app/.heroku/python/lib/python3.9/site-packages/telegram/ext/dispatcher.py", line 555, in process_update
   handler.handle_update(update, self, check, context)

   File "/app/.heroku/python/lib/python3.9/site-packages/telegram/ext/handler.py", line 198, in handle_update
   return self.callback(update, context)

   File "/app/handlers.py", line 47, in forward_to_user
   user_id = update.message.reply_to_message.forward_from.id

   AttributeError: 'NoneType' object has no attribute 'id'

@starrabb1t
Copy link

lol, same

@starrabb1t
Copy link

SOLUTION:
in handlers.py change line with user_id declaration to this:
user_id = update.message.reply_to_message.forward_from.id

@Abduvakilov
Copy link
Author

Do yo mean line 54?

user_id = None

@starrabb1t
Copy link

oh, I see
it's seems to be okay now. i have old version

@fayzrakhmanov2000
Copy link

Can somebody help please? I changed line 54 to user_id = update.message.reply_to_message.forward_from.id but it didn't help

@fayzrakhmanov2000
Copy link

SOLUTION: in handlers.py change line with user_id declaration to this: user_id = update.message.reply_to_message.forward_from.id

Can you help please? I changed line 54 to user_id = update.message.reply_to_message.forward_from.id but it didn't help

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

6 participants