mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 21:10:29 +00:00
Update code to deal with the new sessions
This commit is contained in:
@@ -589,7 +589,10 @@ async def edit_message(
|
||||
)
|
||||
# Invoke `messages.editInlineBotMessage` from the right datacenter.
|
||||
# Otherwise, Telegram will error with `MESSAGE_ID_INVALID` and do nothing.
|
||||
exported = self.session.dc_id != entity.dc_id
|
||||
# TODO should cache current session state
|
||||
state = await self.session.get_state()
|
||||
|
||||
exported = state.dc_id != entity.dc_id
|
||||
if exported:
|
||||
try:
|
||||
sender = await self._borrow_exported_sender(entity.dc_id)
|
||||
|
Reference in New Issue
Block a user