lib/tdlib/client_methods.rb
def view_messages(chat_id:, message_thread_id:, message_ids:, force_read:)
    broadcast('@type'             => 'viewMessages',
              'chat_id'           => chat_id,
              'message_thread_id' => message_thread_id,
              'message_ids'       => message_ids,
              'force_read'        => force_read)
  end
# Informs TDLib that messages are being viewed by the user.
# Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen
#   (excluding the button).
# Many useful activities depend on whether the messages are currently being viewed or not (e.g., marking messages as
#   read, incrementing a view counter, updating a view counter, removing deleted messages in supergroups and channels).
#
# @param chat_id [Integer] Chat identifier.
# @param message_thread_id [Integer] If not 0, a message thread identifier in which the messages are being viewed.
# @param message_ids [Array<Integer>] The identifiers of the messages being viewed.
# @param force_read [Boolean] True, if messages in closed chats must be marked as read by the request.
# @return [TD::Types::Ok]
Informs TDLib that messages are being viewed by the user.
Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen
(excluding the button).
Many useful activities depend on whether the messages are currently being viewed or not .
Informs TDLib that messages are being viewed by the user . Sponsored messages must be marked as viewed only when the entire text of the message is shown on the screen ( excluding the button ) . Many useful activities depend on whether the messages are currently being viewed or not .
def view_messages(chat_id:, message_thread_id:, message_ids:, force_read:)
    broadcast('@type'             => 'viewMessages',
              'chat_id'           => chat_id,
              'message_thread_id' => message_thread_id,
              'message_ids'       => message_ids,
              'force_read'        => force_read)
  end
def view_messages ( chat_id : , message_thread_id : , message_ids : , force_read : ) broadcast ( '@type' => 'viewMessages' , 'chat_id' => chat_id , 'message_thread_id' => message_thread_id , 'message_ids' => message_ids , 'force_read' => force_read ) end
Informs TDLib that messages are being viewed by the user.
Informs TDLib that messages are being viewed by the user .
None
TD::Types::Ok
chat_id
None
message_thread_id
If not 0, a message thread identifier in which the messages are being viewed.
If not 0 a message thread identifier in which the messages are being viewed .
message_ids
The identifiers of the messages being viewed.
The identifiers of the messages being viewed .
force_read
True, if messages in closed chats must be marked as read by the request.
True if messages in closed chats must be marked as read by the request .