diff options
| author | Tolmachev Igor <me@igorek.dev> | 2026-04-20 19:11:21 +0300 |
|---|---|---|
| committer | Tolmachev Igor <me@igorek.dev> | 2026-04-20 19:11:21 +0300 |
| commit | f186fca0f1aa9bbe5eab7613f229df527b2ab774 (patch) | |
| tree | 7d6a5c4c044dc22802da142854dba6586ede8dd4 /models/payment.py | |
| parent | 079c578c4872b5bb50edf1dd5fcfa7cf4d420696 (diff) | |
| download | vpn_manager_bot-f186fca0f1aa9bbe5eab7613f229df527b2ab774.tar.gz vpn_manager_bot-f186fca0f1aa9bbe5eab7613f229df527b2ab774.zip | |
Add payments command
Diffstat (limited to 'models/payment.py')
| -rw-r--r-- | models/payment.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/payment.py b/models/payment.py index afae642..ea61817 100644 --- a/models/payment.py +++ b/models/payment.py | |||
| @@ -23,18 +23,21 @@ class ReceiptFile(BaseModel): | |||
| 23 | self, | 23 | self, |
| 24 | bot: Bot, | 24 | bot: Bot, |
| 25 | user_id: int, | 25 | user_id: int, |
| 26 | caption: str | None = None, | ||
| 26 | reply_markup: ReplyMarkupUnion | None = None, | 27 | reply_markup: ReplyMarkupUnion | None = None, |
| 27 | ) -> Message: | 28 | ) -> Message: |
| 28 | if self.type == ReceiptFileType.DOCUMENT: | 29 | if self.type == ReceiptFileType.DOCUMENT: |
| 29 | return await bot.send_document( | 30 | return await bot.send_document( |
| 30 | user_id, | 31 | user_id, |
| 31 | document=self.file_id, | 32 | document=self.file_id, |
| 33 | caption=caption, | ||
| 32 | reply_markup=reply_markup, | 34 | reply_markup=reply_markup, |
| 33 | ) | 35 | ) |
| 34 | else: | 36 | else: |
| 35 | return await bot.send_photo( | 37 | return await bot.send_photo( |
| 36 | user_id, | 38 | user_id, |
| 37 | photo=self.file_id, | 39 | photo=self.file_id, |
| 40 | caption=caption, | ||
| 38 | reply_markup=reply_markup, | 41 | reply_markup=reply_markup, |
| 39 | ) | 42 | ) |
| 40 | 43 | ||
