mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Replace messages.getPeerDialogs with channels.getFullChannel (#1305)
This commit is contained in:
parent
5dcc30dcc6
commit
0a8103b6e8
|
@ -459,10 +459,10 @@ class UpdateMethods:
|
|||
|
||||
if not pts_date:
|
||||
# First-time, can't get difference. Get pts instead.
|
||||
result = await self(functions.messages.GetPeerDialogsRequest([
|
||||
utils.get_input_dialog(where)
|
||||
]))
|
||||
self._state_cache[channel_id] = result.dialogs[0].pts
|
||||
result = await self(functions.channels.GetFullChannelRequest(
|
||||
utils.get_input_channel(where)
|
||||
))
|
||||
self._state_cache[channel_id] = result.full_chat.pts
|
||||
return
|
||||
|
||||
result = await self(functions.updates.GetChannelDifferenceRequest(
|
||||
|
|
Loading…
Reference in New Issue
Block a user