Skip to content

Commit

Permalink
Add Message.delete
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatemyself0 authored Jul 6, 2024
1 parent 97ec928 commit 41c534a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tgram/bound.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@ async def download(
file_id, file_path=file_path, in_memory=in_memory
)

async def delete(self: "tgram.types.Message") -> bool:
return await self._me.delete_message(self.chat.id, self.id)

@property
def id(self: "tgram.types.Message") -> int:
return self.message_id
Expand Down

0 comments on commit 41c534a

Please sign in to comment.