elif received_message.text == BotCommands.Programmer_resume.value:
keyboards = ReplyKeyboardMarkup(resize_keyboard=True, row_width=1)
keyboards.add(BotCommands.opt_out.value)
post_id = 17
channel_username = "@yazdancodeo"
bot.forward_message(
chat_id=channel_username,
from_chat_id=messages.chat.id,
message_id=post_id
)
telebot.apihelper.ApiTelegramException: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: message to forward not found
New contributor
yazdan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.