mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-12 02:03:04 +00:00
Migrate to hatchling (#1095)
* Migrate to hatchling instead of poetry, ruff instead of flake8 * Migrate to hatchling instead of poetry, ruff instead of flake8 * Update tests suite * venv? * -m venv? * Change dependencies * Remove venv * Change mypy config * Added changelog * Mark uvloop incompatible with pypy * Update release script * Use internal caching for dependencies * Re-disable cov branches * Added contributing guide
This commit is contained in:
parent
04ccb390d5
commit
f4ce4431f9
58 changed files with 799 additions and 3001 deletions
|
|
@ -8,7 +8,12 @@ from aiogram import Bot, Dispatcher, F, Router, html
|
|||
from aiogram.filters import Command
|
||||
from aiogram.fsm.context import FSMContext
|
||||
from aiogram.fsm.state import State, StatesGroup
|
||||
from aiogram.types import KeyboardButton, Message, ReplyKeyboardMarkup, ReplyKeyboardRemove
|
||||
from aiogram.types import (
|
||||
KeyboardButton,
|
||||
Message,
|
||||
ReplyKeyboardMarkup,
|
||||
ReplyKeyboardRemove,
|
||||
)
|
||||
|
||||
form_router = Router()
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ async def command_add_bot(message: Message, command: CommandObject, bot: Bot) ->
|
|||
return message.answer("Invalid token")
|
||||
await new_bot.delete_webhook(drop_pending_updates=True)
|
||||
await new_bot.set_webhook(OTHER_BOTS_URL.format(bot_token=command.args))
|
||||
await message.answer(f"Bot @{bot_user.username} successful added")
|
||||
return await message.answer(f"Bot @{bot_user.username} successful added")
|
||||
|
||||
|
||||
async def on_startup(dispatcher: Dispatcher, bot: Bot):
|
||||
|
|
|
|||
|
|
@ -36,7 +36,6 @@ async def send_message_handler(request: Request):
|
|||
except ValueError:
|
||||
return json_response({"ok": False, "err": "Unauthorized"}, status=401)
|
||||
|
||||
print(data)
|
||||
reply_markup = None
|
||||
if data["with_webview"] == "1":
|
||||
reply_markup = InlineKeyboardMarkup(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue