mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added full support for the Bot API 9.0 (#1671)
* Added full support for the Bot API 9.0 * Bump version
This commit is contained in:
parent
25e9127db9
commit
2c2bd61551
231 changed files with 9565 additions and 389 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from datetime import datetime
|
||||
|
||||
from aiogram.enums import TransactionPartnerUserTransactionTypeEnum
|
||||
from aiogram.methods import GetStarTransactions
|
||||
from aiogram.types import (
|
||||
File,
|
||||
|
|
@ -26,6 +27,7 @@ class TestGetStarTransactions:
|
|||
date=datetime.now(),
|
||||
source=TransactionPartnerUser(
|
||||
user=user,
|
||||
transaction_type=TransactionPartnerUserTransactionTypeEnum.GIFT_PURCHASE,
|
||||
),
|
||||
),
|
||||
StarTransaction(
|
||||
|
|
@ -35,12 +37,13 @@ class TestGetStarTransactions:
|
|||
date=datetime.now(),
|
||||
receiver=TransactionPartnerUser(
|
||||
user=user,
|
||||
transaction_type=TransactionPartnerUserTransactionTypeEnum.GIFT_PURCHASE,
|
||||
),
|
||||
),
|
||||
]
|
||||
),
|
||||
)
|
||||
|
||||
response: File = await bot.get_star_transactions(limit=10, offset=0)
|
||||
response: StarTransactions = await bot.get_star_transactions(limit=10, offset=0)
|
||||
request = bot.get_request()
|
||||
assert response == prepare_result.result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue