DnRuban / Taskhelper

Telegram bot for managing tasks
0 stars 1 forks source link

The bot keeps resending an unmodified ticket to the user channel if a phone number is present in the text #86

Open DnRuban opened 3 weeks ago

DnRuban commented 3 weeks ago

Telegram automatically adds phone number entity to message entities if message contains numbers that look like phone number. This breaks equality checking between messages in the main channel and user channels, so every time when interval check updates the ticket bot will delete it and re-send even if it wasn't modified.

Ticket example:

  1. text 0991234567 text

    о #ак #вв #п

DnRuban commented 3 weeks ago

Fixed the bug with checking equality of the messages with phone number in the text.