@lifiij

'Bot' object has no attribute 'copy_message'. Почему так, copy_message же есть в aiogram?

from aiogram import Bot, types
from aiogram.dispatcher import Dispatcher
from aiogram.utils import executor


bot = Bot(token='')
dp = Dispatcher(bot)

@dp.message_handler()
async def command_start(message: types.Message):
    await bot.copy_message(chat_id = message.chat.id, from_chat_id = message.from_user.id, message_id  = message.message_id)

if __name__ == '__main__':
    executor.start_polling( dp, skip_updates = True )
  • Вопрос задан
  • 164 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы