Auto-format code with Ruff using pyproject.toml
This commit is contained in:
+2
-5
@@ -196,10 +196,7 @@ async def invite_handler(callback_query: CallbackQuery):
|
||||
image_path = os.path.join("img", "pic_invite.jpg")
|
||||
|
||||
builder = InlineKeyboardBuilder()
|
||||
builder.button(
|
||||
text="📢 Поделиться",
|
||||
switch_inline_query=invite_text
|
||||
)
|
||||
builder.button(text="📢 Поделиться", switch_inline_query=invite_text)
|
||||
builder.button(text="👤 Личный кабинет", callback_data="profile")
|
||||
builder.adjust(1)
|
||||
|
||||
@@ -215,4 +212,4 @@ async def invite_handler(callback_query: CallbackQuery):
|
||||
await callback_query.message.answer(
|
||||
text=invite_message,
|
||||
reply_markup=builder.as_markup(),
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user