Skip to content

Commit

Permalink
fix: update from older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vanutp committed Feb 25, 2023
1 parent 87438a4 commit df11e8b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tgpy/std/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import sys

import tgpy.api
from tgpy._core import message_design


class MessageDesignCompatStub:
Expand All @@ -18,6 +19,10 @@ def get_code(message):
def parse_message(message):
return tgpy.api.parse_tgpy_message(message)

@staticmethod
async def edit_message(*args, **kwargs):
return await message_design.edit_message(*args, **kwargs)


# noinspection PyTypeChecker
sys.modules['tgpy.message_design'] = MessageDesignCompatStub()
Expand Down

0 comments on commit df11e8b

Please sign in to comment.