I'm unable to reply some of the feedbacks I got. Checked the logs:
reciever_id = update.message.reply_to_message.forward_from.id
AttributeError: 'NoneType' object has no attribute 'id'
However, I can reply some the feedbacks. It's strange. It needs a solid solution then.
Current mechanism work like this: When bot gets the feedback, it forwards to a group. I, personally, reply that specific message with /answer command, then bot sees this and finds the receiver id from the properties of the message. It contains a property called forward_from.
I'm unable to reply some of the feedbacks I got. Checked the logs:
However, I can reply some the feedbacks. It's strange. It needs a solid solution then.
Current mechanism work like this: When bot gets the feedback, it forwards to a group. I, personally, reply that specific message with
/answer
command, then bot sees this and finds the receiver id from the properties of the message. It contains a property calledforward_from
.