SecureMessenger
Toggle table of contents
1.0.0
release
Target filter
release
Switch theme
Search in API
Skip to content
SecureMessenger
telegram
/
ltechnologies.onionphone.securemessenger.protocol.telegram
/
TdLibFacade
/
fetchFullChatHistory
fetch
Full
Chat
History
suspend
fun
fetchFullChatHistory
(
chatId
:
Long
,
pageSize
:
Int
=
100
,
syncRemote
:
Boolean
=
true
,
onPage
:
suspend
(
List
<
TdApi.Message
>
)
->
Unit
)
:
Pair
<
Int
,
Int
>
Loads local TDLib cache first, then syncs from Telegram when the network is reachable.