Method: Kogno::Telegram::Notification#match_message_ids

Defined in:
lib/core/lib/telegram/notification.rb

#match_message_ids(id, message_id) ⇒ Object



43
44
45
46
47
48
# File 'lib/core/lib/telegram/notification.rb', line 43

def match_message_ids(id, message_id)
  return false unless @recipient.type == :user
  matched_message = @recipient.matched_messages.find(id)
  matched_message.platform_message_id = message_id
  matched_message.save
end