def get_updates(offset: nil, limit: nil, timeout: nil)
      result = call(:getUpdates, offset: offset, limit: limit, timeout: timeout)
      result.map { |update_hash| Update.new(update_hash) }
    end
def get_updates(offset: nil, limit: nil, timeout: nil)
      result = call(:getUpdates, offset: offset, limit: limit, timeout: timeout)
      result.map { |update_hash| Update.new(update_hash) }
    end
Use this method to receive incoming updates using long polling.
 An Array of Update objects is returned.

 Note:
 1. This method will not work if an outgoing webhook is set up.
 2. In order to avoid getting duplicate updates, recalculate offset after each server response.

 @param offset [Integer]
   Identifier of the first update to be returned.
   Must be greater by one than the highest among the identifiers of
   previously received updates. By default, updates starting with the
   earliest unconfirmed update are returned. An update is considered
   confirmed as soon as getUpdates is called with an offset higher
   than its update_id.
 @param limit [Integer]
   Limits the number of updates to be retrieved. Values between 1—100 are accepted.
   Defaults to 100
 @param timeout [Integer]
   Timeout in seconds for long polling. Defaults to 0, i.e. usual short polling.

 @return [Array<Telebot::Update>]