tgl icon indicating copy to clipboard operation
tgl copied to clipboard

Improve history handling

Open majn opened this issue 9 years ago • 1 comments

Allow fetching message history between max_id and min_id in a new api call. This is needed for fetching channel history when the amount of required amount of messages is unknown.

Additionally allow fetching more than 100 channel messages. I don't know why it was disabled in the first place, but I tested it thoroughly and the history function doesn't have any issue handling the channel return type CODE_messages_channel_messages.

A last change is to use less confusing naming in get_history_extra struct, offset_id is now actually called offset_id except of max_id.

majn avatar Mar 23 '16 12:03 majn

dh_gen_ok#3bcbf734 nonce:int128 server_nonce:int128 new_nonce_hash1:int128 = Set_client_DH_params_answer; dh_gen_retry#46dc1fb9 nonce:int128 server_nonce:int128 new_nonce_hash2:int128 = Set_client_DH_params_answer; dh_gen_fail#a69dae02 nonce:int128 server_nonce:int128 new_nonce_hash3:int128 = Set_client_DH_params_answer;

nima1363azad avatar Aug 08 '16 08:08 nima1363azad