hacettepeoyt / hu-announcement-bot

Get the latest from Hacettepe with this amazing Telegram Bot!
https://t.me/HacettepeDuyurucuBot
GNU General Public License v3.0
8 stars 6 forks source link

Answering feedback sometimes isn't working on the admin side. #18

Closed furkansimsekli closed 2 years ago

furkansimsekli commented 2 years ago

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.

furkansimsekli commented 2 years ago

It was a problem due Telegram privacy customizations.