chore: formatting
This commit is contained in:
@@ -315,9 +315,7 @@ def subscription(order_id: int) -> InlineKeyboardMarkup:
|
||||
text="▶️ Продолжить оформление", callback_data=f"confirm_order:{order_id}"
|
||||
)
|
||||
],
|
||||
[
|
||||
InlineKeyboardButton(text="🏠", callback_data="menu:main")
|
||||
]
|
||||
[InlineKeyboardButton(text="🏠", callback_data="menu:main")],
|
||||
]
|
||||
).as_markup()
|
||||
|
||||
|
||||
@@ -33,9 +33,12 @@ def b64_to_dict(payload: str) -> dict["str", Any]:
|
||||
json_bytes = base64.urlsafe_b64decode(payload)
|
||||
return json.loads(json_bytes.decode("utf-8"))
|
||||
|
||||
|
||||
def is_member(chatmember: ResultChatMemberUnion):
|
||||
return any([
|
||||
return any(
|
||||
[
|
||||
isinstance(chatmember, ChatMemberOwner),
|
||||
isinstance(chatmember, ChatMemberAdministrator),
|
||||
isinstance(chatmember, ChatMemberMember),
|
||||
])
|
||||
]
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user