lib/tdlib/client_methods.rb
# Adds a chat to a chat list.
# A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if
#   needed.
#
# @param chat_id [Integer] Chat identifier.
# @param chat_list [TD::Types::ChatList] The chat list.
#   Use getChatListsToAddChat to get suitable chat lists.
# @return [TD::Types::Ok]
Adds a chat to a chat list.
A chat can't be simultaneously in Main and Archive chat lists, so it is automatically removed from another one if
needed.
Adds a chat to a chat list . A chat can ' t be simultaneously in Main and Archive chat lists so it is automatically removed from another one if needed .
def add_chat_to_list(chat_id:, chat_list:)
    broadcast('@type'     => 'addChatToList',
              'chat_id'   => chat_id,
              'chat_list' => chat_list)
  end
def add_chat_to_list ( chat_id : , chat_list : ) broadcast ( '@type' => 'addChatToList' , 'chat_id' => chat_id , 'chat_list' => chat_list ) end
Adds a chat to a chat list.
Adds a chat to a chat list .
None
TD::Types::Ok
chat_id
None
chat_list
The chat list. Use getChatListsToAddChat to get suitable chat lists.
The chat list . Use getChatListsToAddChat to get suitable chat lists .