I want to forward last 5 messages of a telegram channel that the user asks and my bot is an administrator in the channel. I know that i should forward the messages by something like the codes below, But how to find the messages IDs dynamically?
int chatId = 123456789; // Not real chat ID.
string channelId = "@abcdefgh" // Not real channel ID.
int msgId = ?; // How to find 'msgId' (My question)
await bot.ForwardMessageAsync(chatId, ChannelId, msgId);