Answer the question
In order to leave comments, you need to log in
Copying a message from a telegram channel to a telegram bot?
I'm trying to make the bot copy messages from the telegram channel.
It gives a Message not found error, although they are definitely there, the channel id is definitely correct.
I'm just trying to make the bot issue a test along with the picture.
@dp.message_handler(filters.Text(contains=animeop, ignore_case=True))
@dp.message_handler(filters.Text(contains=opanime, ignore_case=True))
@dp.message_handler(commands="onepiece")
async def with_pureeop(message: types.Message, content=-1001718899350, content_max=4):
keyboardop = types.ReplyKeyboardMarkup(resize_keyboard=True)
buttons = ["Ван Пис"]
keyboardop.add(*buttons)
await bot.copy_message(message.message_id, content, randint(2, content_max), reply_to_message_id=message.message_id, reply_markup=keyboardop)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question