H
Size: a a a
H
H
H
@dp.message_handler(state=Form.send)пытаюсь скачивать файл,который прислал,но не получается
async def process_name(message: types.Message, state: FSMContext):
await message.answer('Обработка')
await bot.download_file("files/")
print("s")
G
@dp.message_handler(state=Form.send)пытаюсь скачивать файл,который прислал,но не получается
async def process_name(message: types.Message, state: FSMContext):
await message.answer('Обработка')
await bot.download_file("files/")
print("s")
W
aiogram.utils.exceptions.MessageNotModified: Message is not modified: specified new message content and reply markup are exactly the same as a current content and reply markup of the message
s
@dp.message_handler(state=Form.send)пытаюсь скачивать файл,который прислал,но не получается
async def process_name(message: types.Message, state: FSMContext):
await message.answer('Обработка')
await bot.download_file("files/")
print("s")
G
aiogram.utils.exceptions.MessageNotModified: Message is not modified: specified new message content and reply markup are exactly the same as a current content and reply markup of the message
H
s
aiogram.utils.exceptions.MessageNotModified: Message is not modified: specified new message content and reply markup are exactly the same as a current content and reply markup of the message
try/except
не подошёл?H
W
try/except
не подошёл?G
H
s
types.Message
тебе приходит.s
G
from aiogram.types import ContentType
@dp.message_handler(state=Form.send, content_types=ContentType.DOCUMENT)
async def process_name(message: types.Message, state: FSMContext):
await message.answer('Обработка')
await message.document.download("files/doc.txt")
print("s")
H
from aiogram.types import ContentType
@dp.message_handler(state=Form.send, content_types=ContentType.DOCUMENT)
async def process_name(message: types.Message, state: FSMContext):
await message.answer('Обработка')
await message.document.download("files/doc.txt")
print("s")
s
from aiogram.types import ContentType
@dp.message_handler(state=Form.send, content_types=ContentType.DOCUMENT)
async def process_name(message: types.Message, state: FSMContext):
await message.answer('Обработка')
await message.document.download("files/doc.txt")
print("s")
G