Kindeskind/webservices/telegram_base_communication/src/telegram-history-dump/dumpers/lib/dumper_interface.rb
def msg_fresh?(msg, progress)
    # msg: Hash, progress: DumpProgress
    return false if msg['id'].to_s.empty?
    !progress.newest_id || MsgId.new(msg['id']) > progress.newest_id
  end
# Will be called before each message to dump, to determine whether it is new
# enough to back up
# This default makes sense in simple cases, override for advanced custom logic
Will be called before each message to dump, to determine whether it is new
enough to back up
This default makes sense in simple cases, override for advanced custom logic
Will be called before each message to dump to determine whether it is new enough to back up This default makes sense in simple cases override for advanced custom logic
def msg_fresh?(msg, progress)
    return false if msg['id'].to_s.empty?
    !progress.newest_id || MsgId.new(msg['id']) > progress.newest_id
  end
def msg_fresh? ( msg , progress ) return false if msg [ 'id' ] . to_s . empty? ! progress . newest_id || MsgId . new ( msg [ 'id' ] ) > progress . newest_id end
Will be called before each message to dump, to determine whether it is new
enough to back up
This default makes sense in simple cases, override for advanced custom logic
Will be called before each message to dump to determine whether it is new enough to back up This default makes sense in simple cases override for advanced custom logic
# msg: Hash, progress: DumpProgress
msg
progress